From e08232e69da54122d822491d970577df615b0ad9 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:11:45 +0200
Subject: [PATCH 01/18] Use MSTest.SDK

https://aka.ms/mstest/sdk
---
 global.json                                | 3 +++
 tests/unit/32bit/CopyOnWriteTests32.csproj | 2 +-
 tests/unit/64bit/CopyOnWriteTests.csproj   | 2 +-
 tests/unit/CopyOnWriteTests.props          | 6 ------
 4 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/global.json b/global.json
index 17c0c8e..5e4650c 100644
--- a/global.json
+++ b/global.json
@@ -2,5 +2,8 @@
   "sdk": {
     "version": "8.0.101",
     "rollForward": "latestMinor"
+  },
+  "msbuild-sdks": {
+    "MSTest.Sdk": "3.6.0"
   }
 }
diff --git a/tests/unit/32bit/CopyOnWriteTests32.csproj b/tests/unit/32bit/CopyOnWriteTests32.csproj
index a73dafa..5f07713 100644
--- a/tests/unit/32bit/CopyOnWriteTests32.csproj
+++ b/tests/unit/32bit/CopyOnWriteTests32.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="MSTest.Sdk">
 
   <Import Project="../CopyOnWriteTests.props"/>
 
diff --git a/tests/unit/64bit/CopyOnWriteTests.csproj b/tests/unit/64bit/CopyOnWriteTests.csproj
index 190dcfb..ccc1479 100644
--- a/tests/unit/64bit/CopyOnWriteTests.csproj
+++ b/tests/unit/64bit/CopyOnWriteTests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="MSTest.Sdk">
 
   <Import Project="../CopyOnWriteTests.props" />
 
diff --git a/tests/unit/CopyOnWriteTests.props b/tests/unit/CopyOnWriteTests.props
index 292331c..7643eea 100644
--- a/tests/unit/CopyOnWriteTests.props
+++ b/tests/unit/CopyOnWriteTests.props
@@ -5,12 +5,6 @@
     <TargetFramework>net8.0</TargetFramework>
   </PropertyGroup>
 
-  <ItemGroup>
-    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
-    <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
-    <PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
-  </ItemGroup>
-
   <ItemGroup>
     <Compile Include="../*.cs" />
     <Compile Include="../Windows/*.cs" />

From b697ab611bbf8be2b2ea501a67bf772de5b3577d Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:33:54 +0200
Subject: [PATCH 02/18] no-build

---
 .github/workflows/CI.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index ed035ae..f115e3f 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --no-restore
+          dotnet test --no-build
         shell: cmd

From 101b8338061c3c11956de7aa1e903839d050b031 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:43:26 +0200
Subject: [PATCH 03/18] force restore on test

---
 .github/workflows/CI.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index f115e3f..dbe61a9 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --no-build
+          dotnet test
         shell: cmd

From c5e197a8a74413ffa0e28463555c36cc927f4f83 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 15:28:32 +0200
Subject: [PATCH 04/18] Set env variable

---
 .github/workflows/CI.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index dbe61a9..48fd0ea 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,6 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test
+          set DOTNET_HOST_PATH=%DOTNET_INSTALL_DIR%\dotnet.exe
+          dotnet test --no-restore
         shell: cmd

From 46b0a66f3284f866dadd8653ef11e098f13d2a36 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 15:48:11 +0200
Subject: [PATCH 05/18] release

---
 .github/workflows/CI.yaml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 48fd0ea..8333694 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,6 +41,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          set DOTNET_HOST_PATH=%DOTNET_INSTALL_DIR%\dotnet.exe
-          dotnet test --no-restore
+          dotnet test --configuration Release --no-build
         shell: cmd

From 89248210aefbd929709d5bf86ad3a40c13fe3cac Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 23 Sep 2024 16:01:41 +0200
Subject: [PATCH 06/18] v4

---
 .github/workflows/CI.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 8333694..41db4c8 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -16,7 +16,7 @@ jobs:
     steps:
       - uses: actions/checkout@v2
       - name: Setup .NET SDK
