Closed nojaf closed 7 years ago
I tried the same thing using a Visual Studio Command Prompt and it worked fine. So I'm guessing I'm missing some stuff on my PATH variable. Any ideas?
@nojaf I think you're on the right path, so to speak. There is a file called vcvarsall.bat located in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC on my machine. Running this in a regular CMD window will setup all the vars you need to do a build from the command line.
Depending on vcvarsall.bat
being called would be a major regression that should be fixed though.
@cdrnet @jimmydburr @nojaf Your input on the linked bug would be appreciated (workarounds, analysis etc.)
Well my concrete issue was the fact that the msbuild target was not found. Maybe some new logic should be added that looks for possible locations of the target. I'm really a novice in all this so perhaps the build should fail early when the target cannot be resolved.
I believe this has been fixed by using the latest FAKE. It compiles OK for me on Windows
Description
I was unable to build the entire project by running the build.cmd file. MSBuild was unable to import the FSharpTargetsPath.
Repro steps
Please provide the steps required to reproduce the problem
Create new project
Run build.cmd
Expected behavior
Newly create project builds.
Actual behavior
MSBuild error that certain targets cannot be found.
Known workarounds
Replace
With
For src and test fsproj files.
Related information