Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Duplicate Content items were included. The .NET SDK includes #3791


User avatar
0
antonis created

After upgrading to VS2017 15.3 I am getting a huge 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. For more information, see <a class="postlink" href="https://aka.ms/sdkimplicititems">https://aka.ms/sdkimplicititems</a>. The duplicate items were: 'wwwroot\Common\Images\app-logo-on-light.png'; 'wwwroot\Common\Images\app-logo-small.png'; 'wwwroot\Common\Images\logo.png'; 'wwwroot\Common\Styles\core.css'; 'wwwroot\Common\Styles\core.less'; 'wwwroot\Common\Styles\core.min.css'; ......"

I found this link on how to fix it <a class="postlink" href="https://www.danielcrabtree.com/blog/273/fixing-the-duplicate-content-error-after-upgrading-visual-studio-2017">https://www.danielcrabtree.com/blog/273 ... tudio-2017</a>

"The solution is simple. Right click on the affected project in solution explorer, select Edit [YourProjectName].csproj, then remove the lines that specify what content to include"

Problem is I edited the csproj file but didnt see all these files


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    thanks for the information ;)

  • User Avatar
    0
    antonis created

    Managed to resolve it. Check the link

    <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/413">https://github.com/aspnetzero/aspnet-ze ... issues/413</a>