包含了重复的“Content”项。.NET SDK 默认包含你项目目录中的“Content”项。可从项目文件中删除这些项;如果希望将其显式包含在项目文件中,可将“EnableDefaultContentItems”属性设置为“false”
从.netcore 1.1 升级到2.0时遇到该问题。
参考http://www.cnblogs.com/xishuai/p/visual-studio-for-mac.html
根据提示可知(我是看不明白),经过文章中提示,将csproj文件中ItemGroup节点下,Content 节点全部删除就ok了。
<ItemGroup> <Content Include="PropertieslaunchSettings.json" /> </ItemGroup>