This repository has been archived by the owner on May 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a project that is used to build the NuGet package
- Loading branch information
1 parent
272223a
commit 99ab1d3
Showing
7 changed files
with
854 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace T4TS.Build | ||
{ | ||
[TypeScriptInterface(Module = "")] | ||
public class Barfoo | ||
{ | ||
public int Number { get; set; } | ||
public Inherited Complex { get; set; } | ||
public string Name { get; set; } | ||
public DateTime DateTime { get; set; } | ||
} | ||
|
||
[TypeScriptInterface(Module = "Fooz")] | ||
public class Foobar | ||
{ | ||
[TypeScriptMember(Name = "OverrideAll", Optional = true, Type = "bool")] | ||
public string SomeString { get; set; } | ||
public Foobar Recursive { get; set; } | ||
public Barfoo[] NestedObjectArr { get; set; } | ||
public List<Barfoo> NestedObjectList { get; set; } | ||
public string[][] TwoDimensions { get; set; } | ||
public Barfoo[][][] ThreeDimensions { get; set; } | ||
} | ||
|
||
[TypeScriptInterface(Name = "OverridenName")] | ||
public class Inherited : List<Barfoo> | ||
{ | ||
[TypeScriptMember(Optional = true, Name = "OtherName")] | ||
public string StringProperty { get; set; } | ||
public int[] Integers { get; set; } | ||
public List<double> Doubles { get; set; } | ||
public List<List<int>> TwoDimList { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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("T4TS.Build")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("T4TS.Build")] | ||
[assembly: AssemblyCopyright("Copyright © 2012")] | ||
[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("613f9be5-eae7-4b65-b505-4fa7b3e6a45c")] | ||
|
||
// 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")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{DD5BD892-D179-4E30-9185-9475BBF18B1F}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>T4TS.Build</RootNamespace> | ||
<AssemblyName>T4TS.Build</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<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' "> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="T4TS.Attributes"> | ||
<HintPath>..\build\T4TS.Attributes.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="Models.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="T4TS.tt"> | ||
<Generator>TextTemplatingFileGenerator</Generator> | ||
<LastGenOutput>T4TS.d.ts</LastGenOutput> | ||
</None> | ||
<None Include="T4TS.tt.settings.t4" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="T4TS.d.ts"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>T4TS.tt</DependentUpon> | ||
</Content> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2012 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "T4TS.Build", "T4TS.Build.csproj", "{DD5BD892-D179-4E30-9185-9475BBF18B1F}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{DD5BD892-D179-4E30-9185-9475BBF18B1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DD5BD892-D179-4E30-9185-9475BBF18B1F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DD5BD892-D179-4E30-9185-9475BBF18B1F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DD5BD892-D179-4E30-9185-9475BBF18B1F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/**************************************************************************** | ||
Generated by T4TS.tt - don't make any changes in this file | ||
****************************************************************************/ | ||
|
||
// -- Begin global interfaces | ||
/** Generated from T4TS.Build.Barfoo **/ | ||
interface Barfoo { | ||
Number: number; | ||
Complex: T4TS.OverridenName; | ||
Name: string; | ||
DateTime: string; | ||
} | ||
// -- End global interfaces | ||
|
||
module Fooz { | ||
/** Generated from T4TS.Build.Foobar **/ | ||
export interface Foobar { | ||
OverrideAll?: bool; | ||
Recursive: Fooz.Foobar; | ||
NestedObjectArr: Barfoo[]; | ||
NestedObjectList: Barfoo[]; | ||
TwoDimensions: string[][]; | ||
ThreeDimensions: Barfoo[][][]; | ||
} | ||
} | ||
|
||
module T4TS { | ||
/** Generated from T4TS.Build.Inherited **/ | ||
export interface OverridenName { | ||
OtherName?: string; | ||
Integers: number[]; | ||
Doubles: number[]; | ||
TwoDimList: number[][]; | ||
[index: number]: Barfoo; | ||
} | ||
} |
Oops, something went wrong.