Search This Blog

Showing posts with label VS 2010 RC. Show all posts
Showing posts with label VS 2010 RC. Show all posts

Friday, February 26, 2010

Fixing a reverted Visual Studio 2010 Beta 2 from Visual Studio 2010 RC

As mentioned in the previous post: “Issues when developing with Visual Studio 2010 RC and SharePoint 2010 Beta 2” the process was not as smooth nor as polished as it was expected.

While the uninstall and re-installation process was easy enough, there were some items left behind. After spending a considerable amount of time and though thinking what the issue at hand could be the solution ended up being answered with the following questions:

  • What was the version of the Framework that was removed?

  • Where was that Framework installed to?

That said, the numbers of the RC version are: 4.0.30128 and they were installed to \Windows\Microsoft.Net\Framework64\. It would not hurt to check the other folder to ensure that everything is back to normal ( \Windows\Microsoft.Net\Framework\ ).

The solution is

  • Navigate to \Windows\Microsoft.net\Framework64\ folder
  • Check if there is a folder prefixed “v4.0.” asides from “v4.0.21006”
  • Prefix any folders that begin with “v4.0” with “Old” , in this example it was : “Oldv4.0.30128”

Once this is accomplished, the errors disappeared immediately even while the Visual Studio 2010 Beta 2 instance was still open.

Hope this helps others as much as it did help me getting back into developing with Visual Studio 2010 Beta 2, not to mention avoiding the rebuild of the entire Virtual machine.

Tuesday, February 23, 2010

Issues when developing with Visual Studio 2010 RC and SharePoint 2010 Beta 2

Recently, since development with SharePoint 2010 Beta 2 had been going so well; decided to jump into installing Visual Studio 2010 RC.

Followed the common steps:

  • Uninstall Visual Studio 2010 Beta 2
  • Uninstall .Net Framework 4 Extended Beta 2
  • Uninstall .Net Framework 4 Client Profile Beta 2
  • Install .Net Framework 4 RC
  • Install .Net Framework 4 RC Client Profile
  • Install Visual Studio 2010 RC

Immediately assumed that SharePoint 2010 Beta 2 and Visual Studio 2010 RC would get along well and for the most part they did.

While in the IDE was able to perform pretty much all the necessary tasks a developer does:

  • Add and Configure Controls
  • Add References
  • Configure Project Settings
  • Build

The issue would arise when attempting to Debug or Run the application:

Capture 

The error is caused because the Frameworks are not the same, in other words to develop solutions with Visual Studio 2010 RC and SharePoint 2010 you must have also SharePoint 2010 RC. At the moment of this posting SharePoint 2010 RC is only available to selected partners.

The solution or so I thought was to revert back to:

  • .Net Framework 4 Extended Beta 2
  • .Net Framework 4 Client Profile Beta 2
  • Visual Studio 2010 Beta 2
  •  

    After reverting completely to a complete set of Visual Studio and .Net Framework Beta 2, was still receiving errors.

    That’s the price you pay for being on the bleeding edge, right?

    It has been a frustrating experience, but in the end I found a solution.

    Will post it on soon; stay tuned!