-        uses: actions/setup-dotnet@v1
+        uses: actions/setup-dotnet@v4
         # No "with: dotnet-version" specified -> use global.json
       - run: dotnet restore
       - run: dotnet build --configuration Release --no-restore

From b3325ffcdf6b1c9d40157e94cc4af34721bdb499 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Tue, 24 Sep 2024 08:35:24 +0200
Subject: [PATCH 07/18] BL

---
 .github/workflows/CI.yaml                  | 2 +-
 tests/unit/32bit/CopyOnWriteTests32.csproj | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 41db4c8..1d6ff9f 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --configuration Release --no-build
+          dotnet test --configuration Release --no-build /bl
         shell: cmd
diff --git a/tests/unit/32bit/CopyOnWriteTests32.csproj b/tests/unit/32bit/CopyOnWriteTests32.csproj
index 5f07713..92eabdb 100644
--- a/tests/unit/32bit/CopyOnWriteTests32.csproj
+++ b/tests/unit/32bit/CopyOnWriteTests32.csproj
@@ -4,7 +4,7 @@
 
   <PropertyGroup>
     <AssemblyName>Microsoft.CopyOnWrite.Tests.32bit</AssemblyName>
-    <PlatformTarget>x86</PlatformTarget>
+    <Platform>x86</Platform>
   </PropertyGroup>
 
 </Project>

From f8cbaa16743f99e4388675f9ff8c703bed748dbf Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Wed, 25 Sep 2024 08:23:08 +0200
Subject: [PATCH 08/18] Consolidate tests into one project

---
 .github/workflows/CI.yaml                  |  2 +-
 CopyOnWrite.sln                            |  8 +-------
 tests/unit/32bit/CopyOnWriteTests32.csproj | 10 ----------
 tests/unit/64bit/CopyOnWriteTests.csproj   |  9 ---------
 tests/unit/CopyOnWriteTests.csproj         | 15 +++++++++++++++
 tests/unit/CopyOnWriteTests.props          | 20 --------------------
 6 files changed, 17 insertions(+), 47 deletions(-)
 delete mode 100644 tests/unit/32bit/CopyOnWriteTests32.csproj
 delete mode 100644 tests/unit/64bit/CopyOnWriteTests.csproj
 create mode 100644 tests/unit/CopyOnWriteTests.csproj
 delete mode 100644 tests/unit/CopyOnWriteTests.props

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 1d6ff9f..41db4c8 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --configuration Release --no-build /bl
+          dotnet test --configuration Release --no-build
         shell: cmd
diff --git a/CopyOnWrite.sln b/CopyOnWrite.sln
index 6aa8567..dbeb8c4 100644
--- a/CopyOnWrite.sln
+++ b/CopyOnWrite.sln
@@ -5,12 +5,10 @@ VisualStudioVersion = 16.0.31424.327
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWrite", "lib\CopyOnWrite.csproj", "{B59E2C21-24B9-4517-A0E1-BB562C61CCBE}"
 EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests", "tests\unit\64bit\CopyOnWriteTests.csproj", "{0274ECCA-90A8-49C9-8A2E-8E9E24DAE0F9}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests", "tests\unit\CopyOnWriteTests.csproj", "{0274ECCA-90A8-49C9-8A2E-8E9E24DAE0F9}"
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoWCloneFile", "exe\CoWCloneFile.csproj", "{0D904305-EBD1-4E75-98AA-DB28BB944E1E}"
 EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests32", "tests\unit\32bit\CopyOnWriteTests32.csproj", "{EFA2A351-2AAA-4B5E-9F08-92747F95A407}"
-EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoWBenchmark", "tests\benchmark\CoWBenchmark.csproj", "{AB245A04-70E4-4C1F-A90F-AA6684FC1106}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestUtilities", "tests\utils\TestUtilities.csproj", "{B79F2EE2-75A8-4354-A802-6E3040534C53}"
@@ -33,10 +31,6 @@ Global
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Release|Any CPU.Build.0 = Release|Any CPU
-		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Release|Any CPU.Build.0 = Release|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/tests/unit/32bit/CopyOnWriteTests32.csproj b/tests/unit/32bit/CopyOnWriteTests32.csproj
deleted file mode 100644
index 92eabdb..0000000
--- a/tests/unit/32bit/CopyOnWriteTests32.csproj
+++ /dev/null
@@ -1,10 +0,0 @@
-<Project Sdk="MSTest.Sdk">
-
-  <Import Project="../CopyOnWriteTests.props"/>
-
-  <PropertyGroup>
-    <AssemblyName>Microsoft.CopyOnWrite.Tests.32bit</AssemblyName>
-    <Platform>x86</Platform>
-  </PropertyGroup>
-
-</Project>
diff --git a/tests/unit/64bit/CopyOnWriteTests.csproj b/tests/unit/64bit/CopyOnWriteTests.csproj
deleted file mode 100644
index ccc1479..0000000
--- a/tests/unit/64bit/CopyOnWriteTests.csproj
+++ /dev/null
@@ -1,9 +0,0 @@
-<Project Sdk="MSTest.Sdk">
-
-  <Import Project="../CopyOnWriteTests.props" />
-
-  <PropertyGroup>
-    <AssemblyName>Microsoft.CopyOnWrite.Tests</AssemblyName>
-  </PropertyGroup>
-
-</Project>
diff --git a/tests/unit/CopyOnWriteTests.csproj b/tests/unit/CopyOnWriteTests.csproj
new file mode 100644
index 0000000..63ebc12
--- /dev/null
+++ b/tests/unit/CopyOnWriteTests.csproj
@@ -0,0 +1,15 @@
+<Project Sdk="MSTest.Sdk">
+
+  <PropertyGroup>
+    <AssemblyName>Microsoft.CopyOnWrite.Tests</AssemblyName>
+    <RootNamespace>Microsoft.CopyOnWrite.Tests</RootNamespace>
+    <TargetFramework>net8.0</TargetFramework>
+    <Platforms>x64;x86</Platforms>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="../../lib/CopyOnWrite.csproj" />
+    <ProjectReference Include="../utils/TestUtilities.csproj" />
+  </ItemGroup>
+
+</Project>
diff --git a/tests/unit/CopyOnWriteTests.props b/tests/unit/CopyOnWriteTests.props
deleted file mode 100644
index 7643eea..0000000
--- a/tests/unit/CopyOnWriteTests.props
+++ /dev/null
@@ -1,20 +0,0 @@
-<Project>
-
-  <PropertyGroup>
-    <RootNamespace>Microsoft.CopyOnWrite.Tests</RootNamespace>
-    <TargetFramework>net8.0</TargetFramework>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <Compile Include="../*.cs" />
-    <Compile Include="../Windows/*.cs" />
-    <Compile Include="../Linux/*.cs" />
-    <Compile Include="../Mac/*.cs" />
-  </ItemGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="../../../lib/CopyOnWrite.csproj" />
-    <ProjectReference Include="../../utils/TestUtilities.csproj" />
-  </ItemGroup>
-
-</Project>

From 4f0ab054a047cbad38f65c2da9aff22b2105dbe8 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Wed, 25 Sep 2024 10:52:53 +0200
Subject: [PATCH 09/18] Revert

---
 CopyOnWrite.sln                            |  8 ++++++-
 tests/unit/32bit/CopyOnWriteTests32.csproj | 10 +++++++++
 tests/unit/64bit/CopyOnWriteTests.csproj   |  9 ++++++++
 tests/unit/CopyOnWriteTests.props          | 26 ++++++++++++++++++++++
 4 files changed, 52 insertions(+), 1 deletion(-)
 create mode 100644 tests/unit/32bit/CopyOnWriteTests32.csproj
 create mode 100644 tests/unit/64bit/CopyOnWriteTests.csproj
 create mode 100644 tests/unit/CopyOnWriteTests.props

