21 references to Project
Microsoft.Build.CommandLine.UnitTests (14)
CommandLineSwitches_Tests.cs (14)
264
Assert.Equal(CommandLineSwitches.ParameterizedSwitch.
Project
, parameterizedSwitch);
1016
switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Project
, "tempproject.proj", "tempproject.proj", false, true, false);
1018
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1025
Assert.False(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1030
Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Project
));
1031
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1033
string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.
Project
];
1121
switchesLeft.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Project
, "tempproject.proj", "tempproject.proj", false, true, false);
1123
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1127
switchesRight.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.
Project
, "Rhubarb.proj", "Rhubarb.proj", false, true, false);
1129
Assert.True(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1133
Assert.Equal("tempproject.proj", switchesLeft.GetParameterizedSwitchCommandLineArg(CommandLineSwitches.ParameterizedSwitch.
Project
));
1134
Assert.True(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.
Project
));
1136
string[] parameters = switchesLeft[CommandLineSwitches.ParameterizedSwitch.
Project
];
MSBuild (7)
CommandLineSwitches.cs (3)
244
new ParameterizedSwitchInfo( [null], ParameterizedSwitch.
Project
, "DuplicateProjectSwitchError", false, null, true, false, null),
469
if (s_parameterizedSwitchesMap[i].parameterizedSwitch is not ParameterizedSwitch.
Project
and
594
if (IsParameterizedSwitchSet((ParameterizedSwitch)i) && ((ParameterizedSwitch)i != ParameterizedSwitch.
Project
))
XMake.cs (4)
325
string projectFile = ProcessProjectSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.
Project
], commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles);
2361
if (parameterizedSwitch == CommandLineSwitches.ParameterizedSwitch.
Project
&& IsEnvironmentVariable(switchParameters))
2656
projectFile = ProcessProjectSwitch(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.
Project
], commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.IgnoreProjectExtensions], Directory.GetFiles);
3057
var projectDirectory = GetProjectDirectory(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.
Project
]);