-
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
File.cs.cshtml cannot become EmbeddedResource #3064
Comments
From @davkean on March 5, 2018 22:43 This would be a build issue, no? |
From @davkean on March 5, 2018 22:43 From @abpiskunov on March 2, 2018 16:51 Sounds like that or even could be sdk related, Content item type might somehow interfere with EmbeddedResource. |
From @davkean on March 5, 2018 22:43 From @nguerrera on March 2, 2018 20:38 Could be sdk or msbuild. Feel free to move to sdk for next look. |
From @davkean on March 5, 2018 22:43 From @dsplaisted on March 2, 2018 20:40 I want to take a look at this, but I suspect it is CPS not understanding how to modify the project to change the item type given the default globs that the project has. |
From @davkean on March 5, 2018 22:43 From @abpiskunov on March 2, 2018 21:56 we have a vs feedback bug associated with that 574198. Who should i assign to? Who is doing first investigation here? |
From @davkean on March 5, 2018 22:43 From @abpiskunov on March 5, 2018 20:7 Ok i am assigning the bug to Daniel first. Please route it further if it is not yours. |
It turns out the issue here is that MSBuild (via the Related suggestion from @nguerrera: #1454 (comment)
This would let you explicitly turn this off if you don't want it. |
I have the same issue on my side. It looks like the one @rjamesnw posted. Some files get put into a satellite assembly because a part of the file name looks like a culture name. I would like to the Is there a workaround available? |
I was optimistic about this but it didn't quite work Incomplete workaround <Target Name="WorkaroundMSBuild3064" BeforeTargets="SplitResourcesByCulture">
<!-- Workaround for https://github.com/Microsoft/msbuild/issues/3064 -->
<ItemGroup>
<_ResourcesWithCultureFilename Include="@(EmbeddedResource)" Condition="$([System.String]::Copy('%(Filename)').Contains('.cs'))" />
<_MixedResourceWithNoCulture Include="@(_ResourcesWithCultureFilename)">
<WithCulture>false</WithCulture>
</_MixedResourceWithNoCulture>
<EmbeddedResource Remove="@(_ResourcesWithCultureFilename)" />
</ItemGroup>
</Target> It doesn't work because the That could be avoided by explicitly specifying a A full solution would need to address the |
Related feedback tickets (internal links): Cannot embedded resource that contains “.ca.” (like something.ca.txt)
Embedded resource won't work for some filenames?
|
same issue, for me, the bad file name is |
From @davkean on March 5, 2018 22:43
From @abpiskunov on March 2, 2018 6:17
See this issue opened by customer originally : aspnet/Tooling#1066 (comment)
Copied from original issue: dotnet/project-system#3336
Copied from original issue: dotnet/sdk#2024
The text was updated successfully, but these errors were encountered: