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

Commit ae99783

Browse files
committed
Add new TestConsole project
1 parent 92dde97 commit ae99783

File tree

7 files changed

+177
-4
lines changed

7 files changed

+177
-4
lines changed

src/.nuget/NuGet.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
<solution>
44
<add key="disableSourceControlIntegration" value="true" />
55
</solution>
6+
<packageSources>
7+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
8+
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
9+
</packageSources>
610
</configuration>

src/ServiceStack.Text.sln

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.23107.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
46
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{F7FB50ED-EAFF-4839-935A-5BB4A4158245}"
57
ProjectSection(SolutionItems) = preProject
68
..\build\appsettings.license.txt = ..\build\appsettings.license.txt
@@ -26,6 +28,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{EEDB29
2628
.nuget\NuGet.targets = .nuget\NuGet.targets
2729
EndProjectSection
2830
EndProject
31+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStack.Text.TestsConsole", "..\tests\ServiceStack.Text.TestsConsole\ServiceStack.Text.TestsConsole.csproj", "{DD3BEB33-2509-423A-8545-CE1A83684530}"
32+
EndProject
2933
Global
3034
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3135
Debug|Any CPU = Debug|Any CPU
@@ -99,6 +103,42 @@ Global
99103
{9770BD40-AA3B-4785-B5E0-F4C470F9F14E}.Signed|x86.ActiveCfg = Signed|x86
100104
{9770BD40-AA3B-4785-B5E0-F4C470F9F14E}.Signed|x86.Build.0 = Signed|x86
101105
{9770BD40-AA3B-4785-B5E0-F4C470F9F14E}.Signed|Xbox 360.ActiveCfg = Signed|Any CPU
106+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
107+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Any CPU.Build.0 = Debug|Any CPU
108+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|ARM.ActiveCfg = Debug|Any CPU
109+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|ARM.Build.0 = Debug|Any CPU
110+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
111+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
112+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|x64.ActiveCfg = Debug|Any CPU
113+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|x64.Build.0 = Debug|Any CPU
114+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|x86.ActiveCfg = Debug|Any CPU
115+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|x86.Build.0 = Debug|Any CPU
116+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Xbox 360.ActiveCfg = Debug|Any CPU
117+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Debug|Xbox 360.Build.0 = Debug|Any CPU
118+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Any CPU.ActiveCfg = Release|Any CPU
119+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Any CPU.Build.0 = Release|Any CPU
120+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|ARM.ActiveCfg = Release|Any CPU
121+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|ARM.Build.0 = Release|Any CPU
122+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
123+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Mixed Platforms.Build.0 = Release|Any CPU
124+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|x64.ActiveCfg = Release|Any CPU
125+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|x64.Build.0 = Release|Any CPU
126+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|x86.ActiveCfg = Release|Any CPU
127+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|x86.Build.0 = Release|Any CPU
128+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Xbox 360.ActiveCfg = Release|Any CPU
129+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Release|Xbox 360.Build.0 = Release|Any CPU
130+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Any CPU.ActiveCfg = Release|Any CPU
131+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Any CPU.Build.0 = Release|Any CPU
132+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|ARM.ActiveCfg = Release|Any CPU
133+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|ARM.Build.0 = Release|Any CPU
134+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Mixed Platforms.ActiveCfg = Release|Any CPU
135+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Mixed Platforms.Build.0 = Release|Any CPU
136+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|x64.ActiveCfg = Release|Any CPU
137+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|x64.Build.0 = Release|Any CPU
138+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|x86.ActiveCfg = Release|Any CPU
139+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|x86.Build.0 = Release|Any CPU
140+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Xbox 360.ActiveCfg = Release|Any CPU
141+
{DD3BEB33-2509-423A-8545-CE1A83684530}.Signed|Xbox 360.Build.0 = Release|Any CPU
102142
EndGlobalSection
103143
GlobalSection(SolutionProperties) = preSolution
104144
HideSolutionNode = FALSE

src/ServiceStack.Text/PclExport.Net40.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,10 +1243,9 @@ public static bool VerifySignedHash(byte[] DataToVerify, byte[] SignedData, RSAP
12431243
return RSAalg.VerifySha1Data(DataToVerify, SignedData);
12441244

12451245
}
1246-
catch (CryptographicException e)
1246+
catch (CryptographicException ex)
12471247
{
1248-
Console.WriteLine(e.Message);
1249-
1248+
Tracer.Instance.WriteError(ex);
12501249
return false;
12511250
}
12521251
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
5+
</startup>
6+
</configuration>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace ServiceStack.Text.TestsConsole
8+
{
9+
class Program
10+
{
11+
static void Main(string[] args)
12+
{
13+
var licenseKey = Environment.GetEnvironmentVariable("SERVICESTACK_LICENSE");
14+
if (licenseKey.IsNullOrEmpty())
15+
throw new ArgumentNullException("SERVICESTACK_LICENSE", "Add Environment variable for SERVICESTACK_LICENSE");
16+
17+
Licensing.RegisterLicense(licenseKey);
18+
"ActivatedLicenseFeatures: ".Print(LicenseUtils.ActivatedLicenseFeatures());
19+
20+
Console.ReadLine();
21+
}
22+
}
23+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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: AssemblyTitle("ServiceStack.Text.TestsConsole")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("ServiceStack.Text.TestsConsole")]
13+
[assembly: AssemblyCopyright("Copyright © 2015")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("dd3beb33-2509-423a-8545-ce1a83684530")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{DD3BEB33-2509-423A-8545-CE1A83684530}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>ServiceStack.Text.TestsConsole</RootNamespace>
11+
<AssemblyName>ServiceStack.Text.TestsConsole</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<PlatformTarget>AnyCPU</PlatformTarget>
17+
<DebugSymbols>true</DebugSymbols>
18+
<DebugType>full</DebugType>
19+
<Optimize>false</Optimize>
20+
<OutputPath>bin\Debug\</OutputPath>
21+
<DefineConstants>DEBUG;TRACE</DefineConstants>
22+
<ErrorReport>prompt</ErrorReport>
23+
<WarningLevel>4</WarningLevel>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26+
<PlatformTarget>AnyCPU</PlatformTarget>
27+
<DebugType>pdbonly</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\Release\</OutputPath>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="System" />
36+
<Reference Include="System.Core" />
37+
<Reference Include="System.Xml.Linq" />
38+
<Reference Include="System.Data.DataSetExtensions" />
39+
<Reference Include="Microsoft.CSharp" />
40+
<Reference Include="System.Data" />
41+
<Reference Include="System.Net.Http" />
42+
<Reference Include="System.Xml" />
43+
</ItemGroup>
44+
<ItemGroup>
45+
<Compile Include="Program.cs" />
46+
<Compile Include="Properties\AssemblyInfo.cs" />
47+
</ItemGroup>
48+
<ItemGroup>
49+
<None Include="App.config" />
50+
</ItemGroup>
51+
<ItemGroup>
52+
<ProjectReference Include="..\..\src\ServiceStack.Text\ServiceStack.Text.csproj">
53+
<Project>{579b3fdb-cdad-44e1-8417-885c38e49a0e}</Project>
54+
<Name>ServiceStack.Text</Name>
55+
</ProjectReference>
56+
</ItemGroup>
57+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
58+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
59+
Other similar extension points exist, see Microsoft.Common.targets.
60+
<Target Name="BeforeBuild">
61+
</Target>
62+
<Target Name="AfterBuild">
63+
</Target>
64+
-->
65+
</Project>

0 commit comments

Comments
 (0)