diff --git a/CopyOnWrite.sln b/CopyOnWrite.sln
index dbeb8c4..6aa8567 100644
--- a/CopyOnWrite.sln
+++ b/CopyOnWrite.sln
@@ -5,10 +5,12 @@ VisualStudioVersion = 16.0.31424.327
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWrite", "lib\CopyOnWrite.csproj", "{B59E2C21-24B9-4517-A0E1-BB562C61CCBE}"
 EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests", "tests\unit\CopyOnWriteTests.csproj", "{0274ECCA-90A8-49C9-8A2E-8E9E24DAE0F9}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests", "tests\unit\64bit\CopyOnWriteTests.csproj", "{0274ECCA-90A8-49C9-8A2E-8E9E24DAE0F9}"
 EndProject
 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CoWCloneFile", "exe\CoWCloneFile.csproj", "{0D904305-EBD1-4E75-98AA-DB28BB944E1E}"
 EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CopyOnWriteTests32", "tests\unit\32bit\CopyOnWriteTests32.csproj", "{EFA2A351-2AAA-4B5E-9F08-92747F95A407}"
+EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoWBenchmark", "tests\benchmark\CoWBenchmark.csproj", "{AB245A04-70E4-4C1F-A90F-AA6684FC1106}"
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestUtilities", "tests\utils\TestUtilities.csproj", "{B79F2EE2-75A8-4354-A802-6E3040534C53}"
@@ -31,6 +33,10 @@ Global
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{0D904305-EBD1-4E75-98AA-DB28BB944E1E}.Release|Any CPU.Build.0 = Release|Any CPU
+		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{EFA2A351-2AAA-4B5E-9F08-92747F95A407}.Release|Any CPU.Build.0 = Release|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{AB245A04-70E4-4C1F-A90F-AA6684FC1106}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/tests/unit/32bit/CopyOnWriteTests32.csproj b/tests/unit/32bit/CopyOnWriteTests32.csproj
new file mode 100644
index 0000000..a73dafa
--- /dev/null
+++ b/tests/unit/32bit/CopyOnWriteTests32.csproj
@@ -0,0 +1,10 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <Import Project="../CopyOnWriteTests.props"/>
+
+  <PropertyGroup>
+    <AssemblyName>Microsoft.CopyOnWrite.Tests.32bit</AssemblyName>
+    <PlatformTarget>x86</PlatformTarget>
+  </PropertyGroup>
+
+</Project>
diff --git a/tests/unit/64bit/CopyOnWriteTests.csproj b/tests/unit/64bit/CopyOnWriteTests.csproj
new file mode 100644
index 0000000..190dcfb
--- /dev/null
+++ b/tests/unit/64bit/CopyOnWriteTests.csproj
@@ -0,0 +1,9 @@
+<Project Sdk="Microsoft.NET.Sdk">
+
+  <Import Project="../CopyOnWriteTests.props" />
+
+  <PropertyGroup>
+    <AssemblyName>Microsoft.CopyOnWrite.Tests</AssemblyName>
+  </PropertyGroup>
+
+</Project>
diff --git a/tests/unit/CopyOnWriteTests.props b/tests/unit/CopyOnWriteTests.props
new file mode 100644
index 0000000..292331c
--- /dev/null
+++ b/tests/unit/CopyOnWriteTests.props
@@ -0,0 +1,26 @@
+<Project>
+
+  <PropertyGroup>
+    <RootNamespace>Microsoft.CopyOnWrite.Tests</RootNamespace>
+    <TargetFramework>net8.0</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
+    <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
+    <PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <Compile Include="../*.cs" />
+    <Compile Include="../Windows/*.cs" />
+    <Compile Include="../Linux/*.cs" />
+    <Compile Include="../Mac/*.cs" />
+  </ItemGroup>
+
+  <ItemGroup>
+    <ProjectReference Include="../../../lib/CopyOnWrite.csproj" />
+    <ProjectReference Include="../../utils/TestUtilities.csproj" />
+  </ItemGroup>
+
+</Project>

From f84ef358cceb9018cfb8ce78de24590db7c0e31b Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Wed, 25 Sep 2024 10:54:00 +0200
Subject: [PATCH 10/18] Revert

---
 tests/unit/32bit/CopyOnWriteTests32.csproj |  2 +-
 tests/unit/64bit/CopyOnWriteTests.csproj   |  2 +-
 tests/unit/CopyOnWriteTests.csproj         | 15 ---------------
 tests/unit/CopyOnWriteTests.props          |  6 ------
 4 files changed, 2 insertions(+), 23 deletions(-)
 delete mode 100644 tests/unit/CopyOnWriteTests.csproj

