question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version for satellite assemblies not generated correctly when using `dotnet build`

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
AArnottcommented, May 31, 2017

Thanks. That’s very helpful. I can repro the problem. I’ll take a look at the logs and see what’s going on.

1reaction
AArnottcommented, May 31, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found