zoukankan      html  css  js  c++  java
  • [VS]

    copy to :http://www.cnblogs.com/jinzesudawei/p/7376916.html

    VS 2017 升级至  VS 2017 v15.3 后,.Net Core 1.1 应用编译报错:

    Error: 包含了重复的“Content”项。.NET SDK 默认情况下包括你项目中的“Content”项。
    可以从项目文件中删除这些项,或者如果希望将其显示包含在项目文件中,则可以将“EnableDefaultContentItems”属性设置为“false”。

    Error : Duplicate 'Content' items were included. The .NET SDK includes 'Content' items from your project directory by default. 
    You can either remove these items from your project file, or set the 'EnableDefaultContentItems' property to 'false' if you want to explicitly include them in your project file. 

    解决

    在 .csproj 项目文件中添加如下配置项,重启解决方案编译成功。

      <PropertyGroup>
        <EnableDefaultContentItems>false</EnableDefaultContentItems>
      </PropertyGroup>

    参考资料

    https://stackoverflow.com/a/45586177

  • 相关阅读:
    练习12
    练习11
    练习10(图片题)
    练习9(第九章习题)
    练习8(图片题)
    练习5
    练习4
    对象的赋值与比较
    静态方法
    静态变量
  • 原文地址:https://www.cnblogs.com/0to9/p/8276236.html
Copyright © 2011-2022 走看看