-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Set PackageValidationBaselineName to assemblyName when packageID is not set #18658
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
In which cases is PackageId not set? |
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Its being set late during the sdk evaluation. |
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
Doesn't that mean that PackageId is never used then? |
unless its a global property |
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
which is never the case usually. |
setting the packageID in the csproj would be another scenario. |
That's also very rarely the case for projects unless they would want to override it. You could easily avoid this sequencing issue by inlining the
By inlining it, you will only access the |
...tibility/Microsoft.DotNet.PackageValidation/build/Microsoft.DotNet.PackageValidation.targets
Outdated
Show resolved
Hide resolved
LGTM module the one remaining feedback item. |
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
Fixes issue in dotnet/runtime#54250