Appveyor dotnet publish 使用 net core 1.0.0 失败
Appveyor dotnet publish failing using net core 1.0.0
我有 appveyor 的当前配置
version: 0.0.{build}
before_build:
- nuget restore mysolution.sln
- cmd: set BUILD_VERSION=%APPVEYOR_BUILD_NUMBER%
configuration: Release
build:
project: myproject.xproj
after_build:
- dotnet publish myproject --framework netcoreapp1.0 --output %APPVEYOR_BUILD_FOLDER%\out --configuration Release
- 7z a %APPVEYOR_BUILD_FOLDER%\package-net-core.zip %APPVEYOR_BUILD_FOLDER%\out\*
直到昨天它工作正常。但是由于某种原因,在今天构建之后我看到了这个错误:
C:\projects\myproject.xproj(7,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk.0.1\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
我正在使用 Visual Studio 2015,网络核心 "version":“1.0.0-preview2-003131”
有什么想法吗?
找到解决方案 here。
将 global.json
复制到 root 后它起作用了。
我有 appveyor 的当前配置
version: 0.0.{build}
before_build:
- nuget restore mysolution.sln
- cmd: set BUILD_VERSION=%APPVEYOR_BUILD_NUMBER%
configuration: Release
build:
project: myproject.xproj
after_build:
- dotnet publish myproject --framework netcoreapp1.0 --output %APPVEYOR_BUILD_FOLDER%\out --configuration Release
- 7z a %APPVEYOR_BUILD_FOLDER%\package-net-core.zip %APPVEYOR_BUILD_FOLDER%\out\*
直到昨天它工作正常。但是由于某种原因,在今天构建之后我看到了这个错误:
C:\projects\myproject.xproj(7,3): error MSB4019: The imported project "C:\Program Files\dotnet\sdk.0.1\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
我正在使用 Visual Studio 2015,网络核心 "version":“1.0.0-preview2-003131”
有什么想法吗?
找到解决方案 here。
将 global.json
复制到 root 后它起作用了。