-
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
Exclude runtimeidentifiers for runtimepack #22658
Exclude runtimeidentifiers for runtimepack #22658
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.
Otherwise, the test looks like this should fix #19891.
HashSet<string> availableRids = new HashSet<string>(availableRuntimeIdentifiers); | ||
HashSet<string> excludedRids = runtimeIdentifiersToExclude switch { null => null, _ => new HashSet<string>(runtimeIdentifiersToExclude) }; |
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.
Is it worth using the ctor for HashSet<T>
where you pass a StringComparer
? StringComparer.Ordinal
might help performance a bit? (Or OrdinalIgnoreCase
if it is correct)
{ | ||
return candidateRuntimeIdentifier; | ||
// Don't treat this as a match | ||
return null; | ||
} | ||
} | ||
|
||
// No compatible RID found in availableRuntimeIdentifiers |
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 like this comment is out of date now?
{ | ||
var testProject = new TestProject() | ||
{ | ||
TargetFrameworks = "net6.0", |
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.
nit: don't we have a current framework field now to make it easier to update test TFMs?
2dc6156
to
840292f
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Allow RuntimeIdentifiers to be excluded from runtime packs.
Will fix #19891, once we add
RuntimePackExcludedRuntimeIdentifiers="android"
to the ASP.NET KnownFrameworkReference items.Also fixes an unrelated issue where ResolveAppHosts would generate errors in debug mode because it was generating messages prefixed with NETSDK error codes.