question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EmbeddedResource with two dots in Filename not working

See original GitHub issue

EmbeddedResource 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:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JakobWlcommented, Jan 16, 2023

As a workaround add WithCulture=“false” to the embedded resource. This is still a remaining issue in .net 6.

0reactions
ErikApptioncommented, Feb 1, 2022

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found