Permalink
Browse files

Clean templates. Update gitignore.

  • Loading branch information...
1 parent 3a225a7 commit 4af098e23820983bb2ad61bfb3a1486733eaa298 @tylermercier tylermercier committed Oct 1, 2012
View
@@ -19,4 +19,9 @@ build
*.user
* Thumbs.db
*.bin
-Autotest.config
+Autotest.config
+
+#nuget package
+*.nupkg
+#Nuget/input/lib
+lib
@@ -1,106 +1,103 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.30703</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Mvc.Mailer</RootNamespace>
- <AssemblyName>Mvc.Mailer</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <TargetFrameworkProfile />
- </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.configuration" />
- <Reference Include="System.Core" />
- <Reference Include="System.Web" />
- <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
- <Reference Include="System.Xml.Linq" />
- <Reference Include="System.Data.DataSetExtensions" />
- <Reference Include="Microsoft.CSharp" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="ExtensionMethods\UrlHelperExtensions.cs" />
- <Compile Include="EmptyHttpContext.cs" />
- <Compile Include="ILinkedResourceProvider.cs" />
- <Compile Include="LinkedResourceProvider.cs" />
- <Compile Include="MvcMailMessage.cs" />
- <Compile Include="SmtpClientBase.cs" />
- <Compile Include="SmtpClientWrapper.cs" />
- <Compile Include="TestSmtpClient.cs" />
- <Compile Include="ISmtpClient.cs" />
- <Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" />
- <Compile Include="MailerBase.cs" />
- <Compile Include="StringResult.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <ItemGroup>
- <None Include="content\Views\web.config.transform">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- </None>
- <None Include="content\web.config.transform">
- <CopyToOutputDirectory>Always</CopyToOutputDirectory>
- <SubType>Designer</SubType>
- </None>
- <None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" />
- <None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" />
- <None Include="NuGet\input\tools\Mailer.Aspx.ps1" />
- <None Include="NuGet\input\tools\Mailer.Razor.ps1" />
- <None Include="NuGet\input\tools\Install.ps1" />
- <None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" />
- <None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" />
- <None Include="NuGet\input\tools\MailerFunctions.ps1" />
- <None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" />
- <None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" />
- <None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" />
- <None Include="NuGet\MvcMailer.nuspec">
- <SubType>Designer</SubType>
- </None>
- </ItemGroup>
- <ItemGroup />
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- <PropertyGroup>
- <PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40"
-xcopy content "$(ProjectDir)NuGet\input\content" /S /Y
-cd "$(ProjectDir)NuGet"
-IF NOT EXIST output md output
-nuget pack mvcmailer.nuspec -b input -o output
-</PostBuildEvent>
- </PropertyGroup>
- <!-- 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>
- -->
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Mvc.Mailer</RootNamespace>
+ <AssemblyName>Mvc.Mailer</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile />
+ </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.configuration" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Web" />
+ <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ExtensionMethods\UrlHelperExtensions.cs" />
+ <Compile Include="EmptyHttpContext.cs" />
+ <Compile Include="ILinkedResourceProvider.cs" />
+ <Compile Include="LinkedResourceProvider.cs" />
+ <Compile Include="MvcMailMessage.cs" />
+ <Compile Include="SmtpClientBase.cs" />
+ <Compile Include="SmtpClientWrapper.cs" />
+ <Compile Include="TestSmtpClient.cs" />
+ <Compile Include="ISmtpClient.cs" />
+ <Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" />
+ <Compile Include="MailerBase.cs" />
+ <Compile Include="StringResult.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="content\web.config.transform">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ <SubType>Designer</SubType>
+ </None>
+ <None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\Mailer.Aspx.ps1" />
+ <None Include="NuGet\input\tools\Mailer.Razor.ps1" />
+ <None Include="NuGet\input\tools\Install.ps1" />
+ <None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" />
+ <None Include="NuGet\input\tools\MailerFunctions.ps1" />
+ <None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" />
+ <None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" />
+ <None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" />
+ <None Include="NuGet\MvcMailer.nuspec">
+ <SubType>Designer</SubType>
+ </None>
+ </ItemGroup>
+ <ItemGroup />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <PropertyGroup>
+ <PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40"
+xcopy content "$(ProjectDir)NuGet\input\content" /S /Y
+cd "$(ProjectDir)NuGet"
+IF NOT EXIST output md output
+nuget pack mvcmailer.nuspec -b input -o output
+</PostBuildEvent>
+ </PropertyGroup>
+ <!-- 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>
@@ -1,19 +0,0 @@
-<configuration>
- <system.web.webPages.razor>
- <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <pages pageBaseType="System.Web.Mvc.WebViewPage">
- <namespaces>
- <add namespace="Mvc.Mailer" />
- </namespaces>
- </pages>
- </system.web.webPages.razor>
-
- <system.web>
- <pages validateRequest="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
- <namespaces>
- <add namespace="Mvc.Mailer" />
- </namespaces>
- </pages>
- </system.web>
-
-</configuration>
@@ -1,5 +1,4 @@
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
<#@ Output Extension="cs" #>
-MailMessage <#= Model.MethodName #>();
-
+MvcMailMessage <#= Model.MethodName #>();
@@ -1,21 +1,12 @@
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
<#@ Output Extension="cs" #>
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
using Mvc.Mailer;
-using System.Net.Mail;
namespace <#= Model.Namespace #>.Mailers
{
public interface I<#= Model.MailerName #>
{
- <# foreach(var mailerMethod in Model.MailerMethods) {#>
-
- MailMessage <#= mailerMethod #>();
-
- <# } #>
-
- }
+ <# foreach(var mailerMethod in Model.MailerMethods) {#>
+ MvcMailMessage <#= mailerMethod #>();
+ <# } #>}
}
@@ -1,7 +1,7 @@
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
<#@ Output Extension="cs" #>
-public virtual MailMessage <#= Model.MethodName #>()
+public virtual MvcMailMessage <#= Model.MethodName #>()
{
ViewBag.Data = someObject;
return Populate(x => {
@@ -1,19 +1,19 @@
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #>
<#@ Output Extension="cs" #>
using Mvc.Mailer;
-using System.Net.Mail;
namespace <#= Model.Namespace #>.Mailers
{
public class <#= Model.MailerName #> : MailerBase<# if( Model.Interface) { #>, I<#= Model.MailerName #> <# } #>
+
{
public <#= Model.MailerName #>()
{
MasterName="_Layout";
}
<# foreach(var mailerMethod in Model.MailerMethods) {#>
- public virtual MailMessage <#= mailerMethod #>()
+ public virtual MvcMailMessage <#= mailerMethod #>()
{
//ViewBag.Data = someObject;
return Populate(x =>
@@ -23,6 +23,6 @@ namespace <#= Model.Namespace #>.Mailers
x.To.Add("some-email@example.com");
});
}
- <# } #>
+ <# } #>
}
}
@@ -1,19 +0,0 @@
-<configuration>
- <system.web.webPages.razor>
- <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
- <pages pageBaseType="System.Web.Mvc.WebViewPage">
- <namespaces>
- <add namespace="Mvc.Mailer" />
- </namespaces>
- </pages>
- </system.web.webPages.razor>
-
- <system.web>
- <pages validateRequest="false" pageParserFilterType="System.Web.Mvc.ViewTypeParserFilter, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" pageBaseType="System.Web.Mvc.ViewPage, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" userControlBaseType="System.Web.Mvc.ViewUserControl, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
- <namespaces>
- <add namespace="Mvc.Mailer" />
- </namespaces>
- </pages>
- </system.web>
-
-</configuration>

0 comments on commit 4af098e

Please sign in to comment.