Skip to content

Commit

Permalink
Added a console so we can test out the date time serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
joavbeerman committed Jan 7, 2010
1 parent 294a095 commit 7d45733
Show file tree
Hide file tree
Showing 17 changed files with 26,928 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Offr.sln
Expand Up @@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Newtonsoft.Json", "lib\Newt
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Offr.Tests", "Offr.Tests\Offr.Tests.csproj", "{FCA5EA32-593A-4D3B-90EC-9B36D9380C98}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OffrConsole", "OffrConsole\OffrConsole.csproj", "{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -48,6 +50,12 @@ Global
{FCA5EA32-593A-4D3B-90EC-9B36D9380C98}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCA5EA32-593A-4D3B-90EC-9B36D9380C98}.Release|Any CPU.Build.0 = Release|Any CPU
{FCA5EA32-593A-4D3B-90EC-9B36D9380C98}.Release|x86.ActiveCfg = Release|x86
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Debug|x86.ActiveCfg = Debug|Any CPU
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Release|Any CPU.Build.0 = Release|Any CPU
{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
69 changes: 69 additions & 0 deletions OffrConsole/OffrConsole.csproj
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{56A2A2F3-565B-4A5B-9554-BCC08C900DFF}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OffrConsole</RootNamespace>
<AssemblyName>OffrConsole</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\lib\Newtonsoft.Json\src\Newtonsoft.Json.csproj">
<Project>{A9AE40FF-1A21-414A-9FE7-3BE13644CC6D}</Project>
<Name>Newtonsoft.Json</Name>
</ProjectReference>
<ProjectReference Include="..\OffrLib\OffrLib.csproj">
<Project>{E2C87F3A-170E-4F3A-9C45-3DF87188B582}</Project>
<Name>OffrLib</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
19 changes: 19 additions & 0 deletions OffrConsole/Program.cs
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Offr.Json;

namespace OffrConsole
{
class Program
{
static void Main(string[] args)
{
DateTime time = DateTime.Now;
Debug.Assert(time.Equals(JSON.Deserialize<DateTime>(JSON.Serialize(time))));
Console.Out.WriteLine("time :" + time.ToLongTimeString() + " JSON.Deserialize<DateTime>(JSON.Serialize(time)):" + JSON.Deserialize<DateTime>(JSON.Serialize(time)).ToLongTimeString());
}
}
}
36 changes: 36 additions & 0 deletions OffrConsole/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("OffrConsole")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("TOSHIBA")]
[assembly: AssemblyProduct("OffrConsole")]
[assembly: AssemblyCopyright("Copyright © TOSHIBA 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6d9ef656-a9b7-40c3-b708-0ad9cb76a076")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Binary file added OffrConsole/bin/Debug/NLog.dll
Binary file not shown.

0 comments on commit 7d45733

Please sign in to comment.