File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed
csharp/extractor/Semmle.Extraction.CSharp.Standalone Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,6 @@ public BuildAnalysis(Options options, IProgressMonitor progress)
100
100
dllDirNames . Add ( runtimeLocation ) ;
101
101
}
102
102
103
- if ( options . UseMscorlib )
104
- {
105
- // Add mscorlib.dll or System.Private.CoreLib.dll to the list of DLLs to reference.
106
- var loc = typeof ( object ) . Assembly . Location ;
107
- var dir = Path . GetDirectoryName ( loc ) ;
108
- if ( dir != null )
109
- {
110
- progressMonitor . Log ( Util . Logging . Severity . Debug , $ "Adding folder { dir } to DLL search path.") ;
111
- dllDirNames . Add ( dir ) ;
112
- }
113
- }
114
-
115
103
// These files can sometimes prevent `dotnet restore` from working correctly.
116
104
using ( new FileRenamer ( sourceDir . GetFiles ( "global.json" , SearchOption . AllDirectories ) ) )
117
105
using ( new FileRenamer ( sourceDir . GetFiles ( "Directory.Build.props" , SearchOption . AllDirectories ) ) )
@@ -132,6 +120,11 @@ public BuildAnalysis(Options options, IProgressMonitor progress)
132
120
UseReference ( filename ) ;
133
121
}
134
122
123
+ if ( options . UseMscorlib )
124
+ {
125
+ UseReference ( typeof ( object ) . Assembly . Location ) ;
126
+ }
127
+
135
128
ResolveConflicts ( ) ;
136
129
137
130
// Output the findings
You can’t perform that action at this time.
0 commit comments