-
Notifications
You must be signed in to change notification settings - Fork 11
fix: generationtask not finding host on net10 builds #168
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
base: master
Are you sure you want to change the base?
Conversation
cc538b1 to
c86d5a5
Compare
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.
Pull request overview
This PR fixes a bug where the SourceGenerationTask fails to correctly parse version numbers for .NET 10 and higher. The issue stems from the original code extracting only a single character from the framework description string, which works for single-digit versions (.NET 6-9) but breaks for multi-digit versions (.NET 10+).
- Replaced single-character extraction with proper version string parsing using
Substring,Split, andint.TryParse - Added proper error handling with a fallback to "net6" if parsing fails
- Maintains backward compatibility with existing .NET versions while supporting .NET 10+
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot do you know how to fix those build errors? |
|
@ajpinedam I've opened a new pull request, #169, to work on those changes. Once the pull request is ready, I'll request review from you. |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
GitHub Issue (If applicable): closes #167
PR Type
What kind of change does this PR introduce?
Bugfix
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Other information
Internal Issue (If applicable):