Hi Korkless,
Based on my research,thisissue is not related to the same namewith different extension. I havetried to test with different file name, and this issue still appears. Based on my understanding,DependentUpon seems to change the name of the embedded resource, so in the compiled assembly the name is no longer 'MyControl.js' or'MyControl.css'butboth are'MyControl', so it will cause duplicate error.
I would suggest you use other method to achieve your objective, andI don't know why you want to hide these two files in 'MyControl.cs', I think it does not make sense.
If I misunderstood you, or you have any questions, please let me know.
Best Regards,
Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.