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
Windows build legs for the unified build pipeline fail when executing the VerifyWPFTemplate test. It gets the following error:
[FAIL] Microsoft.DotNet.ScenarioTests.SdkTemplateTests.SdkTemplateTests.VerifyWPFTemplate(language: CSharp)
System.InvalidOperationException : Failed to execute D:\a\_work\1\s\artifacts\obj\extracted-dotnet-sdk\dotnet.exe publish /bl:D:\a\_work\1\s\artifacts\scenario-tests\artifacts/SdkTemplateTest_Wpf_CSharp\publish.binlog
Exit code: 1
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file. [D:\a\_work\1\s\src\scenario-tests\src\Microsoft.DotNet.ScenarioTests.SdkTemplateTests\Microsoft.DotNet.ScenarioTests.SdkTemplateTests.csproj] [D:\a\_work\1\s\repo-projects\scenario-tests.proj]
This happens because there are two csproj files in the working directory:
Interestingly, if both the VB and C# tests are enabled, the C# test fails with this error but the VB test succeeds. But if you disable the C# test, the VB one fails with the same error.
@mthalmanas we have a patch in the VMR for this, were you planning to submit a PR into scenario-tests to get rid of the patch? Or do you want to keep the patch around until this is investigated further?
Windows build legs for the unified build pipeline fail when executing the
VerifyWPFTemplate
test. It gets the following error:This happens because there are two csproj files in the working directory:
The commands the test executes are the following:
The wpftmp project shows up after the
dotnet run
call. That causesdotnet publish
to fail because there is more than one project file in the working directory. The wpftmp project is supposed to be deleted but isn't for some reason. See related wpf logic: https://github.com/dotnet/wpf/blob/699fecfdccce0c5cd42277c935434256f9de61e9/src/Microsoft.DotNet.Wpf/src/PresentationBuildTasks/Microsoft/Build/Tasks/Windows/GenerateTemporaryTargetAssembly.cs#L159-L205Test log:
TestResults_16350246.zip
These tests have been disabled with a patch: https://github.com/dotnet/sdk/blob/main/src/SourceBuild/patches/scenario-tests/0002-Disable-WPF-scenario-test.patch. This patch needs to be deleted as part of the work of resolving this.
The text was updated successfully, but these errors were encountered: