Skip to content

Commit b2eac85

Browse files
committed
another fix for folder mode
1 parent 4c12473 commit b2eac85

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

OmniSharp/Solution/CSharpProject.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,6 @@ public CSharpProject(ISolution solution, Logger logger, string folderPath)
117117
Files.Add(new CSharpFile(this, file.FullName));
118118
}
119119

120-
var dlls = folder.EnumerateFiles("*.dll", SearchOption.AllDirectories);
121-
foreach (var dll in dlls)
122-
{
123-
_logger.Debug("Loading assembly " + dll.FullName);
124-
AddReference(dll.FullName);
125-
}
126-
127-
128120
this.ProjectContent = new CSharpProjectContent()
129121
.SetAssemblyName(AssemblyName)
130122
.AddAssemblyReferences(References)
@@ -133,6 +125,13 @@ public CSharpProject(ISolution solution, Logger logger, string folderPath)
133125
AddMsCorlib();
134126
AddReference(LoadAssembly(FindAssembly("System.Core")));
135127
AddAllKpmPackages();
128+
129+
var dlls = folder.EnumerateFiles("*.dll", SearchOption.AllDirectories);
130+
foreach (var dll in dlls)
131+
{
132+
_logger.Debug("Loading assembly " + dll.FullName);
133+
AddReference(dll.FullName);
134+
}
136135
}
137136

138137
public CSharpProject(ISolution solution, Logger logger, string title, string fileName, Guid id)

0 commit comments

Comments
 (0)