Skip to content
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

[release/6.1] dotnet-svcutil: port 2 more PRs from main branch #5521

Closed
wants to merge 2 commits into from

Conversation

imcarolwang
Copy link
Contributor

Cc: @HongGit.

* Support referenced assembly type reuse for multi-target project

* Resolve reabse conflict.

* rebase and fix test issue.

* Apply workaround for reusing WindowsAppSDK pkg types in maui 7.0-xxx project

* Rebase and resolve conflicts.
// this.MSBuildProj.TargetFramework = targetFramework;
//}
var targetFramework = frameworkInfo.FullName;
if (isSupportedTFM && frameworkInfo.Name != FrameworkInfo.Netstandard && frameworkInfo.Version.CompareTo(new Version(6, 0)) >= 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will still support net standard.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

netstandard support remains both before and after the change. The bootstrapper project serves the purpose of type reuse and is required to be an executable target, hence it cannot be netstandard. With this update, the bootstrapper project now targets the default .NET Core version installed on the machine when the user project targets netstandard. Previously, the bootstrapper project inadvertently used the default .NET Core version installed on the machine regardless of the target of the user project, which was unintended.

@imcarolwang imcarolwang closed this Jul 8, 2024
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.

None yet

2 participants