Just in case, someone else is faced with this problem, here's how to fix it .
The problem is similar to the one that Gustavo solved in the previous answer, but for F # projects, it seems that there is another additional problem that you have to solve.
I had this problem in VS2013 Update 2 . The problem appeared after editing the platform settings, adding the x64 platform to Configuration Manager.
The problem is with the order of some XML tags in the .fsproj file . The following is the correct .fsproj file.
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="12.0" DefaultTargets="Build" ...> <Import Project=.../> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> ... <RestorePackages>true</RestorePackages> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> ... </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <Tailcalls>true</Tailcalls> ... </PropertyGroup> <PropertyGroup> <MinimumVisualStudioVersion Condition="'$(MinimumVisualStudioVersion)' == ''">11</MinimumVisualStudioVersion> </PropertyGroup>
It happens that sometimes after editing configurations in Configuration Manager, one or more PropertyGroup tags that configure the platform (Debug | x64 or Release | x64) are moved down to the file.
So, just edit the fsproj file and move these tags up. For example, move them immediately before the group that defines MinimumVisualStudioVersion, as in the example. Save, reload the project and compile.
Haplo source share