forked from dotnet/cli
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbin-dotb.ps1
44 lines (34 loc) · 1.49 KB
/
bin-dotb.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ./sudo.ps1
$ErrorActionPreference = 'Stop'
$a_args = $PsBoundParameters.Values + $args
if (-not (test-path c:\bin\dotb\dotnet.dll)) {
write-host ".dotnet\dotnet.exe build src\dotnet\dotnet.csproj -o c:\bin\dotb\ -c Debug"
.dotnet\dotnet.exe build vendor\msbuild\src\MSBuild\MSBuild.csproj -o c:\bin\dotb\ -c Debug -f netcoreapp3.0
.dotnet\dotnet.exe build src\dotnet\dotnet.csproj -o c:\bin\dotb\ -c Debug
}
$env:DOTNET_CLI_CAPTURE_TIMING=1
$env:MSBUILD_EXE_PATH="c:\bin\dotb\sdk\3.0.100-preview4-010386\MSBuild.dll"
# $env:MSBUILD_EXE_PATH="c:\bin\dotb\MSBuild.dll"
$env:MSBUILDEXTENSIONSPATH="c:\bin\dotb\sdk\3.0.100-preview4-010386"
$env:MSBuildSDKsPath="c:\bin\dotb\sdk\3.0.100-preview4-010386\Sdks"
# 3.0.100-preview4-010386
$env:MSBUILD_EXE_PATH="c:\Program Files\dotnet\3.0.100-preview4-010386\MSBuild.dll"
$env:MSBUILDEXTENSIONSPATH="c:\Program Files\dotnet\3.0.100-preview4-010386"
$env:MSBuildSDKsPath="c:\Program Files\dotnet\sdk\2.2.104\Sdks"
$env:COREHOST_TRACE=0
$env:DOTNET_CLI_CONTEXT_VERBOSE=1
$env:MSBUILDDEBUGONSTART=1
$env:DOTNET_HOST_PATH="c:\bin\dotb\dotb.exe"
if (test-path c:\bin\dotb\MSBuild.dll) {
$env:MSBUILD_EXE_PATH="c:\bin\dotb\MSBuild.dll"
# Build.CommandLine ProcessCommandLineSwitches
}
write-host -f magenta "c:\bin\dotb\dotb.exe --debug $a_args | MSBUILD_EXE_PATH=$env:MSBUILD_EXE_PATH"
$count = $args.Count
write-host $args.Count
if ($count -gt 0) {
$env:COREHOST_TRACE=1
c:\bin\dotb\dotb.exe --debug $a_args
} else {
c:\bin\dotb\dotb.exe --info
}