Skip to content
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

Exception thrown from StaticContentProvider._manifestProvider #31106

Closed
b-straub opened this issue Mar 21, 2021 · 1 comment · Fixed by #31107
Closed

Exception thrown from StaticContentProvider._manifestProvider #31106

b-straub opened this issue Mar 21, 2021 · 1 comment · Fixed by #31107
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-blazor-desktop This issue is related to Blazor Desktop

Comments

@b-straub
Copy link

Describe the bug

The commit 2d5da9c triggers a long standing and never fixed dotnet extensions bug:
ManifestEmbeddedFileProvider not working when Resources.resx in same project

To Reproduce

Run the sample app from "\src\Components\WebView\Samples\BlazorWinFormsApp"

Exceptions (if any)

InnerException = {"Invalid manifest format. 'ResourcePath' must contain a text value. ''"}
Message = "The type initializer for 'Microsoft.AspNetCore.Components.WebView.StaticContentProvider' threw an exception."

@javiercn
Copy link
Member

@b-straub thanks for contacting us.

@Eilon we might have missed that. We need to mark the embedded resource with ExcludeFromManifest=true

@javiercn javiercn added area-blazor Includes: Blazor, Razor Components feature-blazor-desktop This issue is related to Blazor Desktop bug This issue describes a behavior which is not expected - a bug. labels Mar 21, 2021
@ghost ghost closed this as completed in #31107 Mar 21, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 20, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components bug This issue describes a behavior which is not expected - a bug. feature-blazor-desktop This issue is related to Blazor Desktop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants