dotnetcore-graphics-example
dotnetcore-graphics-example copied to clipboard
Can't build it
Hi, I would like to try your code, but I couldn't buit it. I'm getting the following errors when I run publish.cmd on Windows. It's asking for a solution file. I think it's because MS recently changed the framework to work without the json file. Have you tried running this code recently?
>publish
>rmdir /s /q out
The system cannot find the file specified.
>ren project.json project.json.bak
>copy "build_jsons\project.windows.json" "project.json"
1 file(s) copied.
>dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>dotnet publish -c Release -o "out\windows"
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>del project.json
>copy "build_jsons\project.osx.json" "project.json"
1 file(s) copied.
>dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>dotnet publish -c Release -o "out\osx"
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>del project.json
>copy "build_jsons\project.linux.json" "project.json"
1 file(s) copied.
>dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>dotnet publish -c Release -o "out\linux"
Microsoft (R) Build Engine version 15.1.1012.6693
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>del project.json
>ren project.json.bak project.json
>dotnet restore
MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
>
Hey @rbasniak Please check out the comments on #2 I'll keep this issue open as it should be fixed though, I should have some spare time this weekend to clean up the project and make it work with csproj instead.
@CameronAavik Thank you for the prompt response. I'll try to fix and run it with the information on #2. Your approach for using OpenGL with .NET Core is very cool, thanks for sharing.
~~I know its not related to this issue, but if anyone else is having trouble building on linux with msbuild this due to the error '...dotnetcore-graphics-example/obj/project.assets.json' not found. Run a NuGet package restore to generate this file., I have found that running the dotnet restore command resolves this~~
just kidding this is literally in the readme for the msbuild-loadlibrary-test branch that I ironically did not read