-
Notifications
You must be signed in to change notification settings - Fork 126
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
Resolve assemblies from specific paths #567
Changes from all commits
1bd01c0
2074abc
4ab145e
b7d7504
9dd49f3
cd9c2f2
a757cd3
36f9c2c
a0c7c63
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 |
---|---|---|
|
@@ -32,7 +32,7 @@ protected DirectoryAssemblyResolver () | |
directories = new Collection<string> (2) { "." }; | ||
} | ||
|
||
AssemblyDefinition GetAssembly (string file, ReaderParameters parameters) | ||
protected AssemblyDefinition GetAssembly (string file, ReaderParameters parameters) | ||
{ | ||
if (parameters.AssemblyResolver == null) | ||
parameters.AssemblyResolver = this; | ||
|
@@ -50,7 +50,7 @@ public virtual AssemblyDefinition Resolve (AssemblyNameReference name, ReaderPar | |
if (name == null) | ||
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. Aren't the ArgumentNullException check now redundant? 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. They're redundant in the sense that the base class performs the same check, but also necessary to prevent passing null to SearchAssemblyPaths (renamed to ResolveFromReferences). |
||
throw new ArgumentNullException ("name"); | ||
if (parameters == null) | ||
parameters = new ReaderParameters (); | ||
throw new ArgumentNullException ("parameters"); | ||
|
||
var assembly = SearchDirectory (name, directories, parameters); | ||
if (assembly != null) | ||
|
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.
👍
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.
Can you please make the response file such that there is one argument/switch per line?
Basically add newlines at the end of each option?
This makes it easier to inspect the rsp files manually.
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.
Done, thanks!