@@ -52,6 +52,9 @@ public void AvailableVersionCompareCurrentTest()
52
52
VersionInfo . CurrentVersion . Minor ,
53
53
VersionInfo . CurrentVersion . Patch ,
54
54
VersionInfo . CurrentVersion . Revision ,
55
+ #pragma warning disable CS0436 // Type conflicts with imported type
56
+ ThisAssembly . IsPublicRelease ? VersionInfo . CurrentVersion . ReleaseLabels :
57
+ #pragma warning restore CS0436 // Type conflicts with imported type
55
58
VersionInfo . CurrentVersion . ReleaseLabels . Concat ( new string [ ] { "g" + VersionInfo . CurrentVersion . Metadata } ) , string . Empty ) ;
56
59
Assert . IsNull ( VersionInfo . GetBestAvailableVersion ( new NuGetVersion [ ] { currentVersion } , true ) ) ;
57
60
}
@@ -64,6 +67,9 @@ public void AvailableVersionCompareNextTest()
64
67
VersionInfo . CurrentVersion . Minor ,
65
68
VersionInfo . CurrentVersion . Patch ,
66
69
VersionInfo . CurrentVersion . Revision + 1 ,
70
+ #pragma warning disable CS0436 // Type conflicts with imported type
71
+ ThisAssembly . IsPublicRelease ? VersionInfo . CurrentVersion . ReleaseLabels :
72
+ #pragma warning restore CS0436 // Type conflicts with imported type
67
73
VersionInfo . CurrentVersion . ReleaseLabels . Concat ( new string [ ] { "g" + VersionInfo . CurrentVersion . Metadata } ) , string . Empty ) ;
68
74
NuGetVersion available = VersionInfo . GetBestAvailableVersion ( new NuGetVersion [ ] { currentVersion } , true ) ;
69
75
Assert . IsNotNull ( available ) ;
0 commit comments