dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.92k stars 526 forks source link

Hybrid Blazor maui default example don't work, errors #8851

Closed vsfeedback closed 5 months ago

vsfeedback commented 5 months ago

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version] I just used the plain template. Did not changed anything. Just run it as windows machine and gives an error "the project needs to be deployed before we can debug. Please enable Deploy". in the configuration manager. In the configuration manager Deploy and debug are checked.

Launch it in android mode it wil start the emulator. Tells met that the device is found at 5554. Emulator closes and the error tells me that there are deployment errors. (continu? (yes/no)). With no it ends with Severity Code Description Project File Line Suppression State Error XA0129: Error deploying 'files/.override/System.Net.Quic.dll'. Please set the 'EmbedAssembliesIntoApk' MSBuild property to 'true' to disable Fast Deployment in the Visual Studio project property pages, or edit the project file in a text editor.

Actions:

(Severity Code Description Project File Line Suppression State Error DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 10, Column 13, Reason: 'com.companyname.hybrid_blazor_maui_app' schendt pattern-beperking van '[-. A-Za-z0-9]+'. Het kenmerk 'Name' met de waarde 'com.companyname.hybrid_blazor_maui_app' kan niet worden geparseerd. Hybrid Blazor Maui App

Tried again and run into the same problem.

Sysinfo: Windows 11 (with latest update) Edge, chrome, firefox installed

Hardware Lenovo Ideapad 5 pro (16") Processor AMD Ryzen 9 5900HX with Radeon Graphics 3.30 GHz Installed RAM 32.0 GB (27.9 GB usable) System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display


But the problem is all over the place. My other notebook (Lenovo Yoga i7) with windows 11 and VS 2022 17.8.3 installed comes with the same problem as told you above.

Theproblem is only by the template '.net Maui Blazor Hybrid app'

I hope you can trace the problem and solve it. Thank you. Dinand


Original Comments

Feedback Bot on 2/25/2024, 05:58 PM:

(private comment, text removed)

Dean Ellis [MSFT] on 2/28/2024, 01:36 PM:

(private comment, text removed)

Dinand van Hartingsveldt on 2/29/2024, 00:30 AM:

(private comment, text removed)


Original Solutions

(no solutions)

jpobst commented 5 months ago
Error DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE169: 
App manifest validation error: The app manifest must be valid as per schema: 
Line 10, Column 13, Reason: 'com.companyname.hybrid_blazor_maui_app' 
schendt pattern-beperking van '[-. A-Za-z0-9]+'.

This one looks like you cannot use the underscore character in your project name.

jonathanpeppers commented 5 months ago

If the original poster could try @jpobst's suggestion, or share a .binlog we can investigate further. https://aka.ms/binlog

Thanks!

microsoft-github-policy-service[bot] commented 5 months ago

Hi @vsfeedback. We have added the "need-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.

microsoft-github-policy-service[bot] commented 5 months ago

Hi @vsfeedback. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.