c# – How do I upgrading a .NET Framework Visual Studio project to SDK style?


After using Microsoft Upgrade Assistant without changing my ASP.NET MVC project .NET Framework target (4.7.2), I get the following error. How can I get rid of it?

Error NETSDK1022 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 https://aka.ms/sdkimplicititems. The duplicate items were:
‘Views\Web.config’; ‘Web.config’; ‘Web.Debug.config’;
‘Web.Release.config’;…

Leave a Reply

Your email address will not be published. Required fields are marked *