diff --git a/runprebuild.bat b/runprebuild.bat index e8cd98c35f..7eb3c5fa06 100755 --- a/runprebuild.bat +++ b/runprebuild.bat @@ -1,5 +1,7 @@ @echo OFF +copy bin\System.Drawing.Common.dll.win bin\System.Drawing.Common.dll + dotnet bin\prebuild.dll /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml @echo Creating compile.bat @@ -8,7 +10,7 @@ rem To compile in debug mode rem To compile in release mode comment line (add rem to start) above and uncomment next (remove rem) rem @echo dotnet build --configuration Debug OpenSim.sln > compile.bat :done -copy bin\System.Drawing.Common.dll.win bin\System.Drawing.Common.dll + if exist "bin\addin-db-002" ( del /F/Q/S bin\addin-db-002 > NUL diff --git a/runprebuild.sh b/runprebuild.sh index 2c1d64a8a5..5f724617c2 100755 --- a/runprebuild.sh +++ b/runprebuild.sh @@ -18,10 +18,10 @@ case "$1" in *) + cp bin/System.Drawing.Common.dll.linux bin/System.Drawing.Common.dll dotnet bin/prebuild.dll /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml echo "dotnet build -c Release OpenSim.sln" > compile.sh chmod +x compile.sh - cp bin/System.Drawing.Common.dll.linux bin/System.Drawing.Common.dll ;;