In a Windows C# project created using Visual Studio 2019 I see the file:
.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
added to the solution with the following content:
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
It's located under obj\Debug folder.
How does this C# file exist by itself? It has no namespace specification and does not seem to be part of a class. Is it pulled into the build by some sort of special convention?
NOTE: I know about the following question:
The above question does not answer my question of how the file is pulled into the build.