diff --git a/.github/workflows/PR.yml b/.github/workflows/PR.yml index c0088db..c9f109b 100644 --- a/.github/workflows/PR.yml +++ b/.github/workflows/PR.yml @@ -1,6 +1,7 @@ on: pull_request: branches: [ master ] + jobs: build: strategy: @@ -14,14 +15,14 @@ jobs: with: fetch-depth: 0 - - name: Install .NET Core - uses: actions/setup-dotnet@77a48bbb85cd3809790223e895ba4b6cbc110fe8 + - name: Install .NET SDK + uses: actions/setup-dotnet@v3 with: - dotnet-version: 5.0.x + dotnet-version: '8.0.x' - name: Build run: dotnet build - name: Test + if: runner.os == 'Windows' run: dotnet test - diff --git a/src/DesktopAnalytics/Analytics.cs b/src/DesktopAnalytics/Analytics.cs index ad67489..adf58ad 100644 --- a/src/DesktopAnalytics/Analytics.cs +++ b/src/DesktopAnalytics/Analytics.cs @@ -10,6 +10,7 @@ using System.Net; using System.Reflection; using System.Runtime.InteropServices; +using System.Threading; using System.Xml.Linq; using System.Xml.XPath; using JetBrains.Annotations; @@ -172,9 +173,23 @@ public Analytics(string apiSecret, UserInfo userInfo, Dictionary