diff --git a/tests/unit/32bit/CopyOnWriteTests32.csproj b/tests/unit/32bit/CopyOnWriteTests32.csproj
index a73dafa..5f07713 100644
--- a/tests/unit/32bit/CopyOnWriteTests32.csproj
+++ b/tests/unit/32bit/CopyOnWriteTests32.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="MSTest.Sdk">
 
   <Import Project="../CopyOnWriteTests.props"/>
 
diff --git a/tests/unit/64bit/CopyOnWriteTests.csproj b/tests/unit/64bit/CopyOnWriteTests.csproj
index 190dcfb..ccc1479 100644
--- a/tests/unit/64bit/CopyOnWriteTests.csproj
+++ b/tests/unit/64bit/CopyOnWriteTests.csproj
@@ -1,4 +1,4 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="MSTest.Sdk">
 
   <Import Project="../CopyOnWriteTests.props" />
 
diff --git a/tests/unit/CopyOnWriteTests.csproj b/tests/unit/CopyOnWriteTests.csproj
deleted file mode 100644
index 63ebc12..0000000
--- a/tests/unit/CopyOnWriteTests.csproj
+++ /dev/null
@@ -1,15 +0,0 @@
-<Project Sdk="MSTest.Sdk">
-
-  <PropertyGroup>
-    <AssemblyName>Microsoft.CopyOnWrite.Tests</AssemblyName>
-    <RootNamespace>Microsoft.CopyOnWrite.Tests</RootNamespace>
-    <TargetFramework>net8.0</TargetFramework>
-    <Platforms>x64;x86</Platforms>
-  </PropertyGroup>
-
-  <ItemGroup>
-    <ProjectReference Include="../../lib/CopyOnWrite.csproj" />
-    <ProjectReference Include="../utils/TestUtilities.csproj" />
-  </ItemGroup>
-
-</Project>
diff --git a/tests/unit/CopyOnWriteTests.props b/tests/unit/CopyOnWriteTests.props
index 292331c..7643eea 100644
--- a/tests/unit/CopyOnWriteTests.props
+++ b/tests/unit/CopyOnWriteTests.props
@@ -5,12 +5,6 @@
     <TargetFramework>net8.0</TargetFramework>
   </PropertyGroup>
 
-  <ItemGroup>
-    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
-    <PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
-    <PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
-  </ItemGroup>
-
   <ItemGroup>
     <Compile Include="../*.cs" />
     <Compile Include="../Windows/*.cs" />

From 20c583c69a8d1df50eda56efdaaa50326ec30b93 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Mon, 14 Oct 2024 08:51:41 +0200
Subject: [PATCH 11/18] Update global.json

---
 global.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/global.json b/global.json
index 5e4650c..3651bda 100644
--- a/global.json
+++ b/global.json
@@ -4,6 +4,6 @@
     "rollForward": "latestMinor"
   },
   "msbuild-sdks": {
-    "MSTest.Sdk": "3.6.0"
+    "MSTest.Sdk": "3.6.1"
   }
 }

From 1b782977924ed5039541e85d138f9ec2ad403898 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Tue, 15 Oct 2024 09:47:49 +0200
Subject: [PATCH 12/18] Update CI.yaml

---
 .github/workflows/CI.yaml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 41db4c8..e54047f 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -41,5 +41,10 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --configuration Release --no-build
+          dotnet test --configuration Release --no-build /bl
         shell: cmd
+      - uses: actions/upload-artifact@v4
+        if: always()
+        with:
+          # implicitly named as 'artifact'
+          path: msbuild.msbinlog

From bb8169ccbdfa5b857e82a66000e82dd12b111038 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Tue, 15 Oct 2024 10:44:32 +0200
Subject: [PATCH 13/18] Update CI.yaml

---
 .github/workflows/CI.yaml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index e54047f..4a5d564 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -42,9 +42,10 @@ jobs:
           set CoW_Test_ReFS_Drive=E:\
 
           dotnet test --configuration Release --no-build /bl
