Invoke-MsBuild
2.3.1
Executes the MSBuild.exe tool against the specified Visual Studio solution or project file.
Minimum PowerShell version
2.0
Installation Options
Owners
Copyright
(c) 2016 Dan.Schroeder. All rights reserved.
Package Details
Author(s)
- Dan.Schroeder
Tags
Invoke MsBuild Invoke-MsBuild Build Compile
Functions
Dependencies
This module has no dependencies.
Release Notes
- Fixed to actually add support for VS/MsBuild 2017.
----------
Invoke-MsBuild v2 has the following breaking changes from v1:
- A hash table with several properties is returned instead of a simple $true/$false/$null value.
- The GetLogPath switch is gone and replaced with the WhatIf switch.
New features in v2 include:
- A build log file containing only build errors is created alongside the regular build log file.
- The errors build log file can be auto-launched on build failure.
- New switch has been added to show the build output in the calling scripts console window (does not work with some 3rd party consoles due to Start-Process cmdlet bug).
- A hash table containing the following properties is now returned:
+ BuildSucceeded = $true if the build passed, $false if the build failed, and $null if we are not sure.
+ BuildLogFilePath = The path to the builds log file.
+ BuildErrorsLogFilePath = The path to the builds error log file.
+ ItemToBuildFilePath = The item that MsBuild is ran against.
+ CommandUsedToBuild = The full command that is used to invoke MsBuild. This can be useful for inspecting what parameters are passed to MsBuild.exe.
+ Message = A message describing any problems that were encoutered by Invoke-MsBuild. This is typically an empty string unless something went wrong.
+ MsBuildProcess = The process that was used to execute MsBuild.exe.
Changes to make when updating from v1 to v2:
- To capture/display the build success result, you must change:
Invoke-MsBuild ...
to:
(Invoke-MsBuild ...).BuildSucceeded
- To get the path where the log file will be created, you must change:
Invoke-MsBuild ... -GetLogPath
to:
(Invoke-MsBuild ... -WhatIf).BuildLogFilePath
FileList
- Invoke-MsBuild.nuspec
- Invoke-MsBuild.psd1
- Invoke-MsBuild.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
2.7.1 | 108,148 | 12/11/2021 |
2.7.0 | 62 | 12/11/2021 |
2.6.5 | 21,674 | 10/29/2020 |
2.6.4 | 52,545 | 2/1/2019 |
2.6.3 | 59 | 2/1/2019 |
2.6.2 | 6,847 | 7/3/2018 |
2.6.1 | 1,291 | 5/1/2018 |
2.6.0 | 6,882 | 5/15/2017 |
2.5.1 | 276 | 4/22/2017 |
2.5.0 | 75 | 4/21/2017 |
2.4.2 | 67 | 4/20/2017 |
2.4.1 | 71 | 4/20/2017 |
2.4.0 | 177 | 4/2/2017 |
2.3.1 (current version) | 60 | 4/1/2017 |
2.3.0 | 80 | 3/31/2017 |
2.2.0 | 1,192 | 12/2/2016 |
2.1.1 | 399 | 9/14/2016 |
2.1.0 | 392 | 6/24/2016 |
2.0.0 | 291 | 5/25/2016 |
1.6.3 | 161 | 4/6/2016 |
1.6.2 | 61 | 4/6/2016 |
1.6.1.2 | 115 | 3/7/2016 |
1.6.1.1 | 63 | 3/4/2016 |
1.6.0 | 72 | 3/1/2016 |