diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc9e8f4..86086a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,8 +10,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Build with dotnet run: dotnet build --configuration Release diff --git a/.github/workflows/dfinity_publish.yml b/.github/workflows/dfinity_publish.yml index c35c115..1460863 100644 --- a/.github/workflows/dfinity_publish.yml +++ b/.github/workflows/dfinity_publish.yml @@ -23,9 +23,9 @@ jobs: env: APP_VERSION: ${{ env.GITHUB_REF_SLUG }}-$(git rev-parse --short "$GITHUB_SHA") - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x include-prerelease: true - name: Build with dotnet run: dotnet build --configuration Release diff --git a/.github/workflows/githubpages.yml b/.github/workflows/githubpages.yml index 8a0ded7..177844f 100644 --- a/.github/workflows/githubpages.yml +++ b/.github/workflows/githubpages.yml @@ -24,9 +24,9 @@ jobs: env: APP_VERSION: ${{ env.GITHUB_REF_SLUG }}-$(git rev-parse --short "$GITHUB_SHA") - name: Setup dotnet - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Build with dotnet run: dotnet build --configuration Release - name: Publish Website diff --git a/ShareServer/ShareServer.csproj b/ShareServer/ShareServer.csproj index 629e0d3..07242a9 100644 --- a/ShareServer/ShareServer.csproj +++ b/ShareServer/ShareServer.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 diff --git a/SkyDocs.Blazor/ShareService.cs b/SkyDocs.Blazor/ShareService.cs index 4a6fcf7..9cc6bd2 100644 --- a/SkyDocs.Blazor/ShareService.cs +++ b/SkyDocs.Blazor/ShareService.cs @@ -31,7 +31,7 @@ public string GetShareUrl(DocumentSummary sum, bool readOnly) var pubString = BitConverter.ToString(sum.PublicKey).Replace("-", ""); var privString = sum.PrivateKey != null ? BitConverter.ToString(sum.PrivateKey).Replace("-", "") : null; - var query = new Dictionary { + var query = new Dictionary { { "id", sum.Id.ToString() }, { "pub", pubString }, { "c", sum.ContentSeed }, diff --git a/SkyDocs.Blazor/SkyDocs.Blazor.csproj b/SkyDocs.Blazor/SkyDocs.Blazor.csproj index ea4f15d..f984b7b 100644 --- a/SkyDocs.Blazor/SkyDocs.Blazor.csproj +++ b/SkyDocs.Blazor/SkyDocs.Blazor.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable nullable;CS8600;CS8601;CS8602;CS8603;CS8625;CS8613;CS8610 3.0.0 @@ -19,15 +19,16 @@ - - - + + + + - + - - - + + + diff --git a/cloudflarebuild.sh b/cloudflarebuild.sh index 4020763..a637130 100755 --- a/cloudflarebuild.sh +++ b/cloudflarebuild.sh @@ -1,6 +1,6 @@ #!/bin/sh curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh chmod +x dotnet-install.sh -./dotnet-install.sh -c 7.0 -InstallDir ./dotnet +./dotnet-install.sh -c 8.0 -InstallDir ./dotnet ./dotnet/dotnet --version ./dotnet/dotnet publish SkyDocs.Blazor -c Release -o output \ No newline at end of file