Closed Korporal closed 2 years ago
Hmm I may have just found the answer, seems theses guys created NetRevisionTask that does something for/with .Net Standard/Core.
A workaround is setting the assemblyInfos in your .csproj
`
`
This is by-design and behavior of SDK style projects. Closing as by-design.
I'm completely perplexed.
I created a .Net Standard 2.0 library project.
I explicity added an AssemblyInfo.cs file, we need this because we use this utility to "stamp" our assemblies when we build them:
https://github.com/ygoe/NetRevisionTool
That utility is run as a pre/post build event and temporarily replaces placeholders in the AssemblyInformationalVersion attribute with runtime values (like repo folder name, commit ID, branch etc etc).
The completed assembly then has this info "burned" into it as we go forward.
.Net Standard is not working with this.
This is just mind blowing, is there no way we can do this seemingly simple operation any more if adopt .Net Standard?