mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-02 00:42:54 -05:00
tools: use dotnet build in VS2015 CI
This commit is contained in:
@ -27,6 +27,7 @@ if X%~nx0==Xbuild-choco.bat (
|
||||
set BuildArm64=yes
|
||||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
|
||||
set BuildArm64=no
|
||||
set UseDotnetSdk=yes
|
||||
)
|
||||
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
|
||||
set BuildArm64=no
|
||||
@ -56,6 +57,13 @@ if X%SignedPackage%==X (
|
||||
if exist build\ for /R build\ %%d in (%Configuration%) do (
|
||||
if exist "%%d" rmdir /s/q "%%d"
|
||||
)
|
||||
|
||||
if X%UseDotnetSdk%==Xyes (
|
||||
dotnet build ./dotnet/ -c "%Configuration%" -p:SolutionDir=..\
|
||||
if errorlevel 1 goto fail
|
||||
dotnet build ./testing/memfs-dotnet.csproj -c "%Configuration%" -p:SolutionDir=..\
|
||||
if errorlevel 1 goto fail
|
||||
)
|
||||
|
||||
if X%BuildArm64%==Xyes (
|
||||
devenv winfsp.sln /build "%Configuration%|ARM64"
|
||||
|
17
tools/gensrc/remove-build-dotnet.bat
Normal file
17
tools/gensrc/remove-build-dotnet.bat
Normal file
@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
|
||||
setlocal
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
if "%1"=="" (
|
||||
cd %~dp0..\..
|
||||
) else (
|
||||
cd "%1"
|
||||
)
|
||||
|
||||
|
||||
if exist winfsp.sln (
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0remove-sln-project.ps1' -Path '%cd%\winfsp.sln' -Match '*dotnet*'
|
||||
) else (
|
||||
echo winfsp.sln not found in %cd%
|
||||
)
|
12
tools/gensrc/remove-sln-project.ps1
Normal file
12
tools/gensrc/remove-sln-project.ps1
Normal file
@ -0,0 +1,12 @@
|
||||
param (
|
||||
[Parameter(Mandatory)][string]$Path,
|
||||
[Parameter(Mandatory)][string]$Match
|
||||
)
|
||||
|
||||
echo "Removing projects that match $($Match) from $($Path)"
|
||||
|
||||
Get-Content $Path -Delimiter 'EndProject' |
|
||||
Where-Object {$_ -notlike $Match} |
|
||||
Set-Content "$($Path).new"
|
||||
|
||||
Move-Item -Path "$($Path).new" -Destination $Path -Force
|
Reference in New Issue
Block a user