Feature Request: Ability to set default language for dotnet new
See original GitHub issueNow 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:
- Created 8 years ago
- Comments:21 (20 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Why was this closed? I see no linked PR that fixes this… 😕
Thanks @enricosada. I closed as the original
dotnet new
is no more, replaced by the templating implementation. Glad you moved this over 😃