I have migrated project of WPF in Asp.Net framework into Asp.Net core. Existing .net projects have AssemblyInfo.cs inside properties folder.when creating new WPF project using "dotnet new wpf". AssemblyInfo.cs file gets added.
AssemblyInfo.cs in .Net framework have all information but the one in dot net core doesn't have any information
Planning to delete new one created for core since getting build issue as "duplicate ThemeInfo attribute" and disable old one which got migrated from .Net framework using add below properties in the csproj
<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Need to know if is this needed for Net core project.
Properties/AssemblyInfo.cs should be removed when you upgrade your project from .NET Framework to .NET Core or .NET 5 or .NET 6. As you saw, you will get build errors otherwise. Instead, the info that was in there now should be stored directly in the .csproj file.