Resource manager / generator should support multiple resource files in a single project #1456
Replies: 4 comments
-
I've been starting to look at all this and for the first case where you have same name in 2 different resources, it's not going to be very easy to find before compilation. The error could be improved maybe. For the other cases, I have additional questions:
|
Beta Was this translation helpful? Give feedback.
-
The resource ids appeared to be directly related to the resource names so I just played around by adding "1", "2", etc. until I got a value that would reproduce the issue.
I don't recall having to do anything special other than adding multiple resource files. |
Beta Was this translation helpful? Give feedback.
-
Resources start to "exist" at build time. The current MDP version was designed for a single resource per project. To be honest I don't think it's worth the effort to put work on this and make a bunch on changes to make it happen. It's by design, so let's accept this. |
Beta Was this translation helpful? Give feedback.
-
@CoryCharlton I'm moving this as a discussion as I don't think the work to be done is worse the effort in most scenarios. Also, it's something that can be properly documented. |
Beta Was this translation helpful? Give feedback.
-
Description
The resource manager / resource generator should properly handle multiple resource files in a single project.
** OR **
The resource generator should provide a clear error explaining that only a single resource file per project is supported if that is a limitation that should be enforced.
How to solve the problem
Resolve the issues related to multiple resource files OR provide a clear error message and build failure stating that only a single resource file is supported.
Describe alternatives you've considered
No response
Aditional context
I created a quick POC that reproduces these issues at https://github.com/CoryCharlton/nanoFramework.ResourceManager.Issues
Beta Was this translation helpful? Give feedback.
All reactions