Skip to content

Commit 26251cc

Browse files
MSBuildMinVersion -> LatestMSBuild
1 parent d5760f5 commit 26251cc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

its/src/test/java/com/sonar/it/scanner/msbuild/sonarqube/MultiLanguageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void bothRoslynLanguages() {
7777
// SonarQube 10.8 changed the way the numbers are reported. To keep the test simple we only run the test on the latest versions.
7878
@ServerMinVersion("10.8")
7979
// This test is not supported on versions older than Visual Studio 2022
80-
@MSBuildMinVersion(17)
80+
@MSBuildMinVersion(18)
8181
@DisableOnEdition(Edition.COMMUNITY)
8282
void esprojVueWithBackend() {
8383
// For this test also the .vscode folder has been included in the project folder:

its/src/test/java/com/sonar/it/scanner/msbuild/sonarqube/SolutionKindTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,16 @@ void xaml() {
8080
}
8181

8282
@Test
83-
// We can't build without MsBuild17
84-
@MSBuildMinVersion(17)
83+
// We can't build without MsBuild18
84+
@MSBuildMinVersion(18)
8585
void razor_Net9_WithoutSourceGenerators() {
8686
String projectName = "RazorWebApplication.net9.withoutSourceGenerators";
8787
validateRazorProject(projectName, "<UseRazorSourceGenerator>false</UseRazorSourceGenerator>");
8888
}
8989

9090
@Test
91-
// We can't build without MsBuild17
92-
@MSBuildMinVersion(17)
91+
// We can't build without MsBuild18
92+
@MSBuildMinVersion(18)
9393
void razor_Net9_WithSourceGenerators() {
9494
String projectName = "RazorWebApplication.net9.withSourceGenerators";
9595
validateRazorProject(projectName, "<UseRazorSourceGenerator>true</UseRazorSourceGenerator>");
@@ -174,8 +174,8 @@ void net8_NoAnalysisWarnings() {
174174
}
175175

176176
@Test
177-
// dotnet sdk tests should run only on VS 2022
178-
@MSBuildMinVersion(17)
177+
// dotnet sdk tests should run only on latest VS
178+
@MSBuildMinVersion(18)
179179
void sdkLatest() {
180180
validateCSharpSdk("CSharp.SDK.Latest");
181181
}

its/src/test/java/com/sonar/it/scanner/msbuild/sonarqube/TelemetryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ void telemetry_telemetryFiles_areCorrect_CSVB_Mixed() {
114114
}
115115

116116
@Test
117-
@MSBuildMinVersion(17)
117+
@MSBuildMinVersion(18)
118118
@ServerMinVersion("2025.3")
119119
void telemetry_multiTargetFramework_tfmsAreCorrectlyRecorded() {
120120
var context = AnalysisContext.forServer(Paths.get("Telemetry", "TelemetryMultiTarget").toString());

0 commit comments

Comments
 (0)