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.

teach `dotnet new` how to create f# programs

See original GitHub issue

dotnet new should also scaffold f# program.

The template is not a problem.

What’s the best way to specify the language?

  • command line argument ( --language F# ), default c# ?
  • new command dotnet-new-fsharp.exe ( like dotnet compile => dotnet-compile-fsc.exe )
  • new argument F# without --language

A personal feedback

make c# explicit like f# for new, asking what language use if not specified, is better long term, more dotnet, less c# dotnet. Easier to discover for new user too

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
enricosadacommented, Jan 27, 2016

i added --lang with dotnet/cli#1027 , so f#/c# works. Btw default it’s c#, but command line it’s pretty for all languages 😄 thx all for feedback.

Further improvement ( like dotnet new fsharp/console ) are discussed in dotnet/cli#655

0reactions
TheRealPiotrPcommented, Jan 15, 2016

@enricosada the PR here is still in need of rebasing. I’m moving out to RC milestone. Let us know if this can happen today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started with F# with command-line tools
Use the dotnet new command to create a class library project in the src folder named Library. ... Run dotnet build to build...
Read more >
dotnet new <TEMPLATE> - .NET CLI
The dotnet new command creates new .NET projects based on the specified template.
Read more >
.NET Tutorial | Hello World in 5 minutes
Step-by-step instructions and videos for installing .NET and building your first Hello World .NET application. Develop with free tools for Linux, macOS, ...
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 >
Tutorial: Create a .NET tool using the .NET CLI
Open a command prompt and create a folder named repository. · Navigate to the repository folder and enter the following command: .NET CLI...
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