• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 970
  • Last Modified:

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

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
huangs3
Asked:
huangs3
  • 2
2 Solutions
 
hesCommented:
Don't copy the files, click on the project and add existing item, this will bring in all the parts of a page
0
 
huangs3Author Commented:
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
 
huangs3Author Commented:
hes's suggest should be right in normal situation, but it just couldn't resolve my case.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now