From 173ac39d717fe23aef52e0536bdeea7b3dd8b11a Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 2 Oct 2022 11:09:27 +0100 Subject: [PATCH] change prebuild files as needed to compile and run under dotnet 6.0 --- BUILDING.md | 18 +- bin/OpenSim32.exe | Bin 5632 -> 0 bytes bin/OpenSim32.exe.config | 76 --- bin/opensim.sh | 4 +- cleanaot.sh | 17 - makeaot.sh | 17 - prebuild.xml | 1233 ++++++++++++-------------------------- runprebuild.bat | 55 +- runprebuild.sh | 12 +- runprebuild48.bat | 48 -- runprebuild48.sh | 26 - 11 files changed, 406 insertions(+), 1100 deletions(-) delete mode 100644 bin/OpenSim32.exe delete mode 100644 bin/OpenSim32.exe.config delete mode 100755 cleanaot.sh delete mode 100755 makeaot.sh delete mode 100644 runprebuild48.bat delete mode 100755 runprebuild48.sh diff --git a/BUILDING.md b/BUILDING.md index 0fc691f7d3..69d533baab 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -1,16 +1,16 @@ # Building on Windows ## Requirements - For building under Windows, the following is required: + To building under Windows, the following is required: - * [Visual Studio .NET](https://visualstudio.microsoft.com/vs/features/net-development/), version 2015 or later + * [Visual Studio .NET](https://visualstudio.microsoft.com/vs/features/net-development/), version 2019 or later ### Building To create the project files, run ```runprebuild.bat``` -Load the generated OpenSim.sln into Visual Studio .NET and build the solution. +Load the generated OpenSim.sln into Visual Studio and build the solution. Configure, see below @@ -20,27 +20,19 @@ Now just run `OpenSim.exe` from the `bin` folder, and set up the region. ## Requirements - * [Mono > 5.0](https://www.mono-project.com/download/stable/#download-lin) - * On some Linux distributions you may need to install additional packages. - * msbuild or xbuild(deprecated) if still supported by the mono version - * See [the wiki](http://opensimulator.org/wiki/Dependencies) for more information. + * [dotnet 6.0 ADK and DeskTop runtime](https://dotnet.microsoft.com/en-us/download/dotnet/6.0) ### Building To create the project files, run: ```./runprebuild.sh``` - then run ```msbuild``` or ```xbuild``` if xbuild was installed. + then run dotnet build --configuration Release OpenSim.sln Configure. See below run `./opensim.sh` from the `bin` folder, and set up the region -For rebuilding and debugging use the msbuild option switches - * clean: `msbuild /target:clean` - * debug: (default) `msbuild /property:Configuration=Debug` - * release: `msbuild /property:Configuration=Release` - # Configure # ## Standalone mode ## diff --git a/bin/OpenSim32.exe b/bin/OpenSim32.exe deleted file mode 100644 index 74477c0b68bdcfdf8ef6849b680529939c90b3cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5632 zcmeHLU2I%O6+W|ZT*o1fQ<|UVr%X11+O2)P_HGrZ_YV0cjjC#eeE{wBBCzz4?ZBei>GXP1^++T0=w@EzwV=-?|JLwUAFkv z$b8odKd{iRX!i zx?^JJ;|9^^F#he+M8`YnABA(Go(`EFj4yYLwLokJ7%%Pt08hmk`;C!moalz;`JRE1 z@+}WU8kG)pv^>1mJYl&IRID3dN?T8$ceFgwY{yWc12V5@(zg`trW>57{Fuxg5hHq3 zM!@;-_Ec)%0D^f2&&TC+ws>WhNlR$bw?jC-W~tmRguFdByJ(lsKPR{Af?(jgUxN(Fc- zEz%n}NBhwwF1zGm_p`{;ZW?BKs+)eG;5?0__S4G{=_Z>FgWk_1{I|kiR``;F>k7W2 z=+|i$GA9(gt0+IBKeKLl{C&{hCJCRVyMRAS{e$(=d+dRle6R8(%2_|%heu2BkkJa4 zjPKFAjAQgwHTuqxLFh~08Qo6pp}`cR1AyK1Bw#NM0`}9Wf|Cl)D7c{D^9o*9PzO9n zrovxTu&Ll{fJZT_wE1H-_v;FOn!ZgerO{sc8)@`;x(9fS-UU1bXEa2%A23VL0)ClB z0q1BL@Hx5(SXA_{D`?QSK)FS40Q&SR)`KjMP}dfM!YVR)qbRXxmEGqoRzpjiC)+n%&oV1?DKx7y0XA7B3uSVfByg0q3(io9fEiDb2DNjDvusn;#jP(e_VvKd2$+%hQEEfG;PBXGThUNH5V z1VKlx|=cYpoQ`@`>Cd6T+0V?DcY4D1GS;D8+VNsvtXRt`IJ27N~uF% z@$~vt*O}imgxaX34bOeamvYf5-N$H8Yo8DuV{|AU^6c2G8Sq6tbc_w*;et^|>Ip_i zHiDpjZe+y8vEZ9_h~4gbn(Nhwjxsv9O~0*vn9<{{z0C)VK|YqrOb`t+I(;T{c1%o; zP7deB^~!MWtQa4j(8sgGnTgTNM0PA^7}a&$ZHyipjq*iwiP2H*>U^p7-VY@ymDeI- z?|Y)fDwuxV(wkRtLi9@=-s13FS9D9s&5_hiGBd|PzK1&H9xlJtVxjnp=No@N_TBQ8 z+i(Bj^~~k_ccj+bx$;cIbkxgH4ul^d8D)P%_e5FcE{eU}N^jY%+$?WSjF)jR2;CQL zj#jT$qz9k8c08_mr03%j=Mvl5lG-TZyfEi_^P57QFzTHULaSP`enI8@MdEpdeX>DH z)mI!<^brKI5>?Y3Aw^XQUVyC*BG70*K15V>$=Uc2`5|2AxAR1IWU(2yJG*kg)=(k5 z060&pz!p%UU&VL<@M2W0)0**oPILveCPP*P{FYiWn{{d`Pirc2oN+s7 zoCXlhAo4k;Rs}m4?HO3=v=yy<6}D~I_E3|mPY@+rP(Clm^T?H#vnRVqj^v6yyp}RQ zZQmF1F@icCHe9M=RSm@7xo+Fz?%W4EcR^0&e7miOGyibj^Y{W|G=r#o6=MYvG?9~s z_2gPjqD%cTz?{k&)(tPvznDsg0uO%k`>6|?w#6G!p*o$$O_%1vG2AK&pXv0q(#7G4 zH1`ADsp^*Ni0O1w_~{Gh_x0}Uozml~nZtzRPp3oAIp^crwsn8lHVx19-SuGDaP4!t zZ)=UwG`DrfT*sZ2+?r}W7~{NUY@sSpUIxu=KFRwx%^h5&)9IyVM|r5}^?G_FvJiNo zA1pZQ?#J|JEUok~w;z|~@fZ|OycohyQC;!O1}gcQ@IR*2Y+{w8we8^IF+y3vE{cY* zxFz9qTK5;61}ZHt%|mm>Kv{}3uIrXB;-Hj~kwy@ diff --git a/bin/OpenSim32.exe.config b/bin/OpenSim32.exe.config deleted file mode 100644 index a3b2026962..0000000000 --- a/bin/OpenSim32.exe.config +++ /dev/null @@ -1,76 +0,0 @@ - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/bin/opensim.sh b/bin/opensim.sh index aaa9649b65..e81355d076 100755 --- a/bin/opensim.sh +++ b/bin/opensim.sh @@ -1,5 +1,3 @@ #!/bin/sh ulimit -s 1048576 -# next option may improve SGen gc (for opensim only) you may also need to increase nursery size on large regions -#export MONO_GC_PARAMS="minor=split,promotion-age=14" -mono --desktop -O=all OpenSim.exe +dotnet OpenSim.dll diff --git a/cleanaot.sh b/cleanaot.sh deleted file mode 100755 index 907b11de52..0000000000 --- a/cleanaot.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -cd bin -rm Nini.dll.so -rm DotNetOpen*.dll.so -rm Ionic.Zip.dll.so -rm Newtonsoft.Json.dll.so -rm C5.dll.so -rm CSJ2K.dll.so -rm Npgsql.dll.so -rm RestSharp.dll.so -rm Mono*.dll.so -rm MySql*.dll.so -rm OpenMetaverse*.dll.so -rm OpenSim*.dll.so -rm OpenSim*.exe.so -rm Robust*.exe.so -cd .. \ No newline at end of file diff --git a/makeaot.sh b/makeaot.sh deleted file mode 100755 index 91d40fde16..0000000000 --- a/makeaot.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh -cd bin -mono --aot=mcpu=native,bind-to-runtime-version -O=all Nini.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all DotNetOpen*.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all Ionic.Zip.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all Newtonsoft.Json.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all C5.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all CSJ2K.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all Npgsql.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all RestSharp.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all Mono*.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all MySql*.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all OpenMetaverse*.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all OpenSim*.dll -mono --aot=mcpu=native,bind-to-runtime-version -O=all OpenSim*.exe -mono --aot=mcpu=native,bind-to-runtime-version -O=all Robust*.exe -cd .. \ No newline at end of file diff --git a/prebuild.xml b/prebuild.xml index 9b997e0dcf..2d54d5831b 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -1,7 +1,7 @@ - + TRACE;DEBUG @@ -10,54 +10,38 @@ true 4 false - + CA1416,SYSLIB0011,SYSLIB0014 bin true true false false + true + false + false + false - true false true 4 false - + CA1416,SYSLIB0011,SYSLIB0014 bin false true false false + true + false + false + false - - - @@ -71,10 +55,6 @@ ../../bin/ - - - - @@ -95,26 +75,17 @@ ../../bin/ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -139,16 +110,14 @@ ../../../bin/ - - - - - - - - - - + + + + + + + + @@ -171,14 +140,12 @@ ../../../bin/ - - - - - - - - + + + + + + @@ -200,17 +167,13 @@ ../../../../bin/ - - - - - - + + - + @@ -232,15 +195,11 @@ ../../../bin/ - - - - - - - - - + + + + + @@ -261,12 +220,9 @@ ../../../bin/ - - - - - - + + + @@ -291,17 +247,13 @@ ../../bin/ - - - - - - - - + + + + - - + + @@ -322,8 +274,6 @@ ../../../../bin/ - - @@ -349,19 +299,16 @@ ../../../bin/ - - - - - - - - + + + + + @@ -382,18 +329,15 @@ ../../bin/ - - - - - - - + + + + @@ -418,13 +362,11 @@ ../../../../bin/ - - - + @@ -445,14 +387,9 @@ ../../../bin/ - - - - - - - - + + + @@ -463,13 +400,11 @@ - - - - - - - + + + + + @@ -494,22 +429,18 @@ ../../../bin/ - - - - - - - - - + + + + + - - + + @@ -531,14 +462,13 @@ ../../../bin/ - - - + + - - + + @@ -560,18 +490,16 @@ ../../../bin/ - - - - + + - - + + @@ -593,18 +521,16 @@ ../../../bin/ - - - - + + - - + + @@ -626,15 +552,11 @@ ../../../bin/ - - - - - - - - - + + + + + @@ -645,9 +567,9 @@ - - - + + + @@ -669,21 +591,17 @@ ../../../bin/ - - - - - - - + + + - - - + + + @@ -705,9 +623,8 @@ ../../../bin/ - - - + + @@ -716,8 +633,8 @@ - - + + @@ -739,10 +656,8 @@ ../../../bin/ - - - - + + @@ -752,8 +667,8 @@ - - + + @@ -775,9 +690,8 @@ ../../../bin/ - - - + + @@ -785,8 +699,8 @@ - - + + @@ -808,10 +722,9 @@ ../../../bin/ - - - - + + + @@ -819,8 +732,8 @@ - - + + @@ -842,9 +755,8 @@ ../../../bin/ - - - + + @@ -854,8 +766,8 @@ - - + + @@ -877,11 +789,8 @@ ../../../bin/ - - - - - + + @@ -890,8 +799,8 @@ - - + + @@ -913,16 +822,14 @@ ../../../bin/ - - - - + + - - + + @@ -944,9 +851,8 @@ ../../../bin/ - - - + + @@ -954,8 +860,8 @@ - - + + @@ -977,9 +883,8 @@ ../../../bin/ - - - + + @@ -987,8 +892,8 @@ - - + + @@ -1010,10 +915,8 @@ ../../../bin/ - - - - + + @@ -1021,8 +924,8 @@ - - + + @@ -1046,8 +949,6 @@ ../../../bin/ - - @@ -1055,11 +956,11 @@ - - - - - + + + + + @@ -1081,11 +982,8 @@ ../../../bin/ - - - - - + + @@ -1099,8 +997,8 @@ - - + + @@ -1122,17 +1020,16 @@ ../../../bin/ - - - - + + - - + + + @@ -1154,15 +1051,14 @@ ../../../bin/ - - - - - + + + + @@ -1184,8 +1080,6 @@ ../../../bin/ - - @@ -1195,11 +1089,11 @@ - - - - - + + + + + @@ -1221,12 +1115,9 @@ ../../../bin/ - - - - - - + + + @@ -1234,11 +1125,11 @@ - - - - - + + + + + @@ -1262,14 +1153,10 @@ ../../../bin/ - - - - - - - - + + + + @@ -1278,9 +1165,9 @@ - - - + + + @@ -1304,21 +1191,19 @@ ../../bin/ - - - - - + + + - - - - + + + + @@ -1341,18 +1226,16 @@ ../../bin/ - - - - - + + + - - + + @@ -1376,11 +1259,7 @@ ../../../../../bin/ - - - - - + @@ -1420,11 +1299,7 @@ ../../../../../bin/ - - - - - + @@ -1466,21 +1341,17 @@ ../../../bin/ - - - - - + - - - - + + + + - - + + @@ -1506,21 +1377,17 @@ ../../../bin/ - - - - - + - - - - - - + + + + + + @@ -1544,21 +1411,17 @@ ../../../bin/ - - - - - + - - - + + + - - + + @@ -1587,20 +1450,13 @@ ../../../bin/ - - - - - - - - - - - - - - + + + + + + + @@ -1618,18 +1474,18 @@ - - + + - - - + + + - + @@ -1655,19 +1511,14 @@ ../../../bin/ - - - - - - - - - - - - - + + + + + + + + @@ -1684,12 +1535,12 @@ - + - - - + + + @@ -1714,15 +1565,12 @@ ../../../bin/ - - - - + - + @@ -1744,10 +1592,6 @@ ../../../../bin/ - - - - @@ -1772,8 +1616,7 @@ ../../../../bin/ - - + @@ -1807,7 +1650,6 @@ ../../../../bin/ - @@ -1834,7 +1676,6 @@ ../../../../bin/ - @@ -1861,8 +1702,6 @@ ../../../../bin/ - - @@ -1893,8 +1732,6 @@ ../../../../bin/ - - @@ -1927,8 +1764,7 @@ ../../../../bin/ - - + @@ -1964,11 +1800,8 @@ ../../../../bin/ - - - - + @@ -1993,23 +1826,22 @@ ../../../bin/ + Exe ../../../bin/ + Exe ../../../bin/ - - - - - - - - + + + + + @@ -2023,9 +1855,9 @@ - - - + + + @@ -2047,11 +1879,9 @@ ../../../bin/ - - - - - + + + @@ -2059,7 +1889,7 @@ - + @@ -2082,15 +1912,13 @@ ../../../bin/ - - + + - - - + @@ -2113,15 +1941,12 @@ ../../../bin/ - - - - - - - - - + + + + + + @@ -2130,7 +1955,7 @@ - + @@ -2155,10 +1980,6 @@ ../../../../bin/ - - - - @@ -2190,10 +2011,6 @@ ../../../../../../bin/ - - - - @@ -2224,12 +2041,7 @@ ../../../../../../bin/ - - - - - - + @@ -2255,156 +2067,6 @@ - - - - ../../../../../bin/ - - - - - ../../../../../bin/ - - - - ../../../../../bin/ - - - - - - - - - - - - - - - - - - - - - - ../../../../../bin/ - - - - - ../../../../../bin/ - - - - ../../../../../bin/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ../../../../../../bin/ - - - - - ../../../../../../bin/ - - - - ../../../../../../bin/ - - - - - - - - - - - - - - - - - - - - - - - - - - ../../../../bin/ - - - - - ../../../../bin/ - - - - ../../../../bin/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2436,9 +2098,7 @@ - - - + @@ -2466,18 +2126,13 @@ ../../../bin/ - - - - - - - - - - - + + + + + + @@ -2511,18 +2166,13 @@ ../../../bin/ - - - - - - - - - - - + + + + + + @@ -2552,24 +2202,24 @@ ../../../bin/ + Exe ../../../bin/ + Exe ../../../bin/ - - - - + + - - + + @@ -2591,14 +2241,13 @@ ../../../bin/ - - - + + - - + + @@ -2620,11 +2269,9 @@ ../../../bin/ - - - - + + @@ -2634,6 +2281,7 @@ + +--> + + @@ -2887,28 +2520,24 @@ ../../../bin/ - - - - - - - + + + - - - - + + + + - - + + @@ -2930,19 +2559,16 @@ ../../../bin/ - - - - - - - + + + + - - + + @@ -2961,7 +2587,6 @@ ../../../../bin/ - @@ -2993,7 +2618,6 @@ ../../../../bin/ - @@ -3023,13 +2647,10 @@ ../../../bin/ - - - - - - - + + + + @@ -3046,25 +2667,16 @@ - - - + + - - - + + - - + - @@ -3140,14 +2752,10 @@ ../../../bin/ - - - - - - - - + + + + @@ -3165,24 +2773,14 @@ - - - - + + - - - + + - - @@ -3200,8 +2798,6 @@ ../../../../../bin/ - - @@ -3240,8 +2836,6 @@ ../../../../../../bin/ - - @@ -3274,9 +2868,6 @@ ../../../bin/ - - - @@ -3290,24 +2881,17 @@ - - - - - - + + + + + + - + - - @@ -3323,10 +2907,6 @@ - @@ -3340,8 +2920,6 @@ ../../../../../bin/ - - @@ -3373,9 +2951,6 @@ ../../../../../bin/ - - - @@ -3407,16 +2982,13 @@ ../../../bin/ - - - - - - - - - - + + + + + + + @@ -3428,14 +3000,7 @@ - - @@ -3455,17 +3020,13 @@ ../../../bin/ - - - - - - - - - - - + + + + + + + @@ -3495,16 +3056,13 @@ ../../../bin/ - - - - - - - - - - + + + + + + + @@ -3534,12 +3092,9 @@ ../../../bin/ - - - - - - + + + @@ -3547,19 +3102,17 @@ - - - - + + - + - +--> diff --git a/runprebuild.bat b/runprebuild.bat index bdd77a1502..f27a14fc8c 100755 --- a/runprebuild.bat +++ b/runprebuild.bat @@ -1,61 +1,10 @@ @echo OFF -bin\Prebuild.exe /target vs2015 /excludedir = "obj | bin" +bin\Prebuild.exe /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml -setlocal ENABLEEXTENSIONS -set VALUE_NAME=MSBuildToolsPath - -if "%PROCESSOR_ARCHITECTURE%"=="x86" set PROGRAMS=%ProgramFiles% -if defined ProgramFiles(x86) set PROGRAMS=%ProgramFiles(x86)% - -rem Try to find VS2019 -for %%e in (Enterprise Professional Community) do ( - if exist "%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild.exe" ( - - set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild" - goto :found - ) -) - -rem try find vs2017 -for %%e in (Enterprise Professional Community) do ( - if exist "%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\MSBuild.exe" ( - - set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2017\%%e\MSBuild\15.0\Bin\MSBuild" - goto :found - ) -) - -rem We have to use grep or find to locate the correct line, because reg query spits -rem out 4 lines before Windows 7 but 2 lines after Windows 7. -rem We use grep if it's on the path; otherwise we use the built-in find command -rem from Windows. (We must use grep on Cygwin because it overrides the "find" command.) - -for %%X in (grep.exe) do (set FOUNDGREP=%%~$PATH:X) -if defined FOUNDGREP ( - set FINDCMD=grep -) else ( - set FINDCMD=find -) - -rem try vs2015 -FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0" /v %VALUE_NAME% 2^>nul ^| %FINDCMD% "%VALUE_NAME%"`) DO ( - set ValueValue=%%C\msbuild - goto :found -) - -@echo msbuild for at least VS2015 not found, please install a (Community) edition of VS2017 or VS2015 -@echo Not creating compile.bat -if exist "compile.bat" ( - del compile.bat - ) -goto :done - -:found - @echo Found msbuild at %ValueValue% @echo Creating compile.bat rem To compile in debug mode - @echo %ValueValue% opensim.sln > compile.bat + @echo dotnet build --configuration Release OpenSim.sln > compile.bat rem To compile in release mode comment line (add rem to start) above and uncomment next (remove rem) rem @echo %ValueValue% /p:Configuration=Release opensim.sln > compile.bat :done diff --git a/runprebuild.sh b/runprebuild.sh index 3f81df390c..7a4e81dd5e 100755 --- a/runprebuild.sh +++ b/runprebuild.sh @@ -2,26 +2,24 @@ case "$1" in - 'clean') + 'clean') + mono bin/Prebuild.exe /file prebuild.xml /clean - mono bin/Prebuild.exe /clean ;; 'autoclean') - echo y|mono bin/Prebuild.exe /clean + echo y|mono bin/Prebuild.exe /file prebuild.xml /clean ;; + *) - mono bin/Prebuild.exe /target nant - mono bin/Prebuild.exe /target vs2015 /excludedir = "obj | bin" + mono bin/Prebuild.exe /target vs2022 /targetframework net6_0 /excludedir = "obj | bin" /file prebuild.xml ;; esac - rm -fr bin/addin-db-002 - diff --git a/runprebuild48.bat b/runprebuild48.bat deleted file mode 100644 index 151dd90f80..0000000000 --- a/runprebuild48.bat +++ /dev/null @@ -1,48 +0,0 @@ -@echo OFF - -bin\Prebuild.exe /target vs2019 /targetframework v4_8 /excludedir = "obj | bin" - -setlocal ENABLEEXTENSIONS -set VALUE_NAME=MSBuildToolsPath - -if "%PROCESSOR_ARCHITECTURE%"=="x86" set PROGRAMS=%ProgramFiles% -if defined ProgramFiles(x86) set PROGRAMS=%ProgramFiles(x86)% - -set PROGRAMS64 = %PROGRAMS% -if defined ProgramFiles set PROGRAMS64=%ProgramFiles% - - -rem Try to find VS2019/22 -for %%e in (Community Enterprise Professional) do ( - if exist "%PROGRAMS64%\Microsoft Visual Studio\2022\%%e\MSBuild\Current\Bin\MSBuild.exe" ( - - set ValueValue="%PROGRAMS64%\Microsoft Visual Studio\2022\%%e\MSBuild\Current\Bin\MSBuild" - goto :found - ) - if exist "%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild.exe" ( - - set ValueValue="%PROGRAMS%\Microsoft Visual Studio\2019\%%e\MSBuild\Current\Bin\MSBuild" - goto :found - ) -) - - -@echo msbuild for at least VS2019 not found, please install a (Community) edition of VS2019 -@echo Not creating compile.bat -if exist "compile.bat" ( - del compile.bat - ) -goto :done - -:found - @echo Found msbuild at %ValueValue% - @echo Creating compile.bat -rem To compile in debug mode - @echo %ValueValue% opensim.sln > compile.bat -rem To compile in release mode comment line (add rem to start) above and uncomment next (remove rem) -rem @echo %ValueValue% /p:Configuration=Release opensim.sln > compile.bat -:done -if exist "bin\addin-db-002" ( - del /F/Q/S bin\addin-db-002 > NUL - rmdir /Q/S bin\addin-db-002 - ) \ No newline at end of file diff --git a/runprebuild48.sh b/runprebuild48.sh deleted file mode 100755 index bb87334d8c..0000000000 --- a/runprebuild48.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -case "$1" in - - 'clean') - - mono bin/Prebuild.exe /clean - - ;; - - - 'autoclean') - - echo y|mono bin/Prebuild.exe /clean - - ;; - - - - *) - - mono bin/Prebuild.exe /target vs2019 /targetframework v4_8 /excludedir = "obj | bin" - - ;; - -esac