Closed luoyunchong closed 4 years ago
@javiercn any recommendation where this should go? (mvc or platform) ?
Use ManifestFileEmbeddedProvider which is designed to be full-fidelity or instead of that, use static web assets if possible. This is a known limitation of EmbeddedFileProvider we don't plan to address.
Also, not sure if this moved to the runtime repo.
Update: It didn't, but we don't plan to address this.
Thanks,I use Microsoft.Extensions.FileProviders . physical can also solve my problem
Describe the bug
I use Microsoft.Extensions.FileProviders.Embedded
When the embedded file name is in the form of xxxx.cs.xxxx.
ResourcePath value cannot be recognized
code is simple,
To Reproduce
FileTest.zip
Exceptions (if any)
at Microsoft.Extensions.FileProviders.Embedded.Manifest.ManifestFileInfo.CreateReadStream() at FileTest.Program.Embedded(String path) in C:\Users\Computer\Desktop\FileTest\Program.cs:line 32 at FileTest.Program.Main(String[] args) in C:\Users\Computer\Desktop\FileTest\Program.cs:line 21
Further technical details
Host (useful for support): Version: 5.0.0-preview.6.20305.6 Commit: 4ba9ecaabd
.NET SDKs installed: 3.1.302 [C:\Program Files\dotnet\sdk] 3.1.400-preview-015178 [C:\Program Files\dotnet\sdk] 5.0.100-preview.6.20318.15 [C:\Program Files\dotnet\sdk]