'How do i add /Properties/AssemblyInfo.log4net.cs to my csproj in VS2019

We updated log4net NuGet package from version 1.2.12.0 to 2.0.9.0 but when comparing the old branch with the new some unexpected changes was found.

In the old branch we had a /Properties/AssemblyInfo.log4net.cs file with:

[assembly: log4net.Config.XmlConfigurator(Watch = true)]

This file was reference in the csproj file as:

<Compile Include="Properties\AssemblyInfo.log4net.cs" />

How do I make this change in Visual Studio 2019 (Version 16.11.2) ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source