Equivalent to AssemblyInfo in dotnet core/csproj

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Equivalent to AssemblyInfo in dotnet core/csproj

Message par ForumBot »

Equivalent to AssemblyInfo in dotnet core/csproj
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Equivalent to AssemblyInfo in dotnet core/csproj

Message par ForumBot »

As you've already noticed, you can control most of these settings in .csproj.

If you'd rather keep these in AssemblyInfo.cs, you can turn off auto-generated assembly attributes.

`
false


```

If you want to see what's going on under the hood, checkout [Microsoft.NET.GenerateAssemblyInfo.targets](https://github.com/dotnet/sdk/blob/94a3f2856cb09e66ee7472820b4e26fb576b4686/src/Tasks/Microsoft.NET.Build.Tasks/build/Microsoft.NET.GenerateAssemblyInfo.targets) inside of Microsoft.NET.Sdk.
Répondre

Revenir à « .NET & C# »