错误CS0012:类型“对象”在未引用的组件定义的。您必须添加到组装“netstandard参考,版本= 2.0.0.0

问题描述 投票:1回答:1

我最近加入到Microsoft.Azure.NotificationHubs一揽子参考。这是实现我们所有的服务的ASP.NET Web API项目。

在TFS构建但与下面的错误失败。

enter image description here

enter image description here

我添加了一个参考netstandard 2.03,但我仍然得到错误。

我使用Visual Studio 2017年15.9.4。我已经安装了最新的SDK和构建服务器构建工具。

msbuild tfsbuild .net-standard .net-standard-2.0
1个回答
2
投票

我设法找到答案这个问题here。总之,我添加了以下行到的.csproj

<Reference Include="netstandard" />
© www.soinside.com 2019 - 2024. All rights reserved.