From 7324b0f8f1136fc365eeb6c2ab588828dc2d4f81 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 Sep 2020 13:39:58 +0200 Subject: [PATCH] Fixed unit tests netstandard compatibility The problem was that .net framework project (UnitTests) needs to use the PackageReference style when depending on the .net standard 2 project (CA_DataUploaderLib). More info at https://github.com/dotnet/standard/issues/481. --- UnitTests/UnitTests.csproj | 25 +++++-------------------- UnitTests/app.config | 8 -------- UnitTests/packages.config | 6 ------ 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 UnitTests/packages.config diff --git a/UnitTests/UnitTests.csproj b/UnitTests/UnitTests.csproj index a3eecd0a..0f6a13ed 100644 --- a/UnitTests/UnitTests.csproj +++ b/UnitTests/UnitTests.csproj @@ -1,6 +1,5 @@  - Debug AnyCPU @@ -20,6 +19,8 @@ + + true true @@ -39,17 +40,11 @@ 4 - - ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - + + + - - ..\packages\System.IO.Ports.4.7.0\lib\net461\System.IO.Ports.dll - @@ -72,16 +67,6 @@ - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file diff --git a/UnitTests/app.config b/UnitTests/app.config index 6528a8f0..99ddf3e0 100644 --- a/UnitTests/app.config +++ b/UnitTests/app.config @@ -1,11 +1,3 @@  - - - - - - - - \ No newline at end of file diff --git a/UnitTests/packages.config b/UnitTests/packages.config deleted file mode 100644 index 4e98b0bd..00000000 --- a/UnitTests/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file