microsoft-ui-xaml
microsoft-ui-xaml copied to clipboard
[x64] [WinUI]Unpackaged exception in x64 Solution Platforms build
Describe the bug
Unpackaged exception in x64 Solution Platforms build
Steps to reproduce the bug
Environment: Affected Branch: d17.4 Affected Build: 32908.99 Affected Product Language: ENU
1.Create a new app using the "Blank App, Packaged(WinUI 3 in Desktop)" C++ project template 2.Add this property to the project file: <WindowsPackageType>None</WindowsPackageType> 3.Change 'AppxPackage' property to false:<AppxPackage>false</AppxPackage> 4. In https://docs.microsoft.com/en-us/windows/apps/windows-app-sdk/downloads downloads downloads Windows App SDK 1.1-> Version-> 1.1.4-> Runtime downloads-> Installer(x64) and Installer(x86) 5. Select Solution Platforms is x64 6. Build and run
Expected behavior
No Exception
Screenshots
No response
NuGet package version
No response
Windows app type
- [ ] UWP
- [ ] Win32
Device form factor
No response
Windows version
No response
Additional context
No response
This is the exception that occurs after F5 starts.
On d17.4-33006.217 F5 starts the interface appears, but then the error appears.
Error MSB6003 The specified task executable "MakePri.exe" could not be run. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Utilities.Internal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.File name: 'Microsoft.VisualStudio.Utilities.Internal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings) at Microsoft.VisualStudio.Telemetry.TelemetryService.get_DefaultSession() at Microsoft.Build.Msix.Telemetry.CreateTelemetrySession(String vsTelemetrySession) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func
2 valueFactory) at Microsoft.Build.Msix.TelemetryOperation..ctor(String vsTelemetrySession, String eventNameSuffix) at Microsoft.Build.Msix.Pri.WinAppSdkGenerateProjectPriFile.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) at Microsoft.Build.Utilities.ToolTask.Execute()WRN: Assembly binding logging is turned OFF.To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is some performance penalty associated with assembly bind failure logging.To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
@XamlTest thanks for reporting this. There have been a number of fixes in unpackaged support - does this problem still exist for you in WinAppSDK 1.4+?
@Scottj1s Tried again on VS 17.9 Preview 3 with WinAppSDK 1.4.230913002, all works well without any errors.