-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Cultures Within Names For EmbeddedResources #5824
Allow Cultures Within Names For EmbeddedResources #5824
Conversation
… defines 'false' for 'WithCulture' metadata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests?
@davkean is this related to dotnet/project-system#1553? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the logic works now, thanks!
It's surprisingly difficult to find a good name that means "workaround for those that want to name their files with a culture but have those files not be treated as culture-specific files"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
NTS:
mono works on linux. install in WSL and try it there. run tests on master to make sure things are fine. find something that explicitly on mono and fails on everything else and enable it, just to check |
Are you handling slashes correctly on non-Windows? |
@Forgind I believe that's handled before it gets to these functions. This PR had a failing test because we called the API directly without fixing the file path that included a subfolder. So the options were either to remove the subfolder or fix the file path before the call. There was another function in the visual basic tests that called FixFilePath. so I could have done that. Ultimately, the subfolder wasn't a relevant part of the test so I removed it. |
Fixes #3064
Allows a workaround for those that want to embed resources that have cultures within their filenames.
The Workaround
Add the
WithCulture
metadata to your EmbeddedResource and set it tofalse
.