Skip to content

Commit

Permalink
C# sln 처리 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
switchover committed Mar 17, 2021
1 parent e405fce commit 0fc7987
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ private void runScannerForMSBuild(MSBuildEnv env, String scannerDirectory, List<
}

private void runMSBuild(MSBuildEnv env, String projectBaseDir) {
projectBaseDir = getSolutionFile(projectBaseDir);
String slnFilePath = getSolutionFile(projectBaseDir);

List<String> command = new ArrayList<>();
if (env == MSBuildEnv.DOT_NET_FRAMEWORK) {
command.add("MSBuild.exe");
command.add(projectBaseDir);
command.add(slnFilePath);
command.add("/t:Rebuild");
} else {
command.add("dotnet");
command.add("build");
command.add(projectBaseDir);
command.add(slnFilePath);
}

runProcessBuilder(command, projectBaseDir);
Expand Down

0 comments on commit 0fc7987

Please sign in to comment.