+          dir /s /b *.binlog
         shell: cmd
       - uses: actions/upload-artifact@v4
         if: always()
         with:
           # implicitly named as 'artifact'
-          path: msbuild.msbinlog
+          path: msbuild.binlog

From 0fea7419aba8c0700d033115f1b36406d0c9bb28 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Tue, 15 Oct 2024 11:09:38 +0200
Subject: [PATCH 14/18] Update CI.yaml

---
 .github/workflows/CI.yaml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 4a5d564..5880f22 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -18,6 +18,10 @@ jobs:
       - name: Setup .NET SDK
         uses: actions/setup-dotnet@v4
         # No "with: dotnet-version" specified -> use global.json
+      - name: Setup x86 .NET SDK
+        uses: actions/setup-dotnet@v4
+        with:
+          architecture: x86
       - run: dotnet restore
       - run: dotnet build --configuration Release --no-restore
       - name: Shrink C drive and create a ReFS E drive, then run tests
@@ -42,7 +46,6 @@ jobs:
           set CoW_Test_ReFS_Drive=E:\
 
           dotnet test --configuration Release --no-build /bl
-          dir /s /b *.binlog
         shell: cmd
       - uses: actions/upload-artifact@v4
         if: always()

From f5e4f5496d707536db74626e816c530d8bee6773 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Tue, 15 Oct 2024 11:16:51 +0200
Subject: [PATCH 15/18] Update CI.yaml

---
 .github/workflows/CI.yaml | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml
index 5880f22..0c8637f 100644
--- a/.github/workflows/CI.yaml
+++ b/.github/workflows/CI.yaml
@@ -45,10 +45,5 @@ jobs:
           @rem CODESYNC: WindowsReFSDriveSession.cs
           set CoW_Test_ReFS_Drive=E:\
 
-          dotnet test --configuration Release --no-build /bl
+          dotnet test --configuration Release --no-build
         shell: cmd
-      - uses: actions/upload-artifact@v4
-        if: always()
-        with:
-          # implicitly named as 'artifact'
-          path: msbuild.binlog

From aba3f7e06b4cadf915fa0cd3f1c1b36d31d6088a Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Wed, 27 Nov 2024 09:21:48 +0100
Subject: [PATCH 16/18] Update global.json

---
 global.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/global.json b/global.json
index 3651bda..a82b3ad 100644
--- a/global.json
+++ b/global.json
@@ -4,6 +4,6 @@
     "rollForward": "latestMinor"
   },
   "msbuild-sdks": {
-    "MSTest.Sdk": "3.6.1"
+    "MSTest.Sdk": "3.6.3"
   }
 }

From 8f66c803355355f1a2ae7399c7772b6172235938 Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Wed, 27 Nov 2024 09:40:08 +0100
Subject: [PATCH 17/18] Update CopyOnWrite.csproj

---
 lib/CopyOnWrite.csproj | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/CopyOnWrite.csproj b/lib/CopyOnWrite.csproj
index 1e03267..5b0f0e7 100644
--- a/lib/CopyOnWrite.csproj
+++ b/lib/CopyOnWrite.csproj
@@ -2,7 +2,7 @@
 
   <PropertyGroup>
     <RootNamespace>Microsoft.CopyOnWrite</RootNamespace>
-    <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
+    <TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
 
     <DistribDir>$(DistribRoot)Package\</DistribDir>
 

From ddffa679f44da9492347679a5f602349644ba2de Mon Sep 17 00:00:00 2001
From: stan-sz <37585349+stan-sz@users.noreply.github.com>
Date: Thu, 5 Dec 2024 08:44:10 +0100
Subject: [PATCH 18/18] Update global.json

---
 global.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/global.json b/global.json
index a82b3ad..bf6944b 100644
--- a/global.json
+++ b/global.json
@@ -4,6 +4,6 @@
     "rollForward": "latestMinor"
   },
   "msbuild-sdks": {
-    "MSTest.Sdk": "3.6.3"
+    "MSTest.Sdk": "3.6.4"
   }
 }