140 references to ChangeWaves
Microsoft.Build (35)
BackEnd\Components\Caching\ResultsCache.cs (2)
175
bool buildDataFlagsSatisfied =
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12)
BackEnd\Components\Logging\LoggingService.cs (2)
579
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12))
BackEnd\Components\SdkResolution\SdkResolverService.cs (6)
65
protected SdkResolverLoader _sdkResolverLoader =
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10)
140
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
483
if (!
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (6)
1303
bool legacyBehavior = !
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12);
1479
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12))
1566
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12))
Construction\Solution\SolutionFile.cs (4)
196
internal static bool ShouldUseNewParser(string solutionFile) =>
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14) || FileUtilities.IsSolutionXFilename(solutionFile);
224
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14) && string.IsNullOrEmpty(value))
Evaluation\Evaluator.cs (6)
1108
ChangeWaves
.ApplyChangeWave();
1110
switch (
ChangeWaves
.ConversionState)
1113
_evaluationLoggingContext.LogWarning("", new BuildEventFileInfo(""), "ChangeWave_InvalidFormat", Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{String.Join(", ",
ChangeWaves
.AllWaves.Select(x => x.ToString()))}]");
1116
_evaluationLoggingContext.LogWarning("", new BuildEventFileInfo(""), "ChangeWave_OutOfRotation",
ChangeWaves
.DisabledWave, Traits.Instance.MSBuildDisableFeaturesFromVersion, $"[{String.Join(", ",
ChangeWaves
.AllWaves.Select(x => x.ToString()))}]");
1143
SetBuiltInProperty(ReservedPropertyNames.msbuilddisablefeaturesfromversion,
ChangeWaves
.DisabledWave.ToString());
Evaluation\Expander.cs (4)
1527
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12))
4295
returnVal =
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10)
Evaluation\IntrinsicFunctions.cs (1)
625
return
ChangeWaves
.AreFeaturesEnabled(wave);
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (2)
323
(_settings == 0 &&
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10)))
Logging\BinaryLogger\BinaryLogger.cs (2)
483
bool isWildcard =
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12) && parameter.Contains("{}");
Microsoft.Build.CommandLine.UnitTests (3)
XMake_Tests.cs (3)
534
ChangeWaves
.ResetStateForTests();
578
ChangeWaves
.ResetStateForTests();
579
env.SetEnvironmentVariable("MSBUILDDISABLEFEATURESFROMVERSION",
ChangeWaves
.Wave17_10.ToString());
Microsoft.Build.Engine.OM.UnitTests (4)
Construction\ProjectTargetElement_Tests.cs (1)
348
ChangeWaves
.ResetStateForTests();
Definition\ProjectItem_Tests.cs (3)
791
ChangeWaves
.ResetStateForTests();
848
ChangeWaves
.ResetStateForTests();
976
ChangeWaves
.ResetStateForTests();
Microsoft.Build.Engine.UnitTests (55)
ChangeWaves_Tests.cs (36)
33
ChangeWaves
.ResetStateForTests();
48
bool isThisWaveEnabled = versionToCheckAgainstCurrentChangeWave < currentChangeWaveShouldUltimatelyResolveTo || currentChangeWaveShouldUltimatelyResolveTo ==
ChangeWaves
.EnableAllFeatures;
50
ChangeWaves
.AreFeaturesEnabled(versionToCheckAgainstCurrentChangeWave).ShouldBe(isThisWaveEnabled);
76
ChangeWaves
.ResetStateForTests();
84
SetChangeWave(
ChangeWaves
.EnableAllFeatures.ToString(), env);
86
for (int i = 0; i <
ChangeWaves
.AllWaves.Length - 1; i++)
89
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[i],
90
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.EnableAllFeatures,
108
ChangeWaves
.AreFeaturesEnabled(featureAsVersion).ShouldBe(true);
112
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.EnableAllFeatures,
129
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.HighestWave,
130
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.EnableAllFeatures,
146
for (int i = 0; i <
ChangeWaves
.AllWaves.Length; i++)
149
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[i],
150
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.LowestWave,
166
for (int i = 0; i <
ChangeWaves
.AllWaves.Length - 1; i++)
169
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[i],
170
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.HighestWave,
176
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[
ChangeWaves
.AllWaves.Length - 1],
177
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.HighestWave,
187
SetChangeWave($"{
ChangeWaves
.LowestWave.Major}.{
ChangeWaves
.LowestWave.Minor}.{
ChangeWaves
.LowestWave.Build + 1}", env);
190
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.LowestWave,
191
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.AllWaves[1],
201
SetChangeWave(
ChangeWaves
.HighestWave.ToString(), env);
203
for (int i = 0; i <
ChangeWaves
.AllWaves.Length - 1; i++)
206
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[i],
207
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.HighestWave,
213
versionToCheckAgainstCurrentChangeWave:
ChangeWaves
.AllWaves[
ChangeWaves
.AllWaves.Length - 1],
214
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.HighestWave,
224
SetChangeWave(
ChangeWaves
.LowestWave.ToString(), env);
226
foreach (Version wave in
ChangeWaves
.AllWaves)
230
currentChangeWaveShouldUltimatelyResolveTo:
ChangeWaves
.LowestWave,
Evaluation\Expander_Tests.cs (1)
5023
env.SetEnvironmentVariable("MSBUILDDISABLEFEATURESFROMVERSION",
ChangeWaves
.Wave17_12.ToString());
Evaluation\IntrinsicFunctionOverload_Tests.cs (16)
35
ChangeWaves
.ResetStateForTests();
57
ChangeWaves
.ResetStateForTests();
79
ChangeWaves
.ResetStateForTests();
101
ChangeWaves
.ResetStateForTests();
143
ChangeWaves
.ResetStateForTests();
165
ChangeWaves
.ResetStateForTests();
187
ChangeWaves
.ResetStateForTests();
229
ChangeWaves
.ResetStateForTests();
251
ChangeWaves
.ResetStateForTests();
273
ChangeWaves
.ResetStateForTests();
315
ChangeWaves
.ResetStateForTests();
337
ChangeWaves
.ResetStateForTests();
359
ChangeWaves
.ResetStateForTests();
401
ChangeWaves
.ResetStateForTests();
423
ChangeWaves
.ResetStateForTests();
445
ChangeWaves
.ResetStateForTests();
FileMatcher_Tests.cs (2)
1376
ChangeWaves
.ResetStateForTests();
1415
ChangeWaves
.ResetStateForTests();
Microsoft.Build.Framework (16)
BinaryTranslator.cs (2)
1202
if (!TranslateNullable(value) || !
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
ChangeWaves.cs (2)
134
_cachedWave =
ChangeWaves
.EnableAllFeatures;
139
_cachedWave =
ChangeWaves
.EnableAllFeatures;
ProjectStartedEventArgs.cs (6)
254
return globalProperties ?? (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12)
305
return properties ?? (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12)
331
return items ?? (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_12)
Traits.cs (6)
140
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
410
return
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10);
422
return
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10);
Microsoft.Build.Tasks.Core (12)
AssemblyDependency\ReferenceTable.cs (2)
975
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14) || CultureInfoCache.IsValidCultureString(cultureName))
AssignCulture.cs (2)
163
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14) &&
CreateCSharpManifestResourceName.cs (2)
106
if (!string.IsNullOrEmpty(culture) &&
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14))
CreateVisualBasicManifestResourceName.cs (2)
105
if (!string.IsNullOrEmpty(culture) &&
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_14))
Exec.cs (4)
393
string trimmedTextLine =
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10) ?
577
bool setLocale = !
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10);
Microsoft.Build.Tasks.UnitTests (4)
CreateItem_Tests.cs (2)
316
ChangeWaves
.ResetStateForTests();
368
ChangeWaves
.ResetStateForTests();
Exec_Tests.cs (2)
85
ChangeWaves
.ResetStateForTests();
87
env.SetEnvironmentVariable("MSBUILDDISABLEFEATURESFROMVERSION",
ChangeWaves
.Wave17_10.ToString());
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (2)
1473
ChangeWaves
.ResetStateForTests();
1511
ChangeWaves
.ResetStateForTests();
TestEnvironment.cs (1)
103
ChangeWaves
.ResetStateForTests();
Microsoft.Build.Utilities.Core (6)
ToolTask.cs (6)
241
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
265
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
1453
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))
MSBuild (2)
XMake.cs (2)
4619
if (
ChangeWaves
.AreFeaturesEnabled(
ChangeWaves
.Wave17_10))