I'm trying to build 2 F# projects in one solution using MSBuild on 2 different computers.
- Computer 1 has VS2015 installed without any reinstalls or repairs.
- On computer 2, VS2015 got mental after a Xamarin install went bad. VS2015 has been repaired (didn't help), then uninstalled leaving 4.5GB of residual junk, then again uninstalled by MS VisualStudioUninstaller to get rid of the residues, and finally reinstalled.
This is what happens when I build:
Computer 1: MSBuild works.
Computer 2: MSBuild fails with the
The target "Build" does not exist in the project
error for one project andThe value "" of the "Project" attribute in element <Import> is invalid. Parameter "path" cannot have zero length
for the other. Before the Xamarin misadventure, computer 2 built the solution without problems.Building with Visual Studio works on both computers.
The problem with computer 2 might be solved by nuking the Windows install and reinstalling everything from scratch, but any solution that's less brutal would be welcome.
This question sounds a bit like the existing FSharp build fails in MSBuild, but works ok in Visual Studio question, but the .fsproj file in question already uses TargetFSharpCoreVersion
in the way the accepted answer prescribes.