Skip to content

Commit 0fc7987

Browse files
committed
C# sln 처리 오류 수정
1 parent e405fce commit 0fc7987

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/samsungsds/analyst/code/main/AppForSonarAnalysisForCSharp.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,17 @@ private void runScannerForMSBuild(MSBuildEnv env, String scannerDirectory, List<
110110
}
111111

112112
private void runMSBuild(MSBuildEnv env, String projectBaseDir) {
113-
projectBaseDir = getSolutionFile(projectBaseDir);
113+
String slnFilePath = getSolutionFile(projectBaseDir);
114114

115115
List<String> command = new ArrayList<>();
116116
if (env == MSBuildEnv.DOT_NET_FRAMEWORK) {
117117
command.add("MSBuild.exe");
118-
command.add(projectBaseDir);
118+
command.add(slnFilePath);
119119
command.add("/t:Rebuild");
120120
} else {
121121
command.add("dotnet");
122122
command.add("build");
123-
command.add(projectBaseDir);
123+
command.add(slnFilePath);
124124
}
125125

126126
runProcessBuilder(command, projectBaseDir);

0 commit comments

Comments
 (0)