27 October 2011

Migrating .wdproj From VS 2008 to VS 2010

Hi All,

Do you want to work under Visual Studio 2010 and your project is currently working under VS 2008?
All you need to do is to to convert your projects into a VS 2010 Version.

However there could be a small problem that we are going to solve: not all projects can be converted, and I am speaking about Web Deployment Projects. In order to make those available for VS 2010 you will need to download and install the "Visual Studio® 2010 Web Deployment Projects - RTW".

Now if you want to migrate your project from a .Net 3.5 to .Net 4.0 then you can face an error like this:
"Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive."

Now what to do to fix that?
You need to go to your .wdproj file from within Window Explorer and edit it through an editor like notepad or something and you will have to edit the following line:

Code:
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>

edit it to:
Code:
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>

That's all, everything should be working.

Thanks,
Roman

4 comments:

Yours Truly said...

I am not able to view Project Properties after I convert a project from VS2008 to VS2010.

I right click on what I believe should provide me a page with these properties (Application / BUild / BUild Events / Debug /Resources / etc) but such never happens after conversion.

Roman Gherman said...

Hi Paul, I'm not sure that I understand you. can you give me more details?

Anonymous said...

Hi,
I dont see the property TargetFrameworkVersion in my project file. Could you please help on this

Roman Gherman said...

Hi, actually can't check it now, as I don't have VS 2008 anymore.

but are you sure you are looking at a wdproj ?

Post a Comment

your thoughts are welcome:

Need more? Leave comments and subscribe to my blog.

.