_From @ErikSchierboom on April 26, 2015 7:10_
I'd love to see F# support, similar to how VB support will be added.
_Copied from original issue: aspnet/dnx#1714_
_From @KodrAus on September 11, 2015 3:16_
+1 for F# support
_From @spencerwi on September 14, 2015 15:49_
Another +1; F# is the whole reason that I'd try to do .NET work (as a Linux/OSX dev)
_From @itajaja on September 14, 2015 15:50_
yay! +1
Language support (including VB.NET) is not in scope for V1. Putting this one to Backlog as well.
_From @jskulavik on September 14, 2015 18:59_
@davidfowl pointed out how this could be achieved long ago, @Alxandr already gave it a go, and we've now got beta 7+ to work with possibly using this as a spring board. Given that ASPNET5 is an OSS project, why shouldn't the 'community,' in this case the outstanding F# community, contribute? The new MSFT is _give and take_ folks, no longer just give, and we shouldn't just take, but give. I'm personally +100 for the support of F#, but let's make it happen as a community rather than demand this already overloaded team just provide it like they did in the MSFT of old.
_From @spencerwi on September 14, 2015 19:25_
@jskulavik As you pointed out, @Alxandr did already give it a go. This issue is, as I understand it, about _official_ support for F# (a Microsoft language) on Microsoft's own .NET language runtime, using _stabilized_ APIs, rather than _unofficial_ support against _beta_ APIs.
Trust me, I've tried quite a bit using and digging into Alxandr's YoloDev work, but the problem right now is that aspnet/vNext are in such a "move fast and break everything" phase right now that community support is far from stable.
@muratg i added compile fsc with pr dotnet/cli#538.
I'll add others issues and link this issue to track commands who require specific f# support ( new, etc )
ref Microsoft/visualfsharp#834 too
dotnet new issue dotnet/cli#647
@enricosada In my mono port of the CLI, I adapted your work to work on mono.
Could someone explain me how to run F# with DNX RC2?
https://github.com/fsprojects/fsharp-dnx/issues/26
@xperiandri This issue is, I think, about using a different cli -- dotnet (not dnx) to run F#.
That being said, I'd also like to know how to run F# projects using the dotnet cli.
@spencerwi it's really the first steps, check tests. https://github.com/dotnet/cli/tree/master/test/FSharpTestProjects/TestAppWithArgs
it's like c#, but you need to add "compilerName": "fsc" in project json and source files inside compileFiles.
Cool! As I understand, ASP.NET 5 RTM will run with CLI, won't it?
However I cannot specify [
the dotnet/cli replace asp.net/dnx, and asp.net rtm is going to use cli.
about current cli/dnx support, ask in aspnet, sry i am not in the loop
@xperiandri Current plan is to ship ASP.NET 5 RC2 with dotnet CLI support and retire DNX.
That is great. However I would like to start a project on MVC 6 with F# as soon as possible.
Can I try MVC 6 on CLI somehow?
Sure! @davidfowl has some examples here. These are with C#, but you can try F# as well.
@enricosada I tried this just now, and it failed at dotnet restore, because dependency Microsoft.FSharp.Core.netcore is nowhere to be found.
Should I be using some special feed? Right now I'm using these:
https://www.myget.org/F/dotnet-coreclr/api/v3/flatcontainer/
https://api.nuget.org/v3-flatcontainer/
you need
<add key="fsharp-daily" value="https://www.myget.org/F/fsharp-daily/api/v3/index.json" />
like NuGet.Config#L15
Tried with that. Now it can find FSharp package, but fails to find Microsoft.Netcore.Platforms >= 1.0.0-rc2-23616 (which is apparently referenced from FSharp).
Despite this, dotnet restore reports "complete" rather than "failed", but issuing dotnet run after that still leads to "unresolved dependency" errors.
dotnet restore output:
info : Running restore with 16 concurrent jobs.
info : Restoring packages for D:\work\...\project.json...
info : NotFound https://www.myget.org/F/nugetbuild/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 690ms
info : NotFound https://www.myget.org/F/roslyn-nightly/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 595ms
info : NotFound https://www.myget.org/F/dotnet-corefxlab/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 643ms
info : NotFound https://www.myget.org/F/netcore-package-prototyping/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 444ms
info : NotFound https://www.myget.org/F/dotnet-buildtools/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 509ms
info : NotFound https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 575ms
info : All packages are compatible with DNXCore,Version=v5.0.
info : All packages are compatible with DNXCore,Version=v5.0 (win7-x64).
info : All packages are compatible with DNXCore,Version=v5.0 (win7-x86).
info : Committing restore...
info : Restore completed in 9733ms.
project.json (taken from here, with fixed up versions due to "downgrade warning")
{
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"run": "run"
},
"frameworks": {
"dnxcore50": { }
},
"compilerName": "fsc",
"compile": [
"program.fs"
],
"dependencies": {
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
"System.Runtime": "4.0.21-rc2-23616",
"System.Console": "4.0.0-rc2-23616"
}
}
Local nuget.config (taken from here)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="nugetbuild" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
<add key="AspNetCIDev" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="roslyn-nightly" value="https://www.myget.org/F/roslyn-nightly/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet-corefxlab" value="https://www.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
<add key="corefxlab" value="https://www.myget.org/F/netcore-package-prototyping/api/v3/index.json" />
<add key="corert" value="https://www.myget.org/F/dotnet/auth/3e4f1dbe-f43a-45a8-b029-3ad4d25605ac/api/v2" />
<add key="dotnet-buildtools" value="https://www.myget.org/F/dotnet-buildtools/api/v3/index.json" />
<add key="fsharp-daily" value="https://www.myget.org/F/fsharp-daily/api/v3/index.json" />
</packageSources>
</configuration>
It's ok. You miss that dependency inside project.jsonCheck the TestInteger app in my pr ( under test/FsharpTestProjects ). It's your use example ( i added it as regression test )
Inviato da Mobile
On Fri, Jan 22, 2016 at 11:38 AM -0800, "Fyodor Soikin" [email protected] wrote:
Tried with that. Now it can find FSharp package, but fails to find Microsoft.Netcore.Platforms >= 1.0.0-rc2-23616 (which is apparently referenced from FSharp).
Despite this, dotnet restore reports "complete" rather than "failed", but issuing dotnet run after that still leads to "unresolved dependency" errors.
dotnet restore output:
info : Running restore with 16 concurrent jobs.
info : Restoring packages for D:\work\...\project.json...
info : NotFound https://www.myget.org/F/nugetbuild/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 690ms
info : NotFound https://www.myget.org/F/roslyn-nightly/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 595ms
info : NotFound https://www.myget.org/F/dotnet-corefxlab/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 643ms
info : NotFound https://www.myget.org/F/netcore-package-prototyping/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 444ms
info : NotFound https://www.myget.org/F/dotnet-buildtools/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 509ms
info : NotFound https://www.myget.org/F/fsharp-daily/api/v3/flatcontainer/microsoft.netcore.platforms/index.json 575ms
info : All packages are compatible with DNXCore,Version=v5.0.
info : All packages are compatible with DNXCore,Version=v5.0 (win7-x64).
info : All packages are compatible with DNXCore,Version=v5.0 (win7-x86).
info : Committing restore...
info : Restore completed in 9733ms.
project.json (taken from here, with fixed up versions due to "downgrade warning")
{
"compilationOptions": {
"emitEntryPoint": true
},
"commands": {
"run": "run"
},
"frameworks": {
"dnxcore50": { }
},
"compilerName": "fsc",
"compile": [
"program.fs"
],
"dependencies": {
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-151221",
"System.Runtime": "4.0.21-rc2-23616",
"System.Console": "4.0.0-rc2-23616"
}
}
Local nuget.config (taken from here)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="dotnet-core" value="https://www.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="nugetbuild" value="https://www.myget.org/F/nugetbuild/api/v3/index.json" />
<add key="AspNetCIDev" value="https://www.myget.org/F/aspnetcidev/api/v3/index.json" />
<add key="roslyn-nightly" value="https://www.myget.org/F/roslyn-nightly/api/v3/index.json" />
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="dotnet-corefxlab" value="https://www.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
<add key="corefxlab" value="https://www.myget.org/F/netcore-package-prototyping/api/v3/index.json" />
<add key="corert" value="https://www.myget.org/F/dotnet/auth/3e4f1dbe-f43a-45a8-b029-3ad4d25605ac/api/v2" />
<add key="dotnet-buildtools" value="https://www.myget.org/F/dotnet-buildtools/api/v3/index.json" />
<add key="fsharp-daily" value="https://www.myget.org/F/fsharp-daily/api/v3/index.json" />
</packageSources>
</configuration>
Reply to this email directly or view it on GitHub:
https://github.com/dotnet/cli/issues/586#issuecomment-174022292
@enricosada I don't quite understand: which dependency am I missing exactly?
See dotnet/cli#894 the https://github.com/enricosada/cli/blob/10fbd54157afa2b61b37d0ded7237d49dda07769/test/FSharpTestProjects/TestAppWithInteger/project.json
Inviato da Mobile
On Fri, Jan 22, 2016 at 12:34 PM -0800, "Fyodor Soikin" [email protected] wrote:
@enricosada I don't quite understand: which dependency am I missing exactly?
Reply to this email directly or view it on GitHub:
https://github.com/dotnet/cli/issues/586#issuecomment-174038824
i added some useful info in a wiki specific to F# and .NET CLI
Closing this as there is a story with F# and the new tooling.
Most helpful comment
i added some useful info in a wiki specific to F# and .NET CLI