Ad

Monday, June 27, 2011

Upgrading .NET Projects

I’ve been a little remise in upgrading some of my older projects from Civil 3D 2011 to 2012. If you don’t want to wait for me to do it, then you can follow these steps to update your projects. Now some of these steps are done for my benefit so I can use the same code from version to version and go back and upgrade all of my code base at once, but you can go straight to the updating of the references if you want.

There may be an easier way than this, but the first thing I do is create a new copy of the Microsoft Visual Studio project for the current year. I do this by copying the .vbproj files and pasting them in a safe place. image
I then copy the current solution file and give it a name that includes this year’s product date.

image

I then open the rename solution file in Microsoft Visual Studio. Once in there I then rename the solution and project file.

image

No I go back and paste the original .vbproj files back into the original folder because they are now named with the 2012.

Now that the solution house cleaning is done the references can by updated.

image

Once the references are opened I then click the Reference Paths… button and change it from the 2011 Civil 3D folder to the 2012 Civil 3D folder.

image

In this case I’ve referenced two folders, so I update both of them to the current version of the program. Next update the appropriate references.

image

image

If you’ve done everything correctly (and there are no API changes) then there should be no errors in the error window.

Now compile the code by pressing the play button at the top of the screen and try out the reports.

No comments:

LinkWithin

Blog Widget by LinkWithin

Ad