dotnetcore-graphics-example icon indicating copy to clipboard operation
dotnetcore-graphics-example copied to clipboard

Can't build it

Open rbasniak opened this issue 7 years ago • 3 comments

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.

>

rbasniak avatar Jun 07 '17 23:06 rbasniak