C
C#17mo ago
xnyu_

❔ WFA problem with resolving embeded resource after solution refactoring

I have a wfa application an some images in PNG/ICO format I imported in the resource section. Now that I moved the directory of the solution, changed namespace names etc., it has troubles to resolve the resources in some way. when I open the form designer, it shows me the white page an says "co resource found for the culture of neutral culture"
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
at xnyu_debug_studio.Properties.Resources.get_record_normal()
at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream)
at xnyu_debug_studio.Properties.Resources.get_record_normal()
I reimported the resources and checked the names, but I can't find any difference between my old back up project and the new one. Someone has any ideas what i can check? The error refers to the Resources.Designer.cs, but I can't spot something suspicious here aswell.
2 Replies
xnyu_
xnyu_17mo ago
The title "embedded resources" is probably misleading, I'm not sure. I just import them with the resources tab from existing files. But the build actions are set to none. That's how it is in my original project, that works dammit, a simple visual studio restart solved the problem. 2h of my life ^^
Accord
Accord17mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.