-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
teach dotnet new
how to create f# programs
#4689
Comments
I'm pretty sure it'll be hard to convince anyone that c# shouldn't be the default. It is today in all cases. |
@davidfowl i know, but i need to ask, now I really think it's not much different for csharp
but it can be a really nice move to feel all dotnet languages like first class support in a shared dotnet cli. It's ok to do Atm it's really ok as Also defaults, when not really needed, are a problem in the future for backward compatibility changes |
There are default source globbing patterns that assume C# as well. It's not just new. When there's no language specified it assume csc is the compiler. |
about compilerName, the default is csc, and that's ok for me, let me explain why. I have not raised a question about that, because The tool the user run is If it's not possible it should be possible to change the default.
I'll check these after dotnet-compile-fsc works, but for example that's a problem for vb, or other languages. I really like |
project.json is not generated by tools, I'm. It sure what you mean. If you if you only care about new (which is pretty much a toy) then sure. It can be as complicated as it needs to be, I don't think it'll be used that much. The point of having project.json be minimal and having defaults inferred is so that it is human friendly and can we author it without tools. I'd hate to see this turn into another csproj because it tries to cater to all scenario making it "work" for everything but ends up being verbose to achieve that. |
@davidfowl i am ok with minimal project.json ( thx man about that ) and sane default. as i said, i am ok for default compilerName = "csc". I dont want an explicit compilerName on project.json. i see Maybe yeoman and other scaffolding tools should call I dont think i ever written by hand a project.json, always copy pasted, but if i can do I understand it's a toy, but that's the base experience, as i said, a nice to have as language agnostic. |
@davidfowl it's only a nice to have, really, i'd like to maintain language agnostic where possibile, the default like this one are a nice to have, but |
👍 for dotnet new defaults to c# |
@blackdwarf, we've been going back and forth on extending new like this. What's the latest? |
Couldn't dotnet-new just issue a message on the console how to set the compiler that gets used plus a list of known compiler names that comes bundled with the CLI (csc/fsc/vbc?) ? |
@borgdylan it's not only about compilerName, it's about also the files, Program.cs or Program.fs or Program.vb. Anyway sorry all, my bad, it's not a problem, ** i'll send a pr with Default or switch if no |
@enricosada 👍 for your work , really excited to use fsharp on linux (the ms version of fsharp). |
@piotrpMSFT we're pretty much where we were, with some ideas to allow for language overriding (i.e. what this issue is proposing). However, I do thing that |
Thanks @blackdwarf. Looks like folks are excited to light this up, so let's make sure the story matches our plans! |
i added f# with @blackdwarf @piotrpMSFT i have done the implementation before reading your comments, if it's useless np 😄 |
The experience should allow plugins via more binaries being added just like dotnet-compile. The mechanism used by @enricosada requires the CLI to be modified. |
@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. |
Add a custom conclusion file that lists out the need for the user to install OpenSSL 1.0.1/1.0.2. Solves a bit #647
i added Further improvement ( like |
* Update dependencies from https://github.com/dotnet/arcade build 20200715.6 Microsoft.DotNet.Arcade.Sdk From Version 1.0.0-beta.20326.2 -> To Version 1.0.0-beta.20365.6 * Remove darc int feeds Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Jason Zhai <AzureTest@vwuzhai002.redmond.corp.microsoft.com>
dotnet new should also scaffold f# program.
The template is not a problem.
What's the best way to specify the language?
--language F#
), defaultc#
?dotnet-new-fsharp.exe
( likedotnet compile
=>dotnet-compile-fsc.exe
)F#
without--language
A personal feedback
make
c#
explicit likef#
for new, asking what language use if not specified, is better long term, moredotnet
, lessc# dotnet
.Easier to discover for new user too
The text was updated successfully, but these errors were encountered: