Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Adding NewtonSoftDependentProject test asset back.
Browse files Browse the repository at this point in the history
  • Loading branch information
livarcocc committed May 2, 2017
1 parent 9387702 commit aac6916
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
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 TestAssets/TestProjects/NewtonSoftDependentProject/Program.cs
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());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<StoreArtifacts>
<Package Id="Newtonsoft.Json" Version ="9.0.1"/>
</StoreArtifacts>
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>

0 comments on commit aac6916

Please sign in to comment.