question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Ability to set default language for dotnet new

See original GitHub issue

Now that there are several commands, dotnet repl and dotnet new, that supports language arguments, I think it makes sense to be able to somehow specify a default language.

If you primarily work with F# projects, I think it’d be nice to not have to specify --lang fsharp every time you want to create a new project or start the repl.

Is there an existing configuration mechanism in place?

I propose a simple DOTNET_DEFAULT_LANGUAGE environment variable that you can set to [c#|cs|csharp|f#|fs|fsharp].

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:21 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
khellangcommented, Feb 8, 2017

Why was this closed? I see no linked PR that fixes this… 😕

0reactions
TheRealPiotrPcommented, Feb 9, 2017

Thanks @enricosada. I closed as the original dotnet new is no more, replaced by the templating implementation. Glad you moved this over 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to set default language for dotnet new · Issue #4950
Project to project references can be multi language and not having the language in the project file assumes that all projects have the...
Read more >
NET default templates for dotnet new - .NET CLI
The following table shows the templates that come pre-installed with the .NET SDK. The default language for the template is shown inside the ......
Read more >
Set the default C# Build Language Version in Visual Studio ...
Effectively, I'd like latest passed to MSBUILD as the langversion parameter for any new project I create in VS2017 without having to remember...
Read more >
Get browser language in ASP.NET Core?
To get the default language take the first element of the array languages . As an extension method: using System.Collections.
Read more >
Let's design a new C# language feature! | .NET Conf 2022
Your browser can't play this video. Learn more. Switch camera.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found