dotnet / dotnet/sdk

dotnet-watch MAUI test fails in main

Open
#45,741 0 comments 0 reactions 0 assignees View on GitHub
Area-Watch
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

The test project does not restore correctly:

[repro.zip](https://github.com/user-attachments/files/18325833/repro.zip)

```
(dogfood) PS C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F> dotnet run
Using launch settings from C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\Properties\launchSettings.json...
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(94,5): warning NETSDK1224: ASP.NET Core framework assets are not supported for the target framework.
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(94,5): warning NETSDK1224: ASP.NET Core framework assets are not supported for the target framework.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.AspNetCore.Components.WebView.Maui does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.Maui.Controls does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(94,5): warning NETSDK1224: ASP.NET Core framework assets are not supported for the target framework.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.AspNetCore.Components.WebView.Maui does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.Maui.Controls does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(94,5): warning NETSDK1224: ASP.NET Core framework assets are not supported for the target framework.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.AspNetCore.Components.WebView.Maui does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\maui-blazor.csproj : warning NU1604: Project dependency Microsoft.Maui.Controls does not contain an inclusive lower bound. Include a lower bound in the dependency version to ensure consistent restore results.
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(414,5): error NETSDK1073: The FrameworkReference 'Microsoft.MacCatalyst' was not recognized
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\Components\Routes.razor(1,1): warning RZ2012: Component 'Router' expects a value for the parameter 'NotFound', but a value may not have been provided.
C:\sdk4\artifacts\tmp\Debug\MauiBlazor_Ap---FEC76A4F\Components\Routes.razor(1,1): warning RZ2012: Component 'Router' expects a value for the parameter 'NotFound', but a value may not have been provided.
C:\Nuget\microsoft.windowsappsdk\1.3.230724000\include\MddBootstrapAutoInitializer.cs(34,38): warning CS0436: The type 'Release' in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs' conflicts with the imported type 'Release' in 'Microsoft.WindowsAppRuntime.Release.Net, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs'.
C:\Nuget\microsoft.windowsappsdk\1.3.230724000\include\MddBootstrapAutoInitializer.cs(35,33): warning CS0436: The type 'Release' in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs' conflicts with the imported type 'Release' in 'Microsoft.WindowsAppRuntime.Release.Net, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs'.
C:\Nuget\microsoft.windowsappsdk\1.3.230724000\include\MddBootstrapAutoInitializer.cs(36,49): warning CS0436: The type 'Version' in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs' conflicts with the imported type 'Version' in 'Microsoft.WindowsAppRuntime.Release.Net, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null'. Using the type defined in 'C:\Nuget\microsoft.windowsappsdk\1.3.230724000\buildTransitive\..\include\WindowsAppSDK-VersionInfo.cs'.
C:\sdk4\artifacts\bin\redist\Debug\dotnet\sdk\10.0.100-dev\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(320,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): win10-arm64, win10-x64, win10-x86. Affected libraries: Microsoft.Graphics.Win2D, Microsoft.WindowsAppSDK. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI277: 0x80073b0f - Conflicting values for resource 'Files/Microsoft.Maui.Controls/Platform/Windows/TabbedPage/TabbedPageStyle.xbf'
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.