Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Jun 11, 2018

What this PR does

This PR lets a developer use Visual Studio 2017, but set the Start external program option to the Visual Studio 2015 application. The GitHub.VisualStudio.csproj build script will detect that an alternative start program is being used and use the appropriate targets files to install the VSIX in the experimental instance of Visual Studio 2015.

image

  • Conditionally use VisualStudio.Sdk.BuildTasks.14.0 when
    StartProgram contains the string Microsoft Visual Studio 14.0

Questions

~~ This change will mean that the VisualStudio.Sdk.BuildTasks.14.0 script will only be used when StartProgram has explicitly been set. The newer Microsoft.VSSDK.BuildTools.15.0 script will be used, even when building with MSBuild 14.0 in CI. ~~~

I believe most of us are now using Visual Studio 2017, so will have been testing this configuration. We should still check that nothing important has changed/broken in CI!

We'll probably want to move to using MSBuild 15.0 at some point.

I've had some issues with a corrupted MEF cache after installing in VS 2015. This is pretty normal though and quite likely nothing to do with this PR. Clearing the cache seems to fix it.

Conditionally use `VisualStudio.Sdk.BuildTasks.14.0` when
`StartProgram` contains the string `Microsoft Visual Studio 14.0`.
Copy link
Contributor

@grokys grokys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work for me in VS2017. I can confirm it works when running from the commandline with a StartProgram env var set, but it doesn't work from the IDE.

Automatically detect Visual Studio 2015 and set VisualStudioVersion
property to 14.0.
Don't attempt to preload GitHub.VisualStudio.csproj.user if the user
hasn't created one.
Copy link
Contributor

@grokys grokys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! This works for me now!

@grokys grokys merged commit 8234954 into github:master Jun 19, 2018
@meaghanlewis meaghanlewis added this to the 2.5.4 milestone Jun 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants