Skip to content

Commit

Permalink
Add NuGet package.
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Jul 11, 2014
1 parent 6652e63 commit 6138d4b
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 1 deletion.
82 changes: 82 additions & 0 deletions ImmutableObjectGraph.NuGet/ImmutableObjectGraph.NuGet.nuproj
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|AnyCPU">
<Configuration>Debug</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|AnyCPU">
<Configuration>Release</Configuration>
<Platform>AnyCPU</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>bc4943cf-ca4c-4d24-96aa-7712061526e4</ProjectGuid>
</PropertyGroup>
<PropertyGroup>
<NuProjPath Condition=" '$(NuProjPath)' == '' ">$(MSBuildExtensionsPath)\NuProj\</NuProjPath>
</PropertyGroup>
<Import Project="$(NuProjPath)\NuProj.props" Condition="Exists('$(NuProjPath)\NuProj.props')" />
<PropertyGroup Label="Configuration">
<Id>ImmutableObjectGraph</Id>
<Version>0.1.0-beta</Version>
<Title>ImmutableObjectGraph</Title>
<Authors>Andrew Arnott</Authors>
<Owners>Andrew Arnott</Owners>
<Summary>T4 templates for creating immutable types</Summary>
<Description>T4 templates that transform simple mutable type definitions into fully functional immutable types with persistent characteristics.</Description>
<ReleaseNotes>
</ReleaseNotes>
<ProjectUrl>https://github.com/aarnott/immutableobjectgraph</ProjectUrl>
<LicenseUrl>
</LicenseUrl>
<Copyright>Copyright © Andrew Arnott</Copyright>
<Tags>immutable </Tags>
</PropertyGroup>
<ItemGroup>
<Content Include="content\YourImmutableTypeDefinition.tt" />
<Content Include="Readme.txt" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ImmutableObjectGraph\ImmutableObjectGraph.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="content\ImmutableObjectGraph\" />
</ItemGroup>
<ItemGroup>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.Builders.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.Builders.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.CollectionHelpers.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.CollectionHelpers.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.DeepMutation.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.DeepMutation.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.Delta.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.Delta.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.Discovery.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.Discovery.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.FastSpine.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.FastSpine.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.Interface.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.Interface.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.RedNode.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.RedNode.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.TypeConversion.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.TypeConversion.tt</Link>
</Content>
<Content Include="..\ImmutableObjectGraph\ImmutableObjectGraph.WithProperty.tt">
<Link>content\ImmutableObjectGraph\ImmutableObjectGraph.WithProperty.tt</Link>
</Content>
</ItemGroup>
<Import Project="$(NuProjPath)\NuProj.targets" />
</Project>
4 changes: 4 additions & 0 deletions ImmutableObjectGraph.NuGet/Readme.txt
@@ -0,0 +1,4 @@
ImmutableObjectGraph
====================

To get started, open the YourImmutableTypeDefinition.tt file and start making changes to it.
28 changes: 28 additions & 0 deletions ImmutableObjectGraph.NuGet/content/YourImmutableTypeDefinition.tt
@@ -0,0 +1,28 @@
<#@ template debug="true" language="C#" #>
<#@ Output Extension=".generated.cs" #>
<#
this.Namespace = "YourNamespace";
#>
<#@ Include File="ImmutableObjectGraph\ImmutableObjectGraph.RedNode.tt" #>
<#@ Include File="ImmutableObjectGraph\ImmutableObjectGraph.Delta.tt" #>
<#@ Include File="ImmutableObjectGraph\ImmutableObjectGraph.tt" #>
<#+
abstract class FileSystemEntry {
[Required]
string pathSegment;

RichData data;
}

class FileSystemFile : FileSystemEntry {
ImmutableHashSet<string> attributes;
}

class FileSystemDirectory : FileSystemEntry {
ImmutableSortedSet<FileSystemEntry> children;
}

class RichData {
int someCoolProperty;
}
#>
8 changes: 7 additions & 1 deletion ImmutableObjectGraph.sln
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30303.0
VisualStudioVersion = 12.0.30421.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImmutableObjectGraph", "ImmutableObjectGraph\ImmutableObjectGraph.csproj", "{63930555-500F-4E7B-9F24-3D5C3D4F0573}"
EndProject
Expand All @@ -26,6 +26,8 @@ Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "VBConsumerTests", "VBConsum
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.VisualStudio.ProjectSystem.v12Only", "Microsoft.VisualStudio.ProjectSystem.v12Only\Microsoft.VisualStudio.ProjectSystem.v12Only.csproj", "{91668E84-7B80-45A1-892C-FA2EE381E770}"
EndProject
Project("{FF286327-C783-4F7A-AB73-9BCBAD0D4460}") = "ImmutableObjectGraph.NuGet", "ImmutableObjectGraph.NuGet\ImmutableObjectGraph.NuGet.nuproj", "{BC4943CF-CA4C-4D24-96AA-7712061526E4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -52,6 +54,10 @@ Global
{91668E84-7B80-45A1-892C-FA2EE381E770}.Debug|Any CPU.Build.0 = Debug|Any CPU
{91668E84-7B80-45A1-892C-FA2EE381E770}.Release|Any CPU.ActiveCfg = Release|Any CPU
{91668E84-7B80-45A1-892C-FA2EE381E770}.Release|Any CPU.Build.0 = Release|Any CPU
{BC4943CF-CA4C-4D24-96AA-7712061526E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC4943CF-CA4C-4D24-96AA-7712061526E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC4943CF-CA4C-4D24-96AA-7712061526E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC4943CF-CA4C-4D24-96AA-7712061526E4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 6138d4b

Please sign in to comment.