File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Tasks/Microsoft.NET.Build.Tasks Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,11 @@ public DependencyContext Build(string[] userRuntimeAssemblies = null)
262
262
263
263
List < ModifiableRuntimeLibrary > runtimeLibraries = new ( ) ;
264
264
265
+ if ( _includeMainProjectInDepsFile )
266
+ {
267
+ runtimeLibraries . Add ( GetProjectRuntimeLibrary ( ) ) ;
268
+ }
269
+
265
270
runtimeLibraries . AddRange ( GetRuntimePackLibraries ( ) ) ;
266
271
267
272
foreach ( var library in _dependencyLibraries . Values
@@ -299,11 +304,6 @@ public DependencyContext Build(string[] userRuntimeAssemblies = null)
299
304
runtimeLibraries . Add ( runtimeLibrary ) ;
300
305
}
301
306
302
- if ( _includeMainProjectInDepsFile )
303
- {
304
- runtimeLibraries . Add ( GetProjectRuntimeLibrary ( ) ) ;
305
- }
306
-
307
307
/*
308
308
* We now need to modify runtimeLibraries to eliminate those that don't have any runtime assets. We follow the following steps:
309
309
* 0. Construct a reverse dependencies list: all runtimeLibraries that depend on this one
You can’t perform that action at this time.
0 commit comments