EmbeddedResource with two dots in Filename not working
See original GitHub issueEmbeddedResource with two dots in the file name does not work, meaning GetManifestResourceNames does not return anything.
Works:
<ItemGroup>
<EmbeddedResource Include="Templates\ModelFile.scriban">
</EmbeddedResource>
Does not work:
<ItemGroup>
<EmbeddedResource Include="Templates\ModelFile.cs.scriban">
</EmbeddedResource>
This should either be fixed or documented properly as it’s really not something you look for.
Platform:
.Net Core 3.1.401 Windows 10 1909
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
c# - Retrieving embedded resources with special characters
MyFile.ext). However when a folder has a dot in the name and when special characters are used, manually getting the resource name does...
Read more >Can not add embedded resource file name Translation.de. ...
I have other “double” dots files embedded with no problems. Environment: Microsoft Visual Studio Professional 2019. Version 16.6.5 VisualStudio.16.Release/16.6.
Read more >Problem with double-dots in directory names - ROOT Forum
Hello, I wonder why double-dots in directory names create problems - please consider the small attached example. If the double-dot is ...
Read more >double dots in the end of the file name do not allow to ...
Hello team,. I have the issue when trying to download the file with dot at the of of it's name. But the Wp...
Read more >How to Logically Name Embedded Resources in .csproj?
In this post we are sharing a nice tip to logically name embedded resources in a Visual studio C# project.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As a workaround add WithCulture=“false” to the embedded resource. This is still a remaining issue in .net 6.
This is an ugly issue and still happens with .net 6.0.1 This prevents from having localization resources as embedded such as localization.en.json. @joeloff any updates?