-
Notifications
You must be signed in to change notification settings - Fork 538
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
Android Items Template is missing for .Net Android project #7231
Comments
Hmm, our template pack for .net 6 does include Activity and Layout Item Templates. Namely android-activity and android-layout (see https://github.com/xamarin/xamarin-android/tree/main/src/Microsoft.Android.Templates). So I wonder why they do not show up in the IDE. @tondat are you aware of any issues with Item Templates not showing up in Visual Studio? |
Hi @dellis1972 . is it possible that I add .Net Android templates to Visual Studio manually? (where should I copy those files?) |
You should be able to use |
@jonathanpeppers its the Item Templates they are after, not a new project one. I'm not sure how to go about getting those to show up in VS. |
Ah yes, the item template should also work: So like:
|
Fixes: #7231 Fixes: #7315 This makes our item templates useable from inside Visual Studio; it allows them to show up in a new `Android` category in the "Add New Item" dialog. ![Add New Item dialog on Windows][0] ![Add New File dialog on macOS][1] [0]: https://user-images.githubusercontent.com/840039/188975443-7c10c5fc-c106-46ca-8884-46c38cf7b6a3.png [1]: https://user-images.githubusercontent.com/372361/189409441-aebe1591-8856-4fbe-90c6-425f29eea8bf.png
Android application type
Android for .NET (net6.0-android, etc.)
Affected platform version
Android 6, Android 9
Description
Currently in .Net Android project, the template for Android specific items(files) like Activity,Layout,Menu …is missing from menu : Resource Folder>Add>New Item.
These items are available in Xamarin.Android , but are not implemented in new .Net Android.
Without Android Items Template in .Net Android, it’s so difficult to develop Android Apps in VS.
Request:
Please add Android Files Templates (Like Activity,Layout,…) to .Net Android projects like Xamarin.Android.
Steps to Reproduce
1-Create a new .Net Android project
2-Try to add a new Android item(file) like Layout,Activity... to the project by right click on project items.
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: