none
The type or namespace name 'Resources' does not exist in the namespace 'xxxxx.xxxx.Properties' (are you missing an assembly reference?) RRS feed

  • 質問

  • I am using VS 2008 on an existing project that was converted from VS2005 long time ago.  The project uses some *.Gif, *.bmp, etc.. files that was imported long before the conversion.

    today, I just added a picture box to an existing control by droping the picture box on the control.  And then I assigned a graphic file to the immage property.  Every thing looks cool, and the picture is shown on the control.

    After then, I got ton of build errors (same error) on all source file that using any pictures.  The error is below:

    "The type or namespace name 'Resources' does not exist in the namespace 'xxx.xx.Properties' (are you missing an assembly reference?) "

    Clicking on one of the error leads me to a line of code like this (code like this are auto generated by VS and store in the xxx.designer.cs files):

    this.picSample1.Image = global::xxx.xx.Properties.Resources.Sample_Revenue;


    What could have go wrong here?  How do I make my project compile again?

    Thanks

    David N.
    2008年8月13日 5:19

回答

すべての返信