Equivalent to AssemblyInfo in dotnet core/csproj

Since dotnet core moved back to the .csproj format, there is a new autogenerated MyProject.AssemblyInfo.cs which contains, among others:

[assembly: AssemblyCompany("MyProject")]
[assembly: AssemblyVersion("1.0.0.0")]

Note that this is automatically regenerated every build.
Previously, the file was found in the /obj/ directory, now it appears to be only in memory as the file can’t be found on disk and clicking the error message does not open any file.

This is the error message:
enter image description here

Since they are defined there, I can’t define them myself in the classical AssemblyInfo.cs.

Where/how can I define the Company and Version of a project?

8 Answers
8

Leave a Comment