diff --git a/.github/workflows/build-process.yml b/.github/workflows/build-process.yml index 5f0212a65..bf4a4929f 100644 --- a/.github/workflows/build-process.yml +++ b/.github/workflows/build-process.yml @@ -72,7 +72,7 @@ jobs: name: "Build/Test Snippets" runs-on: ubuntu-latest env: - SOLUTION_LOCATION: "./docs/snippets/Snippets.sln" + SOLUTION_LOCATION: "./docs/snippets/Snippets.slnx" steps: - name: Check out the code uses: actions/checkout@v6 diff --git a/docs/snippets/Snippets.NUnit/AttributeExamples.cs b/docs/snippets/Snippets.NUnit/AttributeExamples.cs index f9a44f84c..458eb66cd 100644 --- a/docs/snippets/Snippets.NUnit/AttributeExamples.cs +++ b/docs/snippets/Snippets.NUnit/AttributeExamples.cs @@ -241,10 +241,11 @@ public void AnotherManualTest() } } +[Explicit("This code doesnt work on net, only netframework")] [TestFixture] public class TimeoutAttributeExamples { -#pragma warning disable CS0618 // Type or member is obsolete +#pragma warning disable CS0618 // Type or member is obsolete[Explicit("This doesnt work on .net, only .netframework")] #region TimeoutExample [Test] [Timeout(1000)] // 1 second timeout @@ -257,6 +258,7 @@ public void FastTest() #pragma warning restore CS0618 // Type or member is obsolete #pragma warning disable CS0618 // Type or member is obsolete + #region TimeoutWithAsyncExample [Test] [Timeout(2000)] // 2 second timeout diff --git a/docs/snippets/Snippets.NUnit/Snippets.NUnit.csproj b/docs/snippets/Snippets.NUnit/Snippets.NUnit.csproj index e5412f5ec..0f4fedc74 100644 --- a/docs/snippets/Snippets.NUnit/Snippets.NUnit.csproj +++ b/docs/snippets/Snippets.NUnit/Snippets.NUnit.csproj @@ -10,7 +10,7 @@ - + all diff --git a/docs/snippets/Snippets.NUnitLite/Snippets.NUnitLite.csproj b/docs/snippets/Snippets.NUnitLite/Snippets.NUnitLite.csproj index f336c2b8e..e4d39b1ea 100644 --- a/docs/snippets/Snippets.NUnitLite/Snippets.NUnitLite.csproj +++ b/docs/snippets/Snippets.NUnitLite/Snippets.NUnitLite.csproj @@ -13,14 +13,14 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive all - + diff --git a/docs/snippets/Snippets.sln b/docs/snippets/Snippets.sln deleted file mode 100644 index 72ef0087a..000000000 --- a/docs/snippets/Snippets.sln +++ /dev/null @@ -1,37 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.0.31903.59 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Snippets.NUnit", "Snippets.NUnit\Snippets.NUnit.csproj", "{759AE765-B66A-4585-886C-4A6F35143C92}" -EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{6E5F0945-D524-45AB-AF2C-EFEB7B9CDB97}" - ProjectSection(SolutionItems) = preProject - naming.runsettings = naming.runsettings - nuget.config = nuget.config - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Snippets.NUnitLite", "Snippets.NUnitLite\Snippets.NUnitLite.csproj", "{1C1F1558-1308-4AED-8F1D-6060F78C7697}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {759AE765-B66A-4585-886C-4A6F35143C92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {759AE765-B66A-4585-886C-4A6F35143C92}.Debug|Any CPU.Build.0 = Debug|Any CPU - {759AE765-B66A-4585-886C-4A6F35143C92}.Release|Any CPU.ActiveCfg = Release|Any CPU - {759AE765-B66A-4585-886C-4A6F35143C92}.Release|Any CPU.Build.0 = Release|Any CPU - {1C1F1558-1308-4AED-8F1D-6060F78C7697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1C1F1558-1308-4AED-8F1D-6060F78C7697}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1C1F1558-1308-4AED-8F1D-6060F78C7697}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1C1F1558-1308-4AED-8F1D-6060F78C7697}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {46B3FF2B-C9B8-495E-8EF6-D3FEA8477ABF} - EndGlobalSection -EndGlobal diff --git a/docs/snippets/Snippets.slnx b/docs/snippets/Snippets.slnx new file mode 100644 index 000000000..8d1e9386f --- /dev/null +++ b/docs/snippets/Snippets.slnx @@ -0,0 +1,8 @@ + + + + + + + +