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

Fix broken build after clean or fresh clone #1929

Merged
merged 8 commits into from
Sep 20, 2018

Conversation

jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Sep 19, 2018

What this PR does

This PR fixes the build errors after git clean -xdf or fresh clone. The main fix was moving from Microsoft.VSSDK.BuildTools.15.0.26201 to 15.8.3252.

I've also removed the old Microsoft.VisualStudio.Sdk.BuildTasks.14.0 package and hack (see #1726) to import it when launching Visual Studio 2015. This fixes some warnings but wasn't the main problem.

  • Update from Microsoft.VSSDK.BuildTools.15.0.26201 to 15.8.3252
  • Disable Threading and SDK Analyzers (need to fix errors in another PR)
  • Remove hack to import BuildTasks.14.0 when StartProgram targeting Visual Studio 2015
  • Remove legacy Sdk.BuildTasks.14.0 packages
  • Remove left over packages.config files from ` projects

How to test

  1. Clone https://github.com/github/VisualStudio
  2. Open in Visual Studio 2017
  3. Build solution

image

To confirm broken build before the update from Microsoft.VSSDK.BuildTools.15.0.26201 to 15.8.3252.

  1. git reset 9cbf07820 --hard
  2. git clean -xdf
  3. Open in Visual Studio 2017
  4. Build solution

Expect first build to fail, but later builds to pass.

Related

Remove the conditional logic that would switch between
BuildTasks.14/BuildTools.15 based on the target Visual Studio version
in StartProgram.
Only use the Microsoft.VSSDK.BuildTools.15.0 package.
Use Microsoft.VSSDK.BuildTools.15.0.26201 in all projects.
Should restore and fix errors in another PR.
@jcansdale jcansdale changed the title [wip] Fixes broken build after clean Fixes broken build after clean or fresh clone Sep 19, 2018
@jcansdale jcansdale changed the title Fixes broken build after clean or fresh clone Fix broken build after clean or fresh clone Sep 19, 2018
We're now using <PackageReference> for these projects.
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.

Thanks Jamie, this fixes a really annoying problem!

@grokys grokys merged commit 5e3af72 into master Sep 20, 2018
@grokys grokys deleted the fixes/broken-build-after-clean branch September 20, 2018 07:10
@meaghanlewis meaghanlewis added this to the 2.5.6 milestone Sep 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