Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a console so we can test out the date time serialization

  • Loading branch information...
commit 7d45733e980bf52d35c0add7ed9be00e5e56afaf 1 parent 294a095
@joavbeerman joavbeerman authored
View
8 Offr.sln
@@ -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
@@ -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
View
69 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>
View
19 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());
+ }
+ }
+}
View
36 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")]
View
BIN  OffrConsole/bin/Debug/NLog.dll
Binary file not shown
View
13,813 OffrConsole/bin/Debug/NLog.xml
13,813 additions, 0 deletions not shown
View
BIN  OffrConsole/bin/Debug/Newtonsoft.Json.dll
Binary file not shown
View
BIN  OffrConsole/bin/Debug/Newtonsoft.Json.pdb
Binary file not shown
View
5,463 OffrConsole/bin/Debug/Newtonsoft.Json.xml
5,463 additions, 0 deletions not shown
View
BIN  OffrConsole/bin/Debug/Ninject.Core.dll
Binary file not shown
View
7,509 OffrConsole/bin/Debug/Ninject.Core.xml
7,509 additions, 0 deletions not shown
View
BIN  OffrConsole/bin/Debug/OffrConsole.exe
Binary file not shown
View
BIN  OffrConsole/bin/Debug/OffrConsole.pdb
Binary file not shown
View
BIN  OffrConsole/bin/Debug/OffrConsole.vshost.exe
Binary file not shown
View
11 OffrConsole/bin/Debug/OffrConsole.vshost.exe.manifest
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+ <security>
+ <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
+ <requestedExecutionLevel level="asInvoker" uiAccess="false"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
View
BIN  OffrConsole/bin/Debug/OffrLib.dll
Binary file not shown
View
BIN  OffrConsole/bin/Debug/OffrLib.pdb
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.