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

The ResourceDictionary has duplicate template options #10202

Closed
ZackYangyang opened this issue Sep 19, 2022 · 4 comments
Closed

The ResourceDictionary has duplicate template options #10202

ZackYangyang opened this issue Sep 19, 2022 · 4 comments
Assignees
Labels
area-templates Project templates, Item Templates for Blazor and MAUI fixed-in-6.0.547 Look for this fix in 6.0.547 SR7! fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! t/bug Something isn't working
Milestone

Comments

@ZackYangyang
Copy link

Description

The Resource Dictionary has duplicate template options, the issue occurs when there is both .net6 and .net7.
Maui version: 7.0.100-rc.1.22431.12
image

Steps to Reproduce

  1. Create a Maui or Maui Blazor app
  2. Right click project file - Add - New File
  3. Observe the Item window

Link to public reproduction project repository

https://github.com/ZackYangyang/maui.git

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

I was not able test on other platforms

Affected platform versions

17.4 preview build 1987

Did you find any workaround?

No response

Relevant log output

No response

@ZackYangyang ZackYangyang added the t/bug Something isn't working label Sep 19, 2022
@mrward
Copy link
Contributor

mrward commented Sep 19, 2022

The problem is the resource dictionary item template's template.json file does not specify a group id.

https://github.com/dotnet/maui/blob/main/src/Templates/src/templates/maui-resourcedictionary-xaml/.template.config/template.json

The other item templates do have a group id so VS Mac can combine them:

"groupIdentity": "Microsoft.Maui.XamlContentPage",

@mattleibow
Copy link
Member

Does this group id also need to exist in net 6 templates?

@mrward
Copy link
Contributor

mrward commented Oct 5, 2022

Yes I think it needs to be in the net6 templates otherwise with both installed you would get duplicate items in the New File dialog.

@Redth Redth modified the milestones: 7.0, .NET 7 + Servicing Oct 12, 2022
@Redth
Copy link
Member

Redth commented Oct 12, 2022

This is merged into net6.0 branch and will be picked up in the next 6.0 servicing release + 7.0 GA

@Redth Redth closed this as completed Oct 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Nov 11, 2022
@samhouts samhouts added fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! fixed-in-6.0.547 Look for this fix in 6.0.547 SR7! labels Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-templates Project templates, Item Templates for Blazor and MAUI fixed-in-6.0.547 Look for this fix in 6.0.547 SR7! fixed-in-7.0.0-rc.2.6866 Look for this fix in 7.0.0-rc.2.6866! t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants