用VS2017 build一個既包含net471項目又包含netstandard2.0項目的.net core解決方案時總是出現下面的錯誤The type 'ICollection<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
1 回答

慕仙森
TA貢獻1827條經驗 獲得超8個贊
在 github 上 You must add a reference to assembly netstandard errors 中找到了解決方法,在 .csproj 中手工添加如下的配置:
<Reference Include="netstandard" />
- 1 回答
- 0 關注
- 1471 瀏覽
添加回答
舉報
0/150
提交
取消