Open
Description
openedon Oct 22, 2024
Description
On the PR moving to GA we found some issues with this tests and the Windows analysers
We skipped the test for now, but should investigate to enable it again. Seems that CsWinRTAotOptimizerEnabled
could help skip this issue.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.1xx
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
Creating project in D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More
Running: 'D:\a\_work\1\s\.dotnet\dotnet' with 'new'
Args list: maui-blazor-web -o "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More" -f net9.0
[ToolRunner] Running: D:\a\_work\1\s\.dotnet\dotnet new maui-blazor-web -o "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More" -f net9.0
[ToolRunner] Process 'dotnet' exited with code: 0
The template ".NET MAUI Blazor Hybrid and Web App" was created successfully.
Solution directory: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More (exists? True)
Blazor Web app project directory: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web (exists? True)
Blazor Web app project file: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\BuildMauiBlazor1056695246&More.Web.csproj (exists? True)
MAUI app project directory: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More (exists? True)
MAUI app project file: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj (exists? True)
Building Blazor Web app: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\BuildMauiBlazor1056695246&More.Web.csproj
Running: 'D:\a\_work\1\s\.dotnet\dotnet' with 'build'
Args list: "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\BuildMauiBlazor1056695246&More.Web.csproj" -c Debug -p:RestoreNoCache=true -p:RestorePackagesPath=D:\a\_work\_temp\test-dir\packages -p:RestoreConfigFile=D:\a\_work\_temp\test-dir\NuGet.config -p:CustomBeforeMicrosoftCSharpTargets=D:\a\_work\1\s\src\Templates\TemplateTestExtraTargets.targets -p:DisableTransitiveFrameworkReferenceDownloads=true -p:TreatWarningsAsErrors=true -bl:"D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\build-133740748368758597.binlog" -warnaserror -p:nowarn="NETSDK1201%3BCS1591"
[ToolRunner] Running: D:\a\_work\1\s\.dotnet\dotnet build "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\BuildMauiBlazor1056695246&More.Web.csproj" -c Debug -p:RestoreNoCache=true -p:RestorePackagesPath=D:\a\_work\_temp\test-dir\packages -p:RestoreConfigFile=D:\a\_work\_temp\test-dir\NuGet.config -p:CustomBeforeMicrosoftCSharpTargets=D:\a\_work\1\s\src\Templates\TemplateTestExtraTargets.targets -p:DisableTransitiveFrameworkReferenceDownloads=true -p:TreatWarningsAsErrors=true -bl:"D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\build-133740748368758597.binlog" -warnaserror -p:nowarn="NETSDK1201%3BCS1591"
[ToolRunner] Process 'dotnet' exited with code: 0
Process exit code: 0
-------- Process output start --------
Determining projects to restore...
Restored D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\BuildMauiBlazor1056695246&More.Web.csproj (in 2.3 sec).
Restored D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Shared\BuildMauiBlazor1056695246&More.Shared.csproj (in 2.3 sec).
BuildMauiBlazor1056695246&More.Shared -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Shared\bin\Debug\net9.0\BuildMauiBlazor1056695246&More.Shared.dll
BuildMauiBlazor1056695246&More.Web -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Web\bin\Debug\net9.0\BuildMauiBlazor1056695246&More.Web.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:04.51
-------- Process output end --------
Building .NET MAUI app: D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj
Running: 'D:\a\_work\1\s\.dotnet\dotnet' with 'build'
Args list: "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj" -c Debug -p:RestoreNoCache=true -p:RestorePackagesPath=D:\a\_work\_temp\test-dir\packages -p:RestoreConfigFile=D:\a\_work\_temp\test-dir\NuGet.config -p:CustomBeforeMicrosoftCSharpTargets=D:\a\_work\1\s\src\Templates\TemplateTestExtraTargets.targets -p:DisableTransitiveFrameworkReferenceDownloads=true -p:TreatWarningsAsErrors=true -bl:"D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\build-133740748417352777.binlog" -warnaserror -p:nowarn="NETSDK1201%3BCS1591"
[ToolRunner] Running: D:\a\_work\1\s\.dotnet\dotnet build "D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj" -c Debug -p:RestoreNoCache=true -p:RestorePackagesPath=D:\a\_work\_temp\test-dir\packages -p:RestoreConfigFile=D:\a\_work\_temp\test-dir\NuGet.config -p:CustomBeforeMicrosoftCSharpTargets=D:\a\_work\1\s\src\Templates\TemplateTestExtraTargets.targets -p:DisableTransitiveFrameworkReferenceDownloads=true -p:TreatWarningsAsErrors=true -bl:"D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\build-133740748417352777.binlog" -warnaserror -p:nowarn="NETSDK1201%3BCS1591"
[ToolRunner] Process 'dotnet' exited with code: 1
Process exit code: 1
-------- Process output start --------
Determining projects to restore...
Restored D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Shared\BuildMauiBlazor1056695246&More.Shared.csproj (in 244 ms).
Restored D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj (in 933 ms).
BuildMauiBlazor1056695246&More.Shared -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Shared\bin\Debug\net9.0\BuildMauiBlazor1056695246&More.Shared.dll
BuildMauiBlazor1056695246&More -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\bin\Debug\net9.0-maccatalyst\maccatalyst-x64\BuildMauiBlazor1056695246&More.dll
BuildMauiBlazor1056695246&More -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\bin\Debug\net9.0-ios\iossimulator-x64\BuildMauiBlazor1056695246&More.dll
BuildMauiBlazor1056695246&More -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\bin\Debug\net9.0-tizen\tizen-x86\BuildMauiBlazor1056695246&More.dll
Configuration :
Platform :
TargetFramework :
BuildMauiBlazor1056695246&More is signed with Default Certificates!
BuildMauiBlazor1056695246&More -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\bin\Debug\net9.0-tizen\tizen-x86\com.companyname.buildmauiblazor1056695246more-1.0.0.tpk
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.App.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.App.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.WinUI.App.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.WinUI.App.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.MainPage.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.MainPage.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
BuildMauiBlazor1056695246&More -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\bin\Debug\net9.0-android\BuildMauiBlazor1056695246&More.dll
BuildMauiBlazor1056695246&More.Shared -> D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.Shared\bin\Debug\net9.0\BuildMauiBlazor1056695246&More.Shared.dll
Build FAILED.
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.App.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.App.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.WinUI.App.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.WinUI.App.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.MainPage.WinRTVtable.g.cs(4,40): error CS0118: 'global::WinRT.BuildMauiBlazor1056695246' is a namespace but is used like a type [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\obj\Debug\net9.0-windows10.0.19041.0\win10-x64\intermediatexaml\WinRT.SourceGenerator\Generator.WinRTAotSourceGenerator\BuildMauiBlazor1056695246_More.MainPage.WinRTVtable.g.cs(4,80): error CS0103: The name 'MoreVtableClasses' does not exist in the current context [D:\a\_work\_temp\test-dir\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More\BuildMauiBlazor1056695246&More.csproj::TargetFramework=net9.0-windows10.0.19041.0]
0 Warning(s)
6 Error(s)
Time Elapsed 00:00:49.91
-------- Process output end --------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
Todo