Jump to content
Xtreme .Net Talk

Linking files across multiple projects = ERRORS


Recommended Posts

Posted

Hello,

 

I have two projects in a solution that link to common files. One of the projects runs fine, but the other one gives an error when it tries to load a resource:

 

An unhandled exception of type 'System.Resources.MissingManifestResourceException' occurred in mscorlib.dll

 

Additional information: Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure "Form1.resources" was correctly embedded or linked into assembly "link2".

baseName: Form1 locationInfo: link2.Form1 resource file name: Form1.resources assembly: link2, Version=1.0.1722.33346, Culture=neutral, PublicKeyToken=null

at the line:

 

Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)

 

What it seems to be doing is creating a .resources file under the first project's namespace for both the first project and the second project.

 

Can anyone help me with this problem?

Posted
A slightly simplistic solution maybe but why don't you just create a second copy of the resource files you are trying to access with both applicatios and run an update everytime they gey altered?
Posted

Thank you for your replies.

 

@jedbartlet: I've already tried that and it doesn't work because every time I run my program VS creates the resource files and packs them into the exe that it compiles.

 

@PlausiblyDamp: That might be difficult for what I am doing. First I want to see if I can just link the files.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...