How to downgrade solution code upgraded to Visual Studio 2010

How to downgrade solution code upgraded to Visual Studio 2010

  
Hi guys,

Currently the OutSystems Platform supports both Visual Studio 2010 and Visual Studio 2008 to edit the extensions code.
Unfortunatly once a developer uses VS2010 to edit it the project is upgraded, and VS2008 refuses to open it again.
Note that this is not a problem is all your developers are using the same version.

- To allow the project to work again on Visual Studio 2008:
  • Open the extension in Integration Studio
  • Go to where your extension is saved on the disk and there should be a folder with the same name of the extension.
  • Open \ExtensionName\Source\NET\ExtensionName.sln in a text editor
  • Change the first 2 lines from:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
  • To:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
  • Save the file
  • Click Verify And Save on Integration Studio


Other tips:

- When using VS2010 do not change the target framework to 4.0 - Currently only .Net Framework v2.0 and v3.5 are supported.

- To debug extensions on a development machine use the advices on This thread. Just don't forget to change it back to Release after it's ready.

- If getting "warning CS1685" when compiling inside Visual Studio 2010:
  • Open \ExtensionName\Source\NET\ExtensionName.csproj in a text editor
  • Edit on the second line ToolsVersion="2.0" to ToolsVersion="4.0"
  • Remember to change it back to ToolsVersion="2.0" or ToolsVersion="3.5" if downgrading the project.

Regards,
João Rosado