diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8070df4..a306501 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -14,16 +14,16 @@ jobs:
runs-on: windows-latest
name: Dotnet build
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v5
- run: |
git fetch --prune --unshallow
- run: |
git branch master origin/master
if: github.event_name != 'push' || (github.event_name == 'push' && github.ref != 'refs/heads/master')
- name: Setup dotnet
- uses: actions/setup-dotnet@v1
+ uses: actions/setup-dotnet@v5
with:
- dotnet-version: "2.2.103"
+ dotnet-version: 10.*
- name: Build
run: .\build.ps1
shell: pwsh
@@ -32,7 +32,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NUGET_TOKEN: ${{ secrets.NugetKey }}
- name: Add artifacts
- uses: actions/upload-artifact@v1
+ uses: actions/upload-artifact@v4
with:
name: ${{ steps.build.outputs.nupkg_name }}
path: ${{ steps.build.outputs.nupkg }}
diff --git a/.gitignore b/.gitignore
index 99c0218..586e545 100644
--- a/.gitignore
+++ b/.gitignore
@@ -112,3 +112,4 @@ Backup*/
UpgradeLog*.XML
/src/.vs/Slack.Webhooks/v15/Server/sqlite3
/.vs
+.idea/
\ No newline at end of file
diff --git a/build.cake b/build.cake
index 78e9018..d3e9072 100644
--- a/build.cake
+++ b/build.cake
@@ -140,20 +140,8 @@ Task("DeployNuGet")
});
Task("Test")
- .IsDependentOn("TestFramework")
.IsDependentOn("TestCore");
-Task("TestFramework")
- .IsDependentOn("Build")
- .Does(() =>
-{
- var testAssemblies = GetFiles($"./src/**/bin/{configuration}/net45/*.Tests.dll");
- XUnit2(testAssemblies, new XUnit2Settings {
- Parallelism = ParallelismOption.All,
- NoAppDomain = true
- });
-});
-
Task("TestCore")
.IsDependentOn("Build")
.Does(() =>
@@ -167,7 +155,7 @@ Task("TestCore")
DotNetCoreTest("./src/Slack.Webhooks.Tests/Slack.Webhooks.Tests.csproj", new DotNetCoreTestSettings
{
NoBuild = true,
- Framework = "netcoreapp2",
+ Framework = "net10.0",
Configuration = configuration
}, coverletSettings);
});
diff --git a/src/Slack.Webhooks.Tests/Slack.Webhooks.Tests.csproj b/src/Slack.Webhooks.Tests/Slack.Webhooks.Tests.csproj
index 6ae39a5..34d693e 100644
--- a/src/Slack.Webhooks.Tests/Slack.Webhooks.Tests.csproj
+++ b/src/Slack.Webhooks.Tests/Slack.Webhooks.Tests.csproj
@@ -1,49 +1,30 @@
-
- net45;netcoreapp2
- False
- False
-
-
-
-
-
-
-
-
-
- ..\packages\System.Runtime.InteropServices.RuntimeInformation.4.3.0\lib\net45\System.Runtime.InteropServices.RuntimeInformation.dll
-
-
-
-
-
-
-
-
-
-
-
-
- {53751b1b-a63e-4e4f-988c-bc783e68b15f}
- Slack.Webhooks
-
-
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
+
+ net10.0
+ False
+ False
+
+
+
+
+
+
+ {53751b1b-a63e-4e4f-988c-bc783e68b15f}
+ Slack.Webhooks
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
\ No newline at end of file
diff --git a/src/Slack.Webhooks.Tests/packages.config b/src/Slack.Webhooks.Tests/packages.config
deleted file mode 100644
index c274243..0000000
--- a/src/Slack.Webhooks.Tests/packages.config
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Slack.Webhooks/Slack.Webhooks.csproj b/src/Slack.Webhooks/Slack.Webhooks.csproj
index ccc484b..022c66a 100644
--- a/src/Slack.Webhooks/Slack.Webhooks.csproj
+++ b/src/Slack.Webhooks/Slack.Webhooks.csproj
@@ -1,26 +1,15 @@
-
- net45;netstandard1.3
- False
- False
- https://github.com/mrb0nj/Slack.Webhooks.git
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ netstandard2.0
+ False
+ False
+ https://github.com/mrb0nj/Slack.Webhooks.git
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Slack.Webhooks/Slack.Webhooks.nuspec b/src/Slack.Webhooks/Slack.Webhooks.nuspec
index f31e413..31fc6ab 100644
--- a/src/Slack.Webhooks/Slack.Webhooks.nuspec
+++ b/src/Slack.Webhooks/Slack.Webhooks.nuspec
@@ -33,30 +33,15 @@
]]>
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+