Skip to content

Conversation

@ajpinedam
Copy link

@ajpinedam ajpinedam commented Dec 12, 2025

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:

  • Tested code with current supported SDKs
  • Docs have been added/updated which fit documentation template. (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Updated the Release Notes
  • Associated with an issue (GitHub or internal)

Other information

Internal Issue (If applicable):

@ajpinedam ajpinedam force-pushed the fix/not.finding.generation.host branch from cc538b1 to c86d5a5 Compare December 12, 2025 22:27
@ajpinedam ajpinedam self-assigned this Dec 12, 2025
@ajpinedam ajpinedam requested a review from Copilot December 12, 2025 22:28
Copy link

Copilot AI left a 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, and int.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.

@ajpinedam
Copy link
Author

@copilot do you know how to fix those build errors?

Copy link

Copilot AI commented Dec 17, 2025

@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.

@ajpinedam
Copy link
Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to find Uno.SourceGeneration.Host.dll when running on net10

5 participants