locked
Can I work with Visual Studio 2010 SDK project via Visual Studio 11 without installing Visual Studio 2010? RRS feed

  • Question

  • I developed Visual Studio extension using VS 2010 SP1 + SDK. I installed Windows Developer Preview with VS 11 preinstalled (clean install). It seems that necessary assemblies are present on my system, but extension project is displayed as unavailable (I suppose this is because of build tasks, or project type). Can I edit, compile and debug it from VS 11 without installing VS 2010 + its SDK?
    Friday, October 21, 2011 8:11 AM

Answers

  • The following change in csproj file forces it to work.

    -  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" />
    +  <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
    +  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets')" />

    You probably will also need to remove specific version restriction from referenced assemblies.

    • Marked as answer by lostmsu Friday, October 21, 2011 8:27 AM
    Friday, October 21, 2011 8:26 AM

All replies

  • The following change in csproj file forces it to work.

    -  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" />
    +  <Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
    +  <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets" Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\VSSDK\Microsoft.VsSDK.targets')" />

    You probably will also need to remove specific version restriction from referenced assemblies.

    • Marked as answer by lostmsu Friday, October 21, 2011 8:27 AM
    Friday, October 21, 2011 8:26 AM
  • Hi lostmsu,

    I’m glad to hear that you got it working.

    Thank you for sharing your solutions & experience here. It will be very beneficial for other community members who have similar questions.

     

    Best regards,

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, October 24, 2011 3:33 AM
    Moderator