From e3a73aa9af7a6fbdb9c77b03552873714c880d85 Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 10:39:34 -0500 Subject: [PATCH 1/6] e - Ignore VStudio IDE temp / local folder. --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 0cc2124b..4086144d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.iml .idea/ +.vs/ From 04b7243347d287f52ead0474f2f4c4db61790d79 Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 10:45:43 -0500 Subject: [PATCH 2/6] E - Update to .Net 5 runtime. --- expensereport-csharp/expensereport-csharp.sln | 13 +++++++++++-- .../expensereport-csharp.csproj | 4 ++-- .../expensereport-ut/expensereport-ut.csproj | 6 +++--- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/expensereport-csharp/expensereport-csharp.sln b/expensereport-csharp/expensereport-csharp.sln index 610ec3b8..d148071f 100644 --- a/expensereport-csharp/expensereport-csharp.sln +++ b/expensereport-csharp/expensereport-csharp.sln @@ -1,8 +1,11 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "expensereport-csharp", "expensereport-csharp\expensereport-csharp.csproj", "{4D670DD0-5E29-49CE-AFE9-F5C7ACDB89D0}" +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31729.503 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "expensereport-csharp", "expensereport-csharp\expensereport-csharp.csproj", "{4D670DD0-5E29-49CE-AFE9-F5C7ACDB89D0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "expensereport-ut", "expensereport-ut\expensereport-ut.csproj", "{07C2B482-2F0F-4B66-9F09-9D9505C9466E}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "expensereport-ut", "expensereport-ut\expensereport-ut.csproj", "{07C2B482-2F0F-4B66-9F09-9D9505C9466E}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -19,4 +22,10 @@ Global {07C2B482-2F0F-4B66-9F09-9D9505C9466E}.Release|Any CPU.ActiveCfg = Release|Any CPU {07C2B482-2F0F-4B66-9F09-9D9505C9466E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D8E57AC7-4260-4074-A137-17A1F45B7713} + EndGlobalSection EndGlobal diff --git a/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj b/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj index bbca9dbd..454a9926 100644 --- a/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj +++ b/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj @@ -1,8 +1,8 @@ - netcoreapp2.2 - expensereport_csharp + net5.0 + expensereport_csharp diff --git a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj index 89b9b0d1..08db645f 100644 --- a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj +++ b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj @@ -1,9 +1,9 @@ - + - netcoreapp2.2 + net5.0 - false + false From 0461cab44b5ed6650c360128f876e97dcd33fed8 Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 10:54:20 -0500 Subject: [PATCH 3/6] E - Use nullable refernce types (default to non-null). --- .../expensereport-csharp/expensereport-csharp.csproj | 1 + expensereport-csharp/expensereport-ut/expensereport-ut.csproj | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj b/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj index 454a9926..14f46c1b 100644 --- a/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj +++ b/expensereport-csharp/expensereport-csharp/expensereport-csharp.csproj @@ -2,6 +2,7 @@ net5.0 + Enable expensereport_csharp diff --git a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj index 08db645f..e8a7a858 100644 --- a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj +++ b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj @@ -4,7 +4,8 @@ net5.0 false - + Enable + From eb71318a48dca57c9da04ecdd33773944a2e47cc Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 10:57:38 -0500 Subject: [PATCH 4/6] F - Switch to XUnit. --- .../expensereport-ut/UnitTest1.cs | 16 ++++++---------- .../expensereport-ut/expensereport-ut.csproj | 9 ++++++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/expensereport-csharp/expensereport-ut/UnitTest1.cs b/expensereport-csharp/expensereport-ut/UnitTest1.cs index 794c4081..6fe93ca4 100644 --- a/expensereport-csharp/expensereport-ut/UnitTest1.cs +++ b/expensereport-csharp/expensereport-ut/UnitTest1.cs @@ -1,18 +1,14 @@ -using NUnit.Framework; +using System; +using Xunit; namespace Tests { - public class Tests + public class UnitTest1 { - [SetUp] - public void Setup() - { - } - - [Test] + [Fact] public void Test1() { - Assert.Pass(); + } } -} \ No newline at end of file +} diff --git a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj index e8a7a858..89428564 100644 --- a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj +++ b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj @@ -8,9 +8,12 @@ - - - + + + + runtime; build; native; contentfiles; analyzers; buildtransitive + all + From 81f220b8b7f56980710409eae7e2f05ffd23cbb1 Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 10:58:43 -0500 Subject: [PATCH 5/6] t - Test project now depends on main project. --- expensereport-csharp/expensereport-ut/expensereport-ut.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj index 89428564..091b713a 100644 --- a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj +++ b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj @@ -16,4 +16,8 @@ + + + + From 2d5cf50544ff319f490872e65d79f87f436e65da Mon Sep 17 00:00:00 2001 From: arlobelshee Date: Tue, 30 Nov 2021 11:04:27 -0500 Subject: [PATCH 6/6] e - Update to latest version of the MS Test SDK bindings. --- expensereport-csharp/expensereport-ut/expensereport-ut.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj index 091b713a..0c408bce 100644 --- a/expensereport-csharp/expensereport-ut/expensereport-ut.csproj +++ b/expensereport-csharp/expensereport-ut/expensereport-ut.csproj @@ -8,7 +8,7 @@ - + runtime; build; native; contentfiles; analyzers; buildtransitive