microsoft/fsharplu

How to build the project?

Closed this issue · 2 comments

  1. dotnet build returns this error:
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(2630,7): error MSB4057: The target "CreateManifestResourceNames" does not exist in the project. [D:\_\F#\re
pos\fsharplu\FSharpLu\FSharpLu.fsproj]
C:\Program Files\dotnet\sdk\1.0.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets(73,5): error : Project 'D:\_\F#\repos\fsharplu\FSharpLu.Json\FSharpLu.Json.fsproj' ta
rgets '.NETStandard,Version=v1.6; .NETStandard,Version=v2.0; .NETFramework,Version=v4.5.2; .NETFramework,Version=v4.6.1'. It cannot be referenced by a project that targets '.NETFram
ework,Version=v4.0'. [D:\_\F#\repos\fsharplu\FSharpLu.Json\FSharpLu.Json.fsproj]
C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CurrentVersion.targets(2630,7): error MSB4057: The target "CreateManifestResourceNames" does not exist in the project. [D:\_\F#\re
pos\fsharplu\FSharpLu.Json\FSharpLu.Json.fsproj]
C:\Program Files\dotnet\sdk\1.0.4\Sdks\Microsoft.NET.Sdk\build\Microsoft.NET.Sdk.Common.targets(73,5): error : Project 'D:\_\F#\repos\fsharplu\FSharpLu\FSharpLu.fsproj' targets '.NE
TStandard,Version=v2.0; .NETFramework,Version=v4.5.2; .NETFramework,Version=v4.6.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.0'. [D:\_\F#\repos\f
sharplu\FSharpLu\FSharpLu.fsproj]
  1. When I open project in VS2015, I get following error message box:
    image
blumu commented

Have you installed the latest dotnet core SDK from https://www.microsoft.com/net/core? You should be able to build from the command-line with dotnet build. For building under Visual Studio, I am not sure if VS2015 works with dotnet core projects, could you try instead with VS2017?

Thanks. The problem was that I used DotNetCore version 1.0.4. After updating to 2.0.0 build was successfull.