Open sokolovsa opened 2 years ago
Tagging subscribers to this area: @ajcvickers, @bricelam, @roji See info in area-owners.md if you want to be subscribed.
Author: | sokolovsa |
---|---|
Assignees: | - |
Labels: | `area-System.ComponentModel.DataAnnotations`, `untriaged` |
Milestone: | - |
I think this is a duplicate of https://github.com/dotnet/runtime/issues/41221 unfortunately Microsoft has created a bigger issue than described. So closing it and blocking from comments was not very nice. It is not possible to do a binding redirect for a PowerShell (non-Core) module of course just easily as descripted. So we got in dependency hell again because this version mess. We have to do the redirect now via code as descripted here https://devblogs.microsoft.com/powershell/resolving-powershell-module-assembly-dependency-conflicts/
I opened a similar issue here before realizing this one already existed. Linking the issue here for more details.
There is an ask to add some public doc explaining the issue and workarounds.
Description
Nuget package System.ComponentModel.Annotations versions: 6.0.0-preview.4.21253.7 5.0.0 4.7.0
ref assembly in package subfolder ref/netstandard2.0 and assembly in subfolder lib/netstandard2.0 have different AssemblyVersion attribute ref assembly has AssemblyVersion=4.2.0 real assembly has AssemblyVersion=4.2.1
Reproduction Steps
Expected behavior
the output dll has reference to System.ComponentModel.Annotations v 4.2.1
Actual behavior
the output dll has reference to System.ComponentModel.Annotations v 4.2.0
Regression?
No response
Known Workarounds
No response
Configuration
.net standard 2.0
Other information
No response