Skip to content

Get MsBuildPath

Apostolis Bekiaris edited this page Apr 26, 2020 · 7 revisions

external help file: XpandPwsh-help.xml Module Name: XpandPwsh online version: schema: 2.0.0

Get-MsBuildPath

SYNOPSIS

Returns the MSBuild path.

SYNTAX

Get-MsBuildPath [<CommonParameters>]

DESCRIPTION

Returns the MSBuild path. The function uses the the vswhere.

EXAMPLES

Example 1

PS C:\> Get-MsBuildPath
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\MSBuild.exe

Output the path of the latest VS version installed.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

image

image


Star the project if you think it deserves it.

GitHub stars

Fork the project to extend and contribute.

GitHub forks

Clone this wiki locally