You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
[tests] We must set 'UseFloatingTargetPlatformVersion=true' for our test projects, to avoid building them with other workloads than the current workload. (#24281)
Also the ComputeRemoteGeneratorProperties task needs to know the value ofUseFloatingTargetPlatformVersion, so that it can be passed on when executing`dotnet` to compute binding variables, because otherwise we might end up withvariables from the wrong workload.---------Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
<!-- We must set 'UseFloatingTargetPlatformVersion=true' for our test projects, to avoid building them with other workloads than the current workload.-->
properties.Remove("UseFloatingTargetPlatformVersion");// This test verifies that we use the correct workload to build library projects, so we can't use a floating TPF version.
varexpectedError=$"The Xcode project item: '{invalidXcodeProjPath}' could not be found. Please update the 'Include' value to a path containing a valid '.xcodeproj' file.";
361
365
AssertErrorMessages(errors,expectedError);
@@ -382,7 +386,8 @@ public void InvalidSchemeErroriOS ()
382
386
{"SchemeName",invaldSchemeName},
383
387
});
384
388
385
-
varrv=DotNet.AssertBuildFailure(proj);
389
+
varproperties=GetDefaultProperties();
390
+
varrv=DotNet.AssertBuildFailure(proj,properties);
386
391
varexpectedErrorContent=$"xcodebuild: error: The project named\"{xcodeProjName}\" does not contain a scheme named\"{invaldSchemeName}\".";