Equivalent to AssemblyInfo in dotnet core/csproj

asked9 years ago
last updated5 years ago
viewed167.1k times
Up Vote327Down Vote

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")]

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: 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?