在Azure管道构建过程中出现构建错误

时间:2018-11-03 23:49:41

标签: asp.net-core-2.0 azure-pipelines azure-pipelines-build-task .net-framework-version

我的解决方案中有多个.net项目,并且git上都有所有源代码。 在我的解决方案中,有3个.Net Framework 4.6.1库项目和1个.Net核心2.1 Web项目,其中包含Angular。

当我为此git仓库创建azure管道并触发构建过程的管道时,它给了我错误:

/usr/share/dotnet/sdk/2.1.403    
/Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The    reference assemblies for framework 
".NETFramework,Version=v4.6.1" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application 
to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) 
and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. 

我怀疑可能是由于.net项目版本不同,但我无法在哪里更改azure的设置,或者我必须更改项目目标框架,我认为这不是一个好选择。

0 个答案:

没有答案