Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit ec161ee

Browse files
committed
Add test NetCore.Console.Tests Console App
1 parent c0046ad commit ec161ee

File tree

5 files changed

+92
-0
lines changed

5 files changed

+92
-0
lines changed

src/ServiceStack.Text.Core.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Interfaces", "
1515
EndProject
1616
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "ServiceStack.Text", "ServiceStack.Text\ServiceStack.Text.xproj", "{8F56DF61-B041-4B95-B658-EB51EBEF4EF6}"
1717
EndProject
18+
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "NetCore.Console.Tests", "..\tests\NetCore.Console.Tests\NetCore.Console.Tests.xproj", "{2C558857-B489-44BF-945A-CF8E0F286F3B}"
19+
EndProject
1820
Global
1921
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2022
Debug|Any CPU = Debug|Any CPU
@@ -45,6 +47,10 @@ Global
4547
{8F56DF61-B041-4B95-B658-EB51EBEF4EF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
4648
{8F56DF61-B041-4B95-B658-EB51EBEF4EF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
4749
{8F56DF61-B041-4B95-B658-EB51EBEF4EF6}.Release|Any CPU.Build.0 = Release|Any CPU
50+
{2C558857-B489-44BF-945A-CF8E0F286F3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
51+
{2C558857-B489-44BF-945A-CF8E0F286F3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
52+
{2C558857-B489-44BF-945A-CF8E0F286F3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
53+
{2C558857-B489-44BF-945A-CF8E0F286F3B}.Release|Any CPU.Build.0 = Release|Any CPU
4854
EndGlobalSection
4955
GlobalSection(SolutionProperties) = preSolution
5056
HideSolutionNode = FALSE
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
5+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
6+
</PropertyGroup>
7+
8+
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
9+
<PropertyGroup Label="Globals">
10+
<ProjectGuid>2c558857-b489-44bf-945a-cf8e0f286f3b</ProjectGuid>
11+
<RootNamespace>NetCore.Console.Tests</RootNamespace>
12+
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
13+
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
14+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
15+
</PropertyGroup>
16+
17+
<PropertyGroup>
18+
<SchemaVersion>2.0</SchemaVersion>
19+
</PropertyGroup>
20+
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
21+
</Project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using ServiceStack;
6+
7+
namespace NetCore.Console.Tests
8+
{
9+
public class Program
10+
{
11+
public static void Main(string[] args)
12+
{
13+
var obj = new { name = "Hello ServiceStack!" };
14+
var json = obj.ToJson();
15+
System.Console.WriteLine(json);
16+
}
17+
}
18+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyConfiguration("")]
9+
[assembly: AssemblyCompany("")]
10+
[assembly: AssemblyProduct("NetCore.Console.Tests")]
11+
[assembly: AssemblyTrademark("")]
12+
13+
// Setting ComVisible to false makes the types in this assembly not visible
14+
// to COM components. If you need to access a type in this assembly from
15+
// COM, set the ComVisible attribute to true on that type.
16+
[assembly: ComVisible(false)]
17+
18+
// The following GUID is for the ID of the typelib if this project is exposed to COM
19+
[assembly: Guid("2c558857-b489-44bf-945a-cf8e0f286f3b")]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "1.0.0-*",
3+
"buildOptions": {
4+
"debugType": "portable",
5+
"emitEntryPoint": true
6+
},
7+
"dependencies": {
8+
"Microsoft.NETCore.App": {
9+
"version": "1.0.1",
10+
"type": "platform"
11+
},
12+
"ServiceStack.Text": "4.5.4"
13+
},
14+
"frameworks": {
15+
"netcoreapp1.1": {
16+
"dependencies": {
17+
"Microsoft.NETCore.App": {
18+
"type": "platform",
19+
"version": "1.0.1"
20+
}
21+
},
22+
"imports": [
23+
"dotnet5.6",
24+
"portable-net45+win8"
25+
]
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)