-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[RAR] Don't do I/O on SDK-provided references #8688
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
Changes from 1 commit
24a177b
3d003a9
de1a659
5e59038
be583ab
1623885
aee5113
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -34,6 +34,7 @@ internal static class AssemblyResolution | |||||||||||||||||
/// <param name="sdkName"></param> | ||||||||||||||||||
/// <param name="rawFileNameCandidate">The file name to match if {RawFileName} is seen. (May be null).</param> | ||||||||||||||||||
/// <param name="isPrimaryProjectReference">True if this is a primary reference directly from the project file.</param> | ||||||||||||||||||
/// <param name="isImmutableFrameworkReference">True if <paramref name="rawFileNameCandidate"/> is immutable and guaranteed to exist.</param> | ||||||||||||||||||
/// <param name="wantSpecificVersion"></param> | ||||||||||||||||||
/// <param name="executableExtensions">The filename extension of the assembly. Must be this or its no match.</param> | ||||||||||||||||||
/// <param name="hintPath">This reference's hintpath</param> | ||||||||||||||||||
|
@@ -48,6 +49,7 @@ internal static string ResolveReference( | |||||||||||||||||
string sdkName, | ||||||||||||||||||
string rawFileNameCandidate, | ||||||||||||||||||
bool isPrimaryProjectReference, | ||||||||||||||||||
bool isImmutableFrameworkReference, | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're currently saying this is only for immutable framework references, but do you think we might extend that later? If so, maybe we should use a somewhat more generic name? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd say what's interesting is not the immutability, but that we can assume its dependency closure is provided by the framework so don't need to explore it--right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fair...fullyUnderstoodReferences? Better name with that intent? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Not quite right. The property of "dependency closure is provided" is signaled with the msbuild/src/Tasks/AssemblyDependency/ReferenceTable.cs Lines 1692 to 1699 in 768cad1
This new flag means "the file is guaranteed to exist and never change" and in the As for the name, I was on the fence between "immutable" and "framework" so I used both 😀 |
||||||||||||||||||
bool wantSpecificVersion, | ||||||||||||||||||
string[] executableExtensions, | ||||||||||||||||||
string hintPath, | ||||||||||||||||||
|
@@ -79,6 +81,7 @@ internal static string ResolveReference( | |||||||||||||||||
sdkName, | ||||||||||||||||||
rawFileNameCandidate, | ||||||||||||||||||
isPrimaryProjectReference, | ||||||||||||||||||
isImmutableFrameworkReference, | ||||||||||||||||||
wantSpecificVersion, | ||||||||||||||||||
executableExtensions, | ||||||||||||||||||
hintPath, | ||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.