You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dotnet cli build doesnt replace fsproj atm, it's used only to compile netcore version of FSharp.Core/fsc package and dogfood F# dotnet cli support (dotnet-compile-fsc)
Some .fs source files need to be generated with FsSrGen and FsLexYacc.
It's possible to use the precompile script to run a tool (dotnet-fssrgen for example).
But dotnet build check if a source file (declared in the compileFiles) exists before of running precompile script, so stop build before generate the files.
Workaround: create an empty .fs file placeholder.
Long term: dotnet/cli#1475
The text was updated successfully, but these errors were encountered:
build visualfsharp (fsharp.core, fsc, fsi) with dotnet cli and project.json.
The dotnet cli build doesnt replace fsproj atm, it's used only to compile netcore version of FSharp.Core/fsc package and dogfood F# dotnet cli support (
dotnet-compile-fsc
).fsproj
toproject.json
: (ref Use .NET cli to build visualfsharp #1000)master
(ref Replace lkg fssrgen with FsSrGen nuget package #962)dotnet-fssrgen
nuget package )master
(ref Replace lkg fslex/fsyacc with FsLexYacc nuget package #959)Microsoft.FSharp.Core.netcore
nuget packageMicrosoft.FSharp.Compiler.netcore
nuget packageAnswered questions
How to declare defines per target profile
use
compilationOptions
underframework
(ref compilationoptions docs.That's needed to replace conditional defines in msbuild like
Open questions
How to generate and build fs source files
Some .fs source files need to be generated with
FsSrGen
andFsLexYacc
.It's possible to use the
precompile
script to run a tool (dotnet-fssrgen
for example).But
dotnet build
check if a source file (declared in thecompileFiles
) exists before of runningprecompile
script, so stop build before generate the files.Workaround: create an empty .fs file placeholder.
Long term: dotnet/cli#1475
The text was updated successfully, but these errors were encountered: