This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding NewtonSoftDependentProject test asset back.
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
TestAssets/TestProjects/NewtonSoftDependentProject/NewtonSoftDependentProject.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="NewtonSoft.Json" Version="9.0.1" /> | ||
</ItemGroup> | ||
</Project> |
22 changes: 22 additions & 0 deletions
22
TestAssets/TestProjects/NewtonSoftDependentProject/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using System; | ||
using System.Collections; | ||
using Newtonsoft.Json.Linq; | ||
|
||
class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
ArrayList argList = new ArrayList(args); | ||
JObject jObject = new JObject(); | ||
|
||
foreach (string arg in argList) | ||
{ | ||
jObject[arg] = arg; | ||
} | ||
|
||
Console.WriteLine(jObject.ToString()); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
TestAssets/TestProjects/NewtonsoftProfile/NewtonsoftFilterProfile.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<StoreArtifacts> | ||
<Package Id="Newtonsoft.Json" Version ="9.0.1"/> | ||
</StoreArtifacts> |
5 changes: 5 additions & 0 deletions
5
TestAssets/TestProjects/NewtonsoftProfile/NewtonsoftProfile.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ItemGroup> | ||
<PackageReference Include="Newtonsoft.Json" Version ="9.0.1"/> | ||
</ItemGroup> | ||
</Project> |