-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Related: #51935
Related: #51934
Summary
This test was failing in the release/10.0.1xx and main branch for:
- FullFramework: windows (x64)
- TestBuild: windows (x64)
Error Log
[xUnit.net 00:00:16.42] Microsoft.NET.Build.Tests.GivenThatWeWantToBuildAWindowsRuntimeComponent.ManagedWinRTComponentCanBeReferenced [FAIL]
[xUnit.net 00:00:16.42] Expected value to be 0 because Expected command to pass but it did not.
[xUnit.net 00:00:16.42] Working Directory:
[xUnit.net 00:00:16.42] File Name: C:\h\w\A5D1090F\p\d\dotnet.exe
[xUnit.net 00:00:16.42] Arguments: msbuild /t:Build C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj /restore
[xUnit.net 00:00:16.42] Exit Code: 1
[xUnit.net 00:00:16.42] StdOut:
[xUnit.net 00:00:16.42] MSBuild version 18.0.6+5ddd0ddc0 for .NET
[xUnit.net 00:00:16.42] Determining projects to restore...
[xUnit.net 00:00:16.42] Restored C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj (in 3.71 sec).
Running C:\h\w\A5D1090F\p\d\dotnet.exe msbuild /t:Build C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\It_fails_when---0E5A998A\WinMDClasslibrary\WinMDClasslibrary.csproj /restore
[xUnit.net 00:00:16.42] Restored C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj (in 3.71 sec).
[xUnit.net 00:00:16.42] C:\h\w\A5D1090F\p\d\sdk\10.0.102-ci\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(351,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj]
[xUnit.net 00:00:16.42] EXEC : error : Could not read the Windows SDK's Platform.xml at C:\Program Files (x86)\Windows Kits\10\Platforms\UAP\10.0.19041.0\Platform.xml [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj]
[xUnit.net 00:00:16.42] C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\.nuget\packages\microsoft.windows.cswinrt\2.1.1\build\Microsoft.Windows.CsWinRT.targets(290,5): error MSB3073: The command ""C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\.nuget\packages\microsoft.windows.cswinrt\2.1.1\cswinrt.exe" @"C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\obj\Debug\net10.0-windows10.0.19041.0\Generated Files\CsWinRT\cswinrt.rsp"" exited with code 1. [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj]
[xUnit.net 00:00:16.42] StdErr:
[xUnit.net 00:00:16.42]
[xUnit.net 00:00:16.42] , but found 1 (difference of 1).
[xUnit.net 00:00:16.42] Stack Trace:
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.AssertionScope.AddPreFormattedFailure(String formattedFailureMessage)
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
[xUnit.net 00:00:16.43] at FluentAssertions.Execution.AssertionChain.FailWith(String message, Object[] args)
[xUnit.net 00:00:16.43] at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
[xUnit.net 00:00:16.43] /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs(27,0): at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.Pass()
[xUnit.net 00:00:16.43] /_/test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildAWindowsRuntimeComponent.cs(186,0): at Microsoft.NET.Build.Tests.GivenThatWeWantToBuildAWindowsRuntimeComponent.ManagedWinRTComponentCanBeReferenced()
[xUnit.net 00:00:16.43] at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
[xUnit.net 00:00:16.43] at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[xUnit.net 00:00:16.43] at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:16.43] Output:
[xUnit.net 00:00:16.43] Executing 'dotnet msbuild /t:Build C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj /restore':
[xUnit.net 00:00:16.43] 》MSBuild version 18.0.6+5ddd0ddc0 for .NET
[xUnit.net 00:00:16.43] 》 Determining projects to restore...
[xUnit.net 00:00:16.43] 》 Restored C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj (in 3.71 sec).
[xUnit.net 00:00:16.43] 》 Restored C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj (in 3.71 sec).
[xUnit.net 00:00:16.43] 》C:\h\w\A5D1090F\p\d\sdk\10.0.102-ci\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(351,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj]
[xUnit.net 00:00:16.43] 》EXEC : error : Could not read the Windows SDK's Platform.xml at C:\Program Files (x86)\Windows Kits\10\Platforms\UAP\10.0.19041.0\Platform.xml [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj]
[xUnit.net 00:00:16.43] 》C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\.nuget\packages\microsoft.windows.cswinrt\2.1.1\build\Microsoft.Windows.CsWinRT.targets(290,5): error MSB3073: The command ""C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\.nuget\packages\microsoft.windows.cswinrt\2.1.1\cswinrt.exe" @"C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\obj\Debug\net10.0-windows10.0.19041.0\Generated Files\CsWinRT\cswinrt.rsp"" exited with code 1. [C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ManagedWinRTComponent\ManagedWinRTComponent.csproj]
[xUnit.net 00:00:16.43] Command 'dotnet msbuild /t:Build C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj /restore' exited with exit code 1.
Failed Microsoft.NET.Build.Tests.GivenThatWeWantToBuildAWindowsRuntimeComponent.ManagedWinRTComponentCanBeReferenced [6 s]
Error Message:
Expected value to be 0 because Expected command to pass but it did not.
Working Directory:
File Name: C:\h\w\A5D1090F\p\d\dotnet.exe
Arguments: msbuild /t:Build C:\h\w\A5D1090F\t\dotnetSdkTests\ltosyl1k.kit\ManagedWinRTC---79256FB9\ConsoleApp\ConsoleApp.csproj /restore
Exit Code: 1