diff --git a/tools/build.bat b/tools/build.bat index a95877e0..a653ae6f 100755 --- a/tools/build.bat +++ b/tools/build.bat @@ -57,13 +57,6 @@ 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" @@ -78,6 +71,13 @@ if X%SignedPackage%==X ( if errorlevel 1 goto fail ) + if X%UseDotnetSdk%==Xyes ( + dotnet build ./dotnet/winfsp.net.csproj -c "%Configuration%" -p:Platform=AnyCPU -p:SolutionDir="%cd%"\ + if errorlevel 1 goto fail + dotnet build ./testing/memfs-dotnet.csproj -c "%Configuration%" -p:Platform=AnyCPU -p:SolutionDir="%cd%"\ + if errorlevel 1 goto fail + ) + pushd build\%Configuration% set signfiles=^ %MyProductFileName%-a64.sys %MyProductFileName%-x64.sys %MyProductFileName%-x86.sys^