-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sign all packages and remove .Signed packages #539
Conversation
Mark as deprecated in master and push a new release, then delete the .signed assemblies in v4? This is going to have the same issue with the json tests BTW. Need to resolve. |
On home guard duty and only phone out this week so limited feedback here, but I wonder what is the best practice for deprecating packages. Adding DEPRECATED to title or unlisting package from search might be better? Also, as per guideline we need to ensure assembly version uses only major version (3.0.0.0 vs 3.190.0) to avoid problems with assembly binding redirects for consumers. |
Apparently there is no support for marking packages as deprecated, but there is some work happening on this: I suggest the following
|
Disregard that, I just tried with |
Now fixed. I chose to let FileVersion remain major-version (same as AssemblyVersion), because that is the default behavior and it has no practical effect besides what is shown when right-clicking in Windows - Properties - Details. Only the nuget package holdes the full version, and its binaries have assembly informational version set by SourceLink:
|
I just discovered that signing UnitsNet nuget is indeed a breaking change for JSON serialization. The compatibility tests using 1.3.0 JSON nuget fail with the following:
This is because https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/cs1726
TL;DR I believe we need to
|
Set to major version (x.0.0.0) for version x.y.z as per recommendation.
To version it as major part of <Version> element, per recommendation: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/strong-naming
- Merge Common.props files into .csproj - Remove projects from solution
I think alternate #2 makes sense. |
It was lost in a bad merge conflict handling. Fixes: commit b958303 Author: Tristan Milnthorp <[email protected]> Date: Tue Nov 6 11:12:52 2018 -0500 Sign all packages and remove .Signed packages (#539)
.Signed
projects and nuget packagesAssemblyVersion
to4.0.0.0
for UnitsNet and JSON libAssemblyVersion
as major part only of Version- DEPRECATED
DEPRECATED! Use UnitsNet 4.0.0 or later instead, which is now signed. This package will be unlisted sometime later. [...old description...]