From 8187f7f6579e2870773b7e78ebd268992295c2ea Mon Sep 17 00:00:00 2001 From: Rolf Huisman Date: Wed, 16 Oct 2024 21:11:14 +0200 Subject: [PATCH 1/3] Update to .Net 8 and new version Q sharp --- sample/Sample.csproj | 9 +++++++-- src/ChpSimulator.csproj | 8 ++++---- test/ChpSimulator.Test.csproj | 17 +++++++++++------ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/sample/Sample.csproj b/sample/Sample.csproj index 6a3b4d3..e6ef433 100644 --- a/sample/Sample.csproj +++ b/sample/Sample.csproj @@ -1,8 +1,8 @@ - + Exe - netcoreapp3.1 + net8.0 QSharpCommunity.Simulators.Chp.StabilizerSimulator AnyCPU;x64 @@ -11,4 +11,9 @@ + + + + + \ No newline at end of file diff --git a/src/ChpSimulator.csproj b/src/ChpSimulator.csproj index 87da217..e3b64d8 100644 --- a/src/ChpSimulator.csproj +++ b/src/ChpSimulator.csproj @@ -1,7 +1,7 @@ - + - netstandard2.1 + net8.0 AnyCPU;x64 @@ -14,8 +14,8 @@ - - + + diff --git a/test/ChpSimulator.Test.csproj b/test/ChpSimulator.Test.csproj index 7a5456a..1daedcb 100644 --- a/test/ChpSimulator.Test.csproj +++ b/test/ChpSimulator.Test.csproj @@ -1,16 +1,16 @@ - + - netcoreapp3.1 + net8.0 false AnyCPU;x64 - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -21,4 +21,9 @@ + + + + + From 912445e3092e6f10cf41bdc6d1f8f985104ac947 Mon Sep 17 00:00:00 2001 From: Rolf Huisman Date: Wed, 16 Oct 2024 22:13:08 +0200 Subject: [PATCH 2/3] Migrate to .net 8.0 --- .github/workflows/publish.yml | 7 +++---- .github/workflows/test.yml | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 001e62d..d7cf7d4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,11 +20,10 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 # https://stackoverflow.com/questions/57889719/how-to-push-nuget-package-in-github-actions - - name: "Setup .NET Core @ Latest" - uses: actions/setup-dotnet@v1 + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: - dotnet-version: '3.1.101' #https://github.com/NuGet/Home/issues/3406 Went to a patch version that seems to work - source-url: https://nuget.pkg.github.com/qsharp-community/index.json + dotnet-version: '8.0.x' env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index edb1bdb..6302cc0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: - dotnet-version: 3.1.101 + dotnet-version: '8.0.x' - name: Install dependencies run: dotnet restore - name: Build From 98e8e89811371064717d55cf9d3acb86ed18b0fb Mon Sep 17 00:00:00 2001 From: Rolf Huisman Date: Wed, 16 Oct 2024 22:20:43 +0200 Subject: [PATCH 3/3] Put back accidental remove --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d7cf7d4..8236ef6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,6 +24,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' + source-url: https://nuget.pkg.github.com/qsharp-community/index.json env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}