msbuild-project-tools-vscode icon indicating copy to clipboard operation
msbuild-project-tools-vscode copied to clipboard

Adding a config setting that enables the user to specify / override additional MSBuild toolsets

Open tintoy opened this issue 5 years ago • 0 comments

Example config:

{
    "msbuildProjectTools.msbuild.toolsets": {
        "15.0": {
            "baseDirectory": "C:\\MyToolsetBaseDirectory",
            "globalPropertyOverrides": {
                "MyProperty": "SomeValue"
            }
        },
        "Current": {
            "baseDirectory": "C:\\AnotherToolsetBaseDirectory"
        }
}

MSBuild appends the toolset version to the base directory (e.g. 15.0 -> C:\MyToolsetBaseDirectory\15.0 or Current -> C:\AnotherToolsetBaseDirectory\Current) to find common .propsand.targetsfiles. If15.0orCurrent` toolset is specified, then this will (depending on .NET Core SDK version) override the default toolset configuration.

Relates to tintoy/msbuild-project-tools-vscode#46.

tintoy avatar Dec 07 '18 22:12 tintoy