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

VS 2022 ARM : Project deployment issue at RUN #17267

Closed
baskren opened this issue Jun 21, 2024 · 5 comments
Closed

VS 2022 ARM : Project deployment issue at RUN #17267

baskren opened this issue Jun 21, 2024 · 5 comments
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification

Comments

@baskren
Copy link
Contributor

baskren commented Jun 21, 2024

Current behavior

Context:

  • Windows 11 for ARM via Parallels on M2 MacBookPro
  • VisualStudio 2022 for ARM Version 17.10.3
  • Uno.Check version 1.24.0
  • Uno Platform Template Wizard 5.2.51.0

Steps:

  • Open VisualStudio
  • Select [File / New / Project ...] menu items
  • Create new Uno Platform App
  • Select defaults
  • Complete project creation
  • Build project (success)
  • Run project (WinAppSdk Packaged)
image
  • Select [Build / Configuration Manager ...] menu items
image

Expected behavior

App deploys for debugging

How to reproduce it (as minimally and precisely as possible)

See Current Behavior

Workaround

Not found, yet

Works on UWP/WinUI

No

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

"Uno.Sdk": "5.2.161"

Affected platforms

Windows (WinAppSDK)

IDE

Visual Studio 2022

IDE version

VisualStudio 2022 for ARM Version 17.10.3

Relevant plugins

VisualStudio 2022 configuration

Microsoft Visual Studio Community 2022
Version 17.10.3
VisualStudio.17.Release/17.10.3+35013.160
Microsoft .NET Framework
Version 4.8.09032

Installed Version: Community

Visual C++ 2022 00482-90000-00000-AA155
Microsoft Visual C++ 2022

ASP.NET and Web Tools 17.10.341.11210
ASP.NET and Web Tools

Azure App Service Tools v3.0.0 17.10.341.11210
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools 17.10.341.11210
Azure Functions and Web Jobs Tools

C# Tools 4.10.0-3.24312.19+771f269b3abcbbd991f05becf8fe5e991d24b0c1
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CleanBinAndObjCommand Extension 1.2.58
CleanBinAndObjCommand Visual Studio Extension Detailed Info

Extensibility Message Bus 1.4.39 (main@e8108eb)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

GitHub Copilot 0.2.889.30432
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

NuGet Package Manager 6.10.1
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Razor (ASP.NET Core) 17.10.3.2427201+4f57d1de251e654812adde201c0265a8ca7ca31d
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 17.10.172.0
Microsoft SQL Server Data Tools

TypeScript Tools 17.0.30327.2001
TypeScript Tools for Microsoft Visual Studio

Uno Platform Extension 1.0
Uno Platform Extension to create cross-platform apps using iOS, Android, mac Catalyst, Skia and WebAssembly.

Visual Basic Tools 4.10.0-3.24312.19+771f269b3abcbbd991f05becf8fe5e991d24b0c1
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 17.10.0-beta.24228.1+dd749058c91585e9b5dae62b0f8df892429ee28f
Microsoft Visual F# Tools

Visual Studio IntelliCode 2.2
AI-assisted development for Visual Studio.

VisualStudio.DeviceLog 1.0
Information about my package

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

VSPackage Extension 1.0
VSPackage Visual Studio Extension Detailed Info

Xamarin 17.10.0.110 (main@cf2e960)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 17.10.3.10 (remotes/origin/d17-10@3beef58f89)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin.Android SDK 13.2.2.0 (d17-5/45b0e14)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: d9a6e87
Java.Interop: xamarin/java.interop/d17-5@149d70fe
SQLite: xamarin/sqlite@68c69d8
Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-5@ca1552d

Xamarin.iOS and Xamarin.Mac SDK 16.4.0.23 (9defd91b3)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Anything else we need to know?

No response

@baskren baskren added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Jun 21, 2024
@jeromelaban
Copy link
Member

Thanks for the report. You're likely having a separate issue. Could you show the contents of the output window after the build has finished?

@baskren
Copy link
Contributor Author

baskren commented Jun 21, 2024

VisualStudio 2022 build image
Rebuild started at 3:01 PM...
1>------ Rebuild All started: Project: LuaTest2, Configuration: Debug Any CPU ------
Restored C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj (in 2.55 sec).
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-maccatalyst\maccatalyst-arm64\LuaTest2.dll
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-ios\iossimulator-arm64\LuaTest2.dll
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-android\LuaTest2.dll
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-desktop\LuaTest2.dll
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-browserwasm\LuaTest2.dll
1>LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-windows10.0.19041\LuaTest2.dll
1>obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.extensions.jar
1>obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-library at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.sidecar.jar
1>Done building project "LuaTest2.csproj".
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
========== Rebuild completed at 3:02 PM and took 54.582 seconds ==========
When [Debug] button is pressed: image
Creating a new clean layout...
Copying files: Total 95 mb to layout...
Registering the application to run from layout...
DEP0700: Registration of the app failed. [0x80070005] Deployment Register operation with target volume C: on Package LuaTest2_1.0.0.0_arm64__s9taf37906zmc from:  (AppxManifest.xml)  failed with error 0x80070005. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
========== Deploy completed at 3:04 PM and took 01.447 seconds ==========

@baskren
Copy link
Contributor Author

baskren commented Jun 21, 2024

FWIW:

Build from command line:
C:\Users\ben\Development\Lua\LuaTest2>dotnet build
  Determining projects to restore...
  All projects are up-to-date for restore.
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-desktop]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-maccatalyst]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-ios]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-browserwasm]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-windows10.0.19041]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-android]
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-windows10.0.19041\LuaTest2.dll
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-desktop\LuaTest2.dll
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-android\LuaTest2.dll
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-maccatalyst\maccatalyst-arm64\LuaTest2.dl
  l
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-ios\iossimulator-arm64\LuaTest2.dll
  LuaTest2 -> C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\bin\Debug\net8.0-browserwasm\LuaTest2.dll
obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-libra
ry at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.extensions.jar [C:
\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramework=net8.0-android]
obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-libra
ry at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.sidecar.jar [C:\Us
ers\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramework=net8.0-android]

Build succeeded.

C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-desktop]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-maccatalyst]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-ios]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-browserwasm]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-windows10.0.19041]
C:\Program Files\dotnet\sdk\8.0.302\Microsoft.CSharp.CurrentVersion.targets(129,9): warning MSB3884: Could not find rul
e set file "ManagedMinimumRules.ruleset". [C:\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramew
ork=net8.0-android]
obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-libra
ry at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.extensions.jar [C:
\Users\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramework=net8.0-android]
obj\Debug\net8.0-android\android\AndroidManifest.xml : warning XA4218: Unable to find //manifest/application/uses-libra
ry at path: C:\Program Files (x86)\Android\android-sdk\platforms\android-34\optional\androidx.window.sidecar.jar [C:\Us
ers\ben\Development\Lua\LuaTest2\LuaTest2\LuaTest2.csproj::TargetFramework=net8.0-android]
    8 Warning(s)
    0 Error(s)

Time Elapsed 00:00:34.21

App successfully runs from command line.

@jeromelaban
Copy link
Member

Thanks, this is the part that is causing the error:

DEP0700: Registration of the app failed. [0x80070005] Deployment Register operation with target 
volume C: on Package LuaTest2_1.0.0.0_arm64__s9taf37906zmc from:  (AppxManifest.xml)  failed with 
error 0x80070005. See http://go.microsoft.com/fwlink/?LinkId=235160 for help diagnosing app deployment issues.

0x80070005 is generally an access denied.

I wonder, does a vanilla WinAppSDK app deploy properly?

@baskren
Copy link
Contributor Author

baskren commented Jun 22, 2024

@jeromelaban : Thank you for your patience with me. I should have tried that before bothering you. Yes, same issue with vanilla WinAppSDK if it's in the same directory. However, if I construct the solution in ~/source/repos, it works.

https://stackoverflow.com/questions/73679622/visual-studio-2022-dep0700-registration-of-the-app-failed-0x80070005

I need to figure out why my permissions are wonky.

@baskren baskren closed this as completed Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification
Projects
None yet
Development

No branches or pull requests

2 participants