Skip to content

Commit dc88303

Browse files
committed
Undo dependency reorder
1 parent f1c92d6 commit dc88303

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Tasks/Microsoft.NET.Build.Tasks/DependencyContextBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,11 @@ public DependencyContext Build(string[] userRuntimeAssemblies = null)
262262

263263
List<ModifiableRuntimeLibrary> runtimeLibraries = new();
264264

265+
if (_includeMainProjectInDepsFile)
266+
{
267+
runtimeLibraries.Add(GetProjectRuntimeLibrary());
268+
}
269+
265270
runtimeLibraries.AddRange(GetRuntimePackLibraries());
266271

267272
foreach (var library in _dependencyLibraries.Values
@@ -299,11 +304,6 @@ public DependencyContext Build(string[] userRuntimeAssemblies = null)
299304
runtimeLibraries.Add(runtimeLibrary);
300305
}
301306

302-
if (_includeMainProjectInDepsFile)
303-
{
304-
runtimeLibraries.Add(GetProjectRuntimeLibrary());
305-
}
306-
307307
/*
308308
* We now need to modify runtimeLibraries to eliminate those that don't have any runtime assets. We follow the following steps:
309309
* 0. Construct a reverse dependencies list: all runtimeLibraries that depend on this one

0 commit comments

Comments
 (0)