From e67b68aa20254621fc2d5789cf78ed856b5d1425 Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 13 Oct 2024 20:25:25 +0800 Subject: [PATCH] [O] Refactor AquaMai.csproj to SDK style (#59) * SDK style * Update CI * remove extra code * [F] CI build and add CI for PR * [F] Assembly version info * [F] Do not generate satellite assembly for locale --------- Co-authored-by: Clansty --- .github/workflows/aquamai.yaml | 5 +- AquaMai/App.config | 18 ----- AquaMai/AquaMai.csproj | 128 +++++++-------------------------- AquaMai/packages.config | 6 -- 4 files changed, 28 insertions(+), 129 deletions(-) delete mode 100644 AquaMai/App.config delete mode 100644 AquaMai/packages.config diff --git a/.github/workflows/aquamai.yaml b/.github/workflows/aquamai.yaml index b263b888..1b5ee84e 100644 --- a/.github/workflows/aquamai.yaml +++ b/.github/workflows/aquamai.yaml @@ -29,14 +29,12 @@ jobs: min-retry-interval: 1 max-retry-interval: 5 - - uses: microsoft/setup-msbuild@v2 - - name: Build AquaMai shell: cmd run: | copy /y build-assets\${{ matrix.target }}\* AquaMai\Libs cd AquaMai - msbuild /t:Restore,Build /p:Configuration=Release /p:DefineConstants="${{ matrix.target }}" /p:RestorePackagesConfig=true + dotnet build -c Release /p:DefineConstants="${{ matrix.target }}" - uses: actions/upload-artifact@v4 with: @@ -44,6 +42,7 @@ jobs: path: AquaMai\Output\AquaMai.dll - name: Send to Telegram + if: github.event_name != 'pull_request' run: | $Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" $Form = @{ diff --git a/AquaMai/App.config b/AquaMai/App.config deleted file mode 100644 index 1f101c88..00000000 --- a/AquaMai/App.config +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/AquaMai/AquaMai.csproj b/AquaMai/AquaMai.csproj index 1721ae26..c5f711bd 100644 --- a/AquaMai/AquaMai.csproj +++ b/AquaMai/AquaMai.csproj @@ -1,46 +1,44 @@ - - - - + + Release AnyCPU {788BC472-59F7-46F6-B760-65C18BA74389} Library - Properties AquaMai AquaMai - v4.7.2 + net472 512 true - 12 + x64 + $(SolutionDir)Output\ + false + false + false + false None true - $(SolutionDir)Output\ - - prompt 4 true false - false - x64 + - Output\ SDGA145 true true x64 + - bin\Debug\ DEBUG + Libs\0Harmony.dll @@ -284,85 +282,7 @@ Libs\UnityEngine.XRModule.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - True - True - Locale.resx - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -374,16 +294,20 @@ Locale.resx + - - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. - - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + + + all + + + + diff --git a/AquaMai/packages.config b/AquaMai/packages.config deleted file mode 100644 index 8addfc70..00000000 --- a/AquaMai/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file