powershell使用vs2022 msbuild
Psbuild Get-MsBuild返回的位置是在.net 4.0 Framework下,不是当前最新vs地址
$env:PSModulePath
在C:\Users\{CurrentUser}\Documents\WindowsPowerShell\Modules\PSBuild\psbuild.psm1中Set-Msbuild可以设定msbuild别名
在Powershell中执行Set-Msbuild "X:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" $true
git clone https://github.com/de4dot/de4dot.git
cd de4dot
./build.ps1
如果没有msbuild别名,系统调用的Get-MsBuild下的,不支持-restore开关