视觉工作室为Mac - 启用默认conulttent项目
问题描述:
我想在目前工作正常,在2017年VS视觉工作室为Mac - 启用默认conulttent项目
我从Git的&代码一个asp.net核心项目工作从恢复的NuGet包全部正确。
当我尝试启动或建立我在为Mac的.Net核心的最后一个可用的版本Microsoft.Net.Sdk.defaultItems.target错误的应用程序。针对
代码:
<!-- Default content items are enabled by the Web SDK, not the .NET SDK, but we check it here for simplicity -->
<CheckForDuplicateItems
Items="@(Content)"
ItemName="Content"
DefaultItemsEnabled="$(EnableDefaultItems)"
DefaultItemsOfThisTypeEnabled="$(EnableDefaultContentItems)"
PropertyNameToDisableDefaultItems="EnableDefaultContentItems"
MoreInformationLink="$(DefaultItemsMoreInformationLink)"
ContinueOnError="$(CheckForDuplicateItemsContinueOnError)">
<Output TaskParameter="DeduplicatedItems" ItemName="DeduplicatedContentItems" />
</CheckForDuplicateItems>
错误(这是来自法国的一个快译):被列入
重复的 “内容” 的元素。 .NET SDK自动 包括从你的项目目录“内容”的元素。从你的项目,你可以删除这个 元件或设置属性 “EnableDefaultContentItems”为假。如果你想在你的项目文件blablabla的 变化...
当然我删除所有复制的内容,但我仍然有错误。
我已经有人面对这个错误...
编辑:文件在Visual Studio中的每个我启动时间我的项目
答
只复制的Mac寻找.Net的核心SDK的回购后, ,我发现
“EnableDefaultContentItems”
需要添加到的.csproj
提出错误的项目。
问题解决