maui icon indicating copy to clipboard operation
maui copied to clipboard

The name Resources is reserved and cannot be used

Open whann0205 opened this issue 2 years ago • 4 comments

Description

grafik Cannot build project for locally attached iphone, because of that error above.

Steps to Reproduce

  1. Select local IOS Device for example in my case "Iphone of wolfgang"
  2. Create a folder database under the existing folder Resources
  3. Add in the itemgroup section of csproj file
  4. Build project
  5. Encounter error

Link to public reproduction project repository

None

Version with bug

6.0.486 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

IOS15,IOS16

Did you find any workaround?

Yes working with the simulator, since the problem only appear when directly deployed to a local attached iphone.

Relevant log output

No response

whann0205 avatar Oct 28 '22 07:10 whann0205

Hi @whann0205. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

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.

ghost avatar Oct 28 '22 14:10 ghost

Hi, @whann0205 - thanks for submitting this issue. Could you please attach a binlog so that we can investigate further?

https://learn.microsoft.com/visualstudio/ide/how-to-view-save-and-configure-build-log-files?view=vs-2022

rachelkang avatar Oct 28 '22 14:10 rachelkang

Hi @whann0205. We have added the "s/needs-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.

ghost avatar Oct 28 '22 14:10 ghost

I found a workaround myself. I put the .db File from the database directory into the predefined raw folder. grafik

whann0205 avatar Oct 30 '22 08:10 whann0205

@davidbritch Is this currently documented anywhere?

hartez avatar Nov 01 '22 19:11 hartez

Not sure this is a bug as that code looks like the correct and designed way?

I think the issue may also have been that the MauiAsset also needs the LogicalName attribute. This is because if you just include the path, then it tries to match that path n the app package which is not supported on iOS. Using the LogicalName effectively redirects the csproj path into a different location in the app package.

mattleibow avatar Nov 03 '22 22:11 mattleibow

I have tried to use that logicalname attribute for the database section as well like the entry for the raw one. Unfortunealy i didnt work. In addition that entry worked in all versions of maui before, so dont know if that could be a designed way. I have accepted that bug and moved the db to the raw section.

whann0205 avatar Nov 08 '22 06:11 whann0205