Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'dotnet cake --target=VS' for the MAUI repo hangs on Windows #10450

Closed
ChristophSchmidpeter opened this issue Oct 2, 2022 · 5 comments
Closed
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@ChristophSchmidpeter
Copy link

Description

Following the MAUI Development Guide, the console hangs for the dotnet cake --target=VS step at
Setting environment variable: _ExcludeMauiProjectCapability = 'true'
(see log output below)

The Visual Studio window opens, but fails to build with NuGet reference errors.
Projects Graphics.Skia and Graphics.Skia.WPF are missing Microsoft.WindowsAppSDK 1.0.3
After adding missing NuGet References dozens of build errors in the form

Severity Code Description Project File Line Suppression State Error MSB4086 A numeric comparison was attempted on "$(TargetPlatformMinVersion)" that evaluates to "" instead of a number, in condition "'$(TargetPlatformMinVersion)' < '10.0.17200.0'". GraphicsTester.Skia.Console C:\Users\Win11\.nuget\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.Packaging.targets 159

occur for the various projects.

Steps to Reproduce

  1. Install :NET 6 SDK, SDK 20348
  2. cd $(MAUI_REPO)
  3. dotnet tool restore
  4. dotnet cake --target=VS

Link to public reproduction project repository

https://github.com/dotnet/maui

Version with bug

6.0.400

Last version that worked well

6.0.408

Affected platforms

Windows

Affected platform versions

Windows 11

Did you find any workaround?

No

Relevant log output

dotnet cake --target=VS
The assembly 'Cake.Android.SdkManager, Version=3.0.2.0, Culture=neutral, PublicKeyToken=null' 
is referencing an older version of Cake.Core (0.33.0). 
For best compatibility it should target Cake.Core version 1.0.0.
The assembly 'Cake.AppleSimulator, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null' 
is referencing an older version of Cake.Core (0.33.0). 
For best compatibility it should target Cake.Core version 1.0.0.
The assembly 'Cake.FileHelpers, Version=3.2.1.0, Culture=neutral, PublicKeyToken=null' 
is referencing an older version of Cake.Core (0.33.0). 
For best compatibility it should target Cake.Core version 1.0.0.
d:/Softdev/Clone/maui/eng/cake/dotnet.cake(293,14): warning CS8321: The local function 'Download' is declared but never used
d:/Softdev/Clone/maui/eng/cake/dotnet.cake(653,13): warning CS0618: 'DotNetCoreTestSettings.Logger' is obsolete: 'Please use Loggers instead.'

========================================
dotnet
========================================
MSBuild version 17.3.1+2badb37d1 for .NET
C:\Program Files\dotnet\sdk\6.0.401\MSBuild.dll --property:configuration=DEBUG -consoleloggerparameters:Summary -maxcpucount -restore -verbosity:m /binarylogger:d:/Softdev/Clone/maui/artifacts/logs/dotnet-DEBUG.binlog ./src/DotNet/DotNet.csproj
  Determining projects to restore...
  All projects are up-to-date for restore.

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:01.07

Workload updates are available. Run `dotnet workload list` for more information.

========================================
dotnet-buildtasks
========================================
Setting environment variable: DOTNET_INSTALL_DIR = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_ROOT = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_MULTILEVEL_LOOKUP = '0'
Setting environment variable: MSBuildEnableWorkloadResolver = 'true'
Setting environment variable: PATH = 'd:/Softdev/Clone/maui/bin/dotnet;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\Win11\AppData\Local\Microsoft\WindowsApps;C:\Users\Win11\.dotnet\tools'
MSBuild version 17.3.0+92e077650 for .NET
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\MSBuild.dll --property:configuration=DEBUG -consoleloggerparameters:Summary -maxcpucount /maxcpucount -restore -verbosity:m /binarylogger:d:/Softdev/Clone/maui/artifacts/logs/Microsoft.Maui.BuildTasks-DEBUG-Build-msbuild.binlog /target:Build ./Microsoft.Maui.BuildTasks.slnf
  Determining projects to restore...
  All projects are up-to-date for restore.
  Resizetizer -> d:\Softdev\Clone\maui\src\SingleProject\Resizetizer\src\bin\Debug\netstandard2.0\Microsoft.Maui.Resizetizer.dll
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\netstandard2.1\Microsoft.Maui.Graphics.dll
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Core\src\Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Core\src\Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Essentials\src\Essentials.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Essentials\src\Essentials.csproj]
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\netstandard2.0\Microsoft.Maui.Graphics.dll
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Core\Controls.Core.csproj]
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0\Microsoft.Maui.Graphics.dll
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Core\Controls.Core.csproj]
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0-ios\Microsoft.Maui.Graphics.dll
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.Graphics.dll
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0-maccatalyst\Microsoft.Maui.Graphics.dll
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.Graphics.dll
  Graphics -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics\bin\Debug\net6.0-android\Microsoft.Maui.Graphics.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\netstandard2.1\Microsoft.Maui.Essentials.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0-maccatalyst\Microsoft.Maui.Essentials.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\netstandard2.0\Microsoft.Maui.Essentials.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0-ios\Microsoft.Maui.Essentials.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.Essentials.dll
  Graphics.Win2D -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.Graphics.Win2D.WinUI.
  Desktop.dll
  Graphics.Win2D -> d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.Graphics.Win2D.WinUI.
  Desktop.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.Essentials.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0-maccatalyst\Microsoft.Maui.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\netstandard2.0\Microsoft.Maui.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0-android\Microsoft.Maui.Essentials.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.dll
  Essentials -> d:\Softdev\Clone\maui\src\Essentials\src\bin\Debug\net6.0\Microsoft.Maui.Essentials.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0-android\Microsoft.Maui.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0\Microsoft.Maui.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\netstandard2.1\Microsoft.Maui.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0-android\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0-android\Microsoft.Maui.Controls.Xaml.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\netstandard2.1\Microsoft.Maui.Controls.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\netstandard2.1\Microsoft.Maui.Controls.Xaml.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0\Microsoft.Maui.Controls.Xaml.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0-windows10.0.19041\Microsoft.Maui.Controls.Xaml.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\netstandard2.0\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\netstandard2.0\Microsoft.Maui.Controls.Xaml.dll
  Controls.SourceGen -> d:\Softdev\Clone\maui\src\Controls\src\SourceGen\bin\Debug\netstandard2.0\Microsoft.Maui.Controls.SourceGen.dll
  Core -> d:\Softdev\Clone\maui\src\Core\src\bin\Debug\net6.0-ios\Microsoft.Maui.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0-maccatalyst\Microsoft.Maui.Controls.dll
  Controls.Build.Tasks -> d:\Softdev\Clone\maui\src\Controls\src\Build.Tasks\bin\Debug\netstandard2.0\Microsoft.Maui.Controls.Build.Tasks.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0-maccatalyst\Microsoft.Maui.Controls.Xaml.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0-ios\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0-ios\Microsoft.Maui.Controls.Xaml.dll
  Controls.Core -> d:\Softdev\Clone\maui\src\Controls\src\Core\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.Controls.dll
  Controls.Xaml -> d:\Softdev\Clone\maui\src\Controls\src\Xaml\bin\Debug\net6.0-windows10.0.20348\Microsoft.Maui.Controls.Xaml.dll

Build succeeded.

d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Core\src\Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Core\src\Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Essentials\src\Essentials.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Essentials\src\Essentials.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Core\Controls.Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Core\Controls.Core.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Graphics\src\Graphics.Win2D\Graphics.Win2D.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
d:\Softdev\Clone\maui\bin\dotnet\sdk\6.0.402\Microsoft.Common.CurrentVersion.targets(43,3): warning MSB4011: "C:\Users\Win11\.nuget\packages\micr 
osoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.Build.Msix.props" cannot be imported again. It was already imported at "C:\Users\Win11\.nuget 
\packages\microsoft.windowsappsdk\1.1.4\buildTransitive\Microsoft.WinUI.props (25,3)". This is most likely a build authoring error. This subseque 
nt import will be ignored. [d:\Softdev\Clone\maui\src\Controls\src\Xaml\Controls.Xaml.csproj]
    10 Warning(s)
    0 Error(s)

Time Elapsed 00:00:49.71

Workload updates are available. Run `dotnet workload list` for more information.

========================================
VS
========================================
Setting environment variable: DOTNET_INSTALL_DIR = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_ROOT = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR = 'd:/Softdev/Clone/maui/bin/dotnet'
Setting environment variable: DOTNET_MULTILEVEL_LOOKUP = '0'
Setting environment variable: MSBuildEnableWorkloadResolver = 'true'
Setting environment variable: PATH = 'd:/Softdev/Clone/maui/bin/dotnet;d:/Softdev/Clone/maui/bin/dotnet;C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\bin;C:\Program Files\Microsoft\jdk-11.0.12.7-hotspot\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\dotnet\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Users\Win11\AppData\Local\Microsoft\WindowsApps;C:\Users\Win11\.dotnet\tools'
Setting environment variable: _ExcludeMauiProjectCapability = 'true'
@ChristophSchmidpeter ChristophSchmidpeter added the t/bug Something isn't working label Oct 2, 2022
@ChristophSchmidpeter ChristophSchmidpeter changed the title 'dotnet cake --target=VS' for MAUI repo fails on Windows 'dotnet cake --target=VS' for MAUI hangs on Windows Oct 2, 2022
@ChristophSchmidpeter ChristophSchmidpeter changed the title 'dotnet cake --target=VS' for MAUI hangs on Windows 'dotnet cake --target=VS' for the MAUI repo hangs on Windows Oct 2, 2022
@jsuarezruiz jsuarezruiz added the area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging label Oct 3, 2022
@jfversluis
Copy link
Member

jfversluis commented Oct 3, 2022

What happens if you do dotnet cake --target=VS --pack? Maybe @PureWeen has any ideas?

@jfversluis jfversluis added the s/needs-info Issue needs more info from the author label Oct 3, 2022
@ghost
Copy link

ghost commented Oct 3, 2022

Hi @ChristophSchmidpeter. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@ghost ghost added the s/no-recent-activity Issue has had no recent activity label Oct 7, 2022
@ghost
Copy link

ghost commented Oct 7, 2022

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

@ghost ghost closed this as completed Oct 10, 2022
@espenrl
Copy link
Contributor

espenrl commented Oct 22, 2022

I had the same problem on Windows for .NET 7 RC2. Visual Studio would start, but then hang indefinitely. That was using dotnet cake --target=VS. Using dotnet cake --target=VS --pack solved my problem. But I do not understand what pack actually does.

@ghost
Copy link

ghost commented Oct 22, 2022

Hello lovely human, thank you for your comment on this issue. Because this issue has been closed for a period of time, please strongly consider opening a new issue linking to this issue instead to ensure better visibility of your comment. Thank you!

@ghost ghost removed the s/no-recent-activity Issue has had no recent activity label Oct 22, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging platform/windows 🪟 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants