Version for satellite assemblies not generated correctly when using `dotnet build`
See original GitHub issueWhen using NB.GV with a package that has satellite assemblies, the version numbers there are 0.0.0.0
For a repro, see the dev
branch of https://github.com/humanizr/Humanizer. This worked before using the regular SDK style version
property.
Perhaps with SDK style projects, NB.GV shouldn’t write its own .Version.cs
file like it does today? It could just set the appropriate MSBuild properties and let the SDK style tasks generate the attributes in the assembly info file. That may fix the incremental build issue too.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Create satellite assemblies - .NET
Get started with creating satellite assemblies for .NET apps. A satellite assembly can be easily updated or replaced to provide localized ...
Read more >MSBuild creates satellite assemblies for the wrong ...
The satellite assemblies created from there are not recognized. Looking with ILDASM I see the VS2010 create metadata version 2 while MSBuild ...
Read more >Satellite assembly references 4.0 of mscorlib instead of 2.0
Something appears to be wrong with the version of "mscorlib" generated for a satellite assembly in a standard WinForms app. You can easily...
Read more >Unable to extract a .Net satellite assembly
This means that if the required version of al.exe is not in the required .Net framework folder then it will not be possible...
Read more >How to generate resource satellite assemblies with ...
I am pulling my hair out trying to make sense of how to implement localization + resource satellite assemblies in accordance with this ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks. That’s very helpful. I can repro the problem. I’ll take a look at the logs and see what’s going on.
NB.GV already sets that property: https://github.com/AArnott/Nerdbank.GitVersioning/blob/master/src/Nerdbank.GitVersioning.NuGet/build/Nerdbank.GitVersioning.targets#L28
But there is a bug in .NET SDK .targets’ ability to restore packages and regenerate their file that causes issues. I’ll share the link later today.