Solved

Visual Studio 2010 and .NET programming: how to associate a *.Designer.cs file with *.resx file?

Posted on 2011-02-10
3
937 Views
Last Modified: 2013-11-26
Hi Experts:

    Here is my development environment:
-- Visual Studio 2010
-- .NET 4.0
-- SilverLight 4

    I am trying to re-use some components from a business application templated provided by Microsoft. Please see the screenshoots for the template I am referring to and the files I am copying.

    I created the same folder structure in my project and then copied the RESX files and CS files into the corresponding location, and then I found that the CS files are not associated with the RESX files.

    Will this have an impact to my project? How can I fix it?

     Thank you.

    I am
SLBusinessApp.png
ResxFiles.png
CopiedResxFiles.png
0
Comment
Question by:huangs3
  • 2
3 Comments
 
LVL 20

Assisted Solution

by:hes
hes earned 100 total points
ID: 34864949
Don't copy the files, click on the project and add existing item, this will bring in all the parts of a page
0
 

Accepted Solution

by:
huangs3 earned 0 total points
ID: 34876111
Hi hes:

    I did use add existing item, but it still doesn't work after I delete the files and copy+readd the files.
    At the end I resolve this issue by recreating new RESX files under the project, and then copy-paste the old code.
    Thank you.
0
 

Author Closing Comment

by:huangs3
ID: 34904883
hes's suggest should be right in normal situation, but it just couldn't resolve my case.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question