Skip to content

Option to not use xcopy-msbuild if VS is not found  #4534

Closed

Description

@vatsan-madhavan

I'd like to introduce an option to fail the build if Visual Studio with required components is not found.

The current behavior (search for VS with requested components; if it's not found then fall-back to xcopy-msbuild) works for most repos/users. For WPF, there is no real fallback besides VS, so I'd like to turn off the fallback.

I have two possible implementation proposals.

i. A global variable, something like $global:DoNotUseXcopyMsBuild. Interested parties can set it in eng\configure-toolset.ps1.
ii. In global.json, use an invalid version as a sentinel value for xcopy-msbuild. For e.g., none (we'll have to document it). It will be interpreted as "do not fallback to xcopy-msbuild".

I like option (ii) over (i). Thoughts ?

I'd like to use this in dotnet/wpf#2307.

/cc @tmat, @chcosta
/cc @rladuca

Activity

  1. tmat commented on Dec 11, 2019

    @tmat
    Member

    +1 for "xcopy-msbuild" : "none"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions