Sharing .resx files between projects with a single solution

M

M Schnell

All,

I've run into a problem and I'm hoping someone here can help me. I've
got a ASP.NET solution with six projects within. The main web project has
several resource files (.resx) to support foreign languages. However, I
need to be able to pull translated text messages out of the resource files
from a supporting project. The problem is I can't reference the main web
app from the supporting project because that would set up a circular
reference. Is there any way that I can reference the resource files in the
secondary app without creating copies of them? I don't want to have
duplicate copies of them in each project.

Thanks,

Michael Schnell
 
P

Peter Huang [MSFT]

Hi

Based on my knowledge, so far the VS.IDE did not support such feature.
For your scenario, I think we would better build the resource in a standone
assembly, so called resource assembly, so that we can reference the
resource assembly in any other project and avoid the multiple copy and
circular reference.

If you still have any concern, please feel free to post here.

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
R

Rob R. Ainscough

Peter,

Is there any chance this concept of copy files in VS.IDE be removed in
VS.NET 2005 -- it is really a hassle and big time consumer for my work flow.
I've had to do the Assemblies approach, but I really should have the option.
A simple flag in the VS.IDE options dialog or something.

Thanks, Rob.
 
P

Peter Huang [MSFT]

Hi

Based on my test on whidbey beta version, the resx file will still be make
a copy accross the project.
Since the whidbey is still in the beta period, I can not make sure is this
will be added in the release version.
Also I think you may try to submit the feedback to mswish via the link
below.
http://register.microsoft.com/mswish/suggestion.asp

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top