can't compile resx in vs2003 after vs2005 conversion


M

mobigital-ggrp

Hi All,

I have a .NET CF project which I converted to CF2.0 with vs2005 final.

After converting the project I am not able to compile resources in the
project with VS2003.

I get errors like the one below:
"Type System.Drawing.Point cannot be compiled into the .resources file.
This type is not supported for .NET Compact Frameworks."

My other resx files have this error with System.Drawing.Size and others
with System.Drawing Bitmap.

VS2003 and VS2005 are using different project files - I restored the
old vs2003 project files .csdproj and .csdproj.user after VS2005
conversion.

I thought that VS2005 might have touched the resx files, not making
then compatible with VS2003, so I restored old forms with resx files
into a separate directory and repointed the VS2003 project to them. It
still would not compile.

Could the reason be that I have both versions of Visual Studio side by
side.

The references in VS2003 csdproj only have this directory:
C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer

What's the best way to resolve this problem? Any help is be
appreciated.

mobigital
 
Ad

Advertisements

C

Chris Scott

As far as I know you can't. VS 2005 and VS 2003 resx files are different.
I know you can use both compilers at the same time on a single PC because
that's how mine is set up, and it works fine as long as I use different
projects and source code for each version.

Hi All,

I have a .NET CF project which I converted to CF2.0 with vs2005 final.

After converting the project I am not able to compile resources in the
project with VS2003.
..
..
..
 
M

mobigital-ggrp

thanks for the response!

I actually had already separated out affected files (cs and resx) for
both 2003 and 2005 versions - placed them in separate directories, plus
restored older backup versions that were fine with VS2003 and it still
had the same problem.

Could it be that .net cf configuration was affected by installing
VS2005 (Final Pro version)?

Or is there some rule that projects cannot be in the same directory? -
if there is some other common file, like an intermediate resource
compilation file?
 
C

Chris Scott

I keep mine in separate directories and it works. I have not tried placing
them into the same directory, though I can see how it might cause issues
during compilation.
 
Ad

Advertisements

M

mobigital-ggrp

turns VS2003 and 2005 were still sharing one resx file- (but not
reporting any errors on it)
once I separated them, the problem went away.
 

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