-
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
Improve error message for the case when Crossgen2 package is not present #24324
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for improving the error message! Would there also be a chance (perhaps in a follow-up change) to make SDK report something actionable when Crossgen2 fails with an error when compiling the assembly? From what I recall from last year when I was switching over framework assemblies to be built using Crossgen2, it was pretty tricky to get to the actual underlying Crossgen2 error and SDK just reported this generic message.
Failures are caused by an infra issue: #24303 (comment). |
Could you please describe the scenario where diagnostics is lacking? Note that I closed the issue you opened a year ago, because I could not reproduce it: #15466 (comment). Feel free to reactivate it and provide more details. |
Thanks for reminding me, I'll retest this when I have a chance, it's certainly possible that the issue has been fixed since. |
@TanayParikh I am still hitting the infra issue below in this PR. Do you know what is going on?
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
https://dev.azure.com/dnceng/public/_build?definitionId=136&_a=summary the pipeline is passing again so doing an azp run should create a new merge commit to run the CI against. Hopefully that resolves the deprecated |
@TanayParikh Thank you for the help! |
Improve the error message for the scenario described in #20701 (
_crossgen2Tool.PackagePath
is notnull
, but an empty string). The current error message:The new error message (it has to cover other scenarios as well):
The added sentence is in bold. We may also hit this error with .NET 5 if
PublishReadyToRunUseCrossgen2
is set totrue
; however, it is a rare scenario and I did not want to make the error message hard to read.@dotnet/crossgen-contrib