2017-03-21 33 views
0

失败我有当前配置appveyorAppveyor DOTNET发布使用网络核心1.0.0

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\1.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年,净芯 “版本”: “1.0.0-preview2-003131”

任何想法?

回答

0

找到解决方案here

global.json复制到根目录后就可以了。