Skip to content

Commit d271427

Browse files
authored
Remove usage of Newtonsoft.Json from host test assets (#84745)
1 parent 926062a commit d271427

File tree

7 files changed

+0
-23
lines changed

7 files changed

+0
-23
lines changed

src/installer/tests/Assets/TestProjects/StandaloneApp/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ public static void Main(string[] args)
1313
Console.WriteLine("Hello World!");
1414
Console.WriteLine(string.Join(Environment.NewLine, args));
1515
Console.WriteLine(RuntimeInformation.FrameworkDescription);
16-
17-
// A small operation involving NewtonSoft.Json to ensure the assembly is loaded properly
18-
var t = typeof(Newtonsoft.Json.JsonReader);
1916
}
2017
}
2118
}

src/installer/tests/Assets/TestProjects/StandaloneApp/StandaloneApp.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@
77
<RuntimeFrameworkVersion>$(MNAVersion)</RuntimeFrameworkVersion>
88
</PropertyGroup>
99

10-
<ItemGroup>
11-
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
12-
</ItemGroup>
13-
1410
</Project>

src/installer/tests/Assets/TestProjects/StandaloneApp20/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ public static void Main(string[] args)
1111
{
1212
Console.WriteLine("Hello World!");
1313
Console.WriteLine(string.Join(Environment.NewLine, args));
14-
15-
// A small operation involving NewtonSoft.Json to ensure the assembly is loaded properly
16-
var t = typeof(Newtonsoft.Json.JsonReader);
1714
}
1815
}
1916
}

src/installer/tests/Assets/TestProjects/StandaloneApp20/StandaloneApp20.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@
88
<RuntimeFrameworkVersion>2.0.7</RuntimeFrameworkVersion>
99
</PropertyGroup>
1010

11-
<ItemGroup>
12-
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
13-
</ItemGroup>
14-
1511
</Project>

src/installer/tests/Assets/TestProjects/StandaloneApp21/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ public static void Main(string[] args)
1111
{
1212
Console.WriteLine("Hello World!");
1313
Console.WriteLine(string.Join(Environment.NewLine, args));
14-
15-
// A small operation involving NewtonSoft.Json to ensure the assembly is loaded properly
16-
var t = typeof(Newtonsoft.Json.JsonReader);
1714
}
1815
}
1916
}

src/installer/tests/Assets/TestProjects/StandaloneApp21/StandaloneApp21.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,4 @@
88
<RuntimeFrameworkVersion>2.1.0</RuntimeFrameworkVersion>
99
</PropertyGroup>
1010

11-
<ItemGroup>
12-
<PackageReference Include="Newtonsoft.Json" Version="$(NewtonsoftJsonVersion)" />
13-
</ItemGroup>
14-
1511
</Project>

src/installer/tests/Assets/TestUtils/TestProjects.props

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,5 @@
1313
win-x86 tests that assumed a win-x64 app host RID based on the runner SDK.
1414
-->
1515
<AppHostRuntimeIdentifier>$(TestTargetRid)</AppHostRuntimeIdentifier>
16-
17-
<NewtonsoftJsonVersion>13.0.1</NewtonsoftJsonVersion>
1816
</PropertyGroup>
1917
</Project>

0 commit comments

Comments
 (0)