Sitelet https://github.com/unoplatform/Uno.SourceGeneration/pull/168
Skip to content

fix: generationtask not finding host on net10 builds - #168

Open
ajpinedam wants to merge 3 commits into
masterfrom
fix/not.finding.generation.host
Open

ajpinedam wants to merge 3 commits into
masterfrom
fix/not.finding.generation.host

Conversation

@ajpinedam

@ajpinedam ajpinedam commented Dec 12, 2025 •

Copy link
Copy Markdown

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

Copilot AI left a comment

Copy link
Copy Markdown

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.

Comment thread src/Uno.SourceGeneratorTasks.Dev15.0/Tasks/SourceGenerationTask.cs
Comment thread src/Uno.SourceGeneratorTasks.Dev15.0/Tasks/SourceGenerationTask.cs
@ajpinedam

Copy link
Copy Markdown
Author

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

Copilot AI commented Dec 17, 2025

Copy link
Copy Markdown

@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
Copy Markdown
Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@Soap-141

Copy link
Copy Markdown

@copilot Take a look at the build issues

@Soap-141

Copy link
Copy Markdown

/azp run

@azure-pipelines

Copy link
Copy Markdown
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

7 participants