File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 2020
2121 <!-- dotnet msbuild -target:AllDocs build.proj -->
2222 <Target Name =" AllDocs" >
23+ <Exec Command =' dotnet tool restore' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
2324 <Exec Command =' dotnet build FSharpPlus.sln -c Release' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
2425 <Exec Command =' ./docsrc/tools/download_nugets.cmd' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" Condition =" '$(OS)' == 'Windows_NT' " />
2526 <Exec Command =' ./docsrc/tools/download_nugets.sh' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" Condition =" '$(OS)' != 'Windows_NT' " />
2627 <Exec Command =' dotnet run -c Release --project ./docsrc/tools' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
2728 </Target >
2829
30+ <Target Name =" ReleaseDocs" >
31+ <Exec Command =' dotnet tool restore' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
32+ <Exec Command =' dotnet build FSharpPlus.sln -c Release' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
33+ <Exec Command =' ./docsrc/tools/download_nugets.cmd' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" Condition =" '$(OS)' == 'Windows_NT' " />
34+ <Exec Command =' ./docsrc/tools/download_nugets.sh' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" Condition =" '$(OS)' != 'Windows_NT' " />
35+ <Exec Command =' dotnet run -c Release --project ./docsrc/tools ReleaseDocs' WorkingDirectory =" $(RepoRootDir)" IgnoreStandardErrorWarningFormat =" true" />
36+ </Target >
37+
38+
2939 <Target Name =" VSTest" DependsOnTargets =" Test" />
3040
3141</Project >
Original file line number Diff line number Diff line change 1- @ ECHO OFF
2- PowerShell.exe -Command " & '%~dpn0 .ps1'"
1+ @ %SYSTEMROOT% \System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command " try { & '%~dpn0 .ps1' %* ; $err = -not $? } catch { Write-Host $_; $err = $true; $LastExitCode = 1 }; if ($err) { $ppid = (gwmi Win32_Process -Filter processid=$pid).ParentProcessId; $cl = (gwmi Win32_Process -Filter processid=$ppid).CommandLine; if ($cl -like '*cmd.exe /c*') { $gppid = (gwmi Win32_Process -Filter processid=$ppid).ParentProcessId; $pn = (gps -id $gppid).ProcessName; if ($pn -eq 'explorer') { pause } } }; exit $LastExitCode"
You can’t perform that action at this time.
0 commit comments