-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a225a7
commit 4af098e
Showing
8 changed files
with
116 additions
and
162 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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,106 +1,103 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | <PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | <ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | <SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid> | <ProjectGuid>{37B58562-EF1A-47FE-A02E-98C82D5FB5BC}</ProjectGuid> | ||
<OutputType>Library</OutputType> | <OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | <AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Mvc.Mailer</RootNamespace> | <RootNamespace>Mvc.Mailer</RootNamespace> | ||
<AssemblyName>Mvc.Mailer</AssemblyName> | <AssemblyName>Mvc.Mailer</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | <TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | <FileAlignment>512</FileAlignment> | ||
<TargetFrameworkProfile /> | <TargetFrameworkProfile /> | ||
</PropertyGroup> | </PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | <DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | <DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | <Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | <OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | <ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | <WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | </PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | <DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | <Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | <OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | <DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | <ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | <WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | </PropertyGroup> | ||
<ItemGroup> | <ItemGroup> | ||
<Reference Include="System" /> | <Reference Include="System" /> | ||
<Reference Include="System.configuration" /> | <Reference Include="System.configuration" /> | ||
<Reference Include="System.Core" /> | <Reference Include="System.Core" /> | ||
<Reference Include="System.Web" /> | <Reference Include="System.Web" /> | ||
<Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> | <Reference Include="System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" /> | ||
<Reference Include="System.Xml.Linq" /> | <Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | <Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | <Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | <Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | <Reference Include="System.Xml" /> | ||
</ItemGroup> | </ItemGroup> | ||
<ItemGroup> | <ItemGroup> | ||
<Compile Include="ExtensionMethods\UrlHelperExtensions.cs" /> | <Compile Include="ExtensionMethods\UrlHelperExtensions.cs" /> | ||
<Compile Include="EmptyHttpContext.cs" /> | <Compile Include="EmptyHttpContext.cs" /> | ||
<Compile Include="ILinkedResourceProvider.cs" /> | <Compile Include="ILinkedResourceProvider.cs" /> | ||
<Compile Include="LinkedResourceProvider.cs" /> | <Compile Include="LinkedResourceProvider.cs" /> | ||
<Compile Include="MvcMailMessage.cs" /> | <Compile Include="MvcMailMessage.cs" /> | ||
<Compile Include="SmtpClientBase.cs" /> | <Compile Include="SmtpClientBase.cs" /> | ||
<Compile Include="SmtpClientWrapper.cs" /> | <Compile Include="SmtpClientWrapper.cs" /> | ||
<Compile Include="TestSmtpClient.cs" /> | <Compile Include="TestSmtpClient.cs" /> | ||
<Compile Include="ISmtpClient.cs" /> | <Compile Include="ISmtpClient.cs" /> | ||
<Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" /> | <Compile Include="ExtensionMethods\HtmlHelperExtensions.cs" /> | ||
<Compile Include="MailerBase.cs" /> | <Compile Include="MailerBase.cs" /> | ||
<Compile Include="StringResult.cs" /> | <Compile Include="StringResult.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | </ItemGroup> | ||
<ItemGroup> | <ItemGroup> | ||
<None Include="content\Views\web.config.transform"> | <None Include="content\web.config.transform"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | <CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | <SubType>Designer</SubType> | ||
<None Include="content\web.config.transform"> | </None> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | <None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" /> | ||
<SubType>Designer</SubType> | <None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" /> | ||
</None> | <None Include="NuGet\input\tools\Mailer.Aspx.ps1" /> | ||
<None Include="NuGet\input\tools\cs\IMailerMethodTemplate.cs.t4" /> | <None Include="NuGet\input\tools\Mailer.Razor.ps1" /> | ||
<None Include="NuGet\input\tools\cs\MailerMethodTemplate.cs.t4" /> | <None Include="NuGet\input\tools\Install.ps1" /> | ||
<None Include="NuGet\input\tools\Mailer.Aspx.ps1" /> | <None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" /> | ||
<None Include="NuGet\input\tools\Mailer.Razor.ps1" /> | <None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" /> | ||
<None Include="NuGet\input\tools\Install.ps1" /> | <None Include="NuGet\input\tools\MailerFunctions.ps1" /> | ||
<None Include="NuGet\input\tools\cs\IMailerTemplate.cs.t4" /> | <None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" /> | ||
<None Include="NuGet\input\tools\cs\MailerTemplate.cs.t4" /> | <None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" /> | ||
<None Include="NuGet\input\tools\MailerFunctions.ps1" /> | <None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\aspx\Mail.text.aspx.cs.t4" /> | <None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\aspx\Layout.text.Master.cs.t4" /> | <None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\aspx\Layout.Master.cs.t4" /> | <None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\aspx\Mail.aspx.cs.t4" /> | <None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\razor\Layout.text.cshtml.cs.t4" /> | <None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" /> | ||
<None Include="NuGet\input\tools\view\razor\Mail.text.cshtml.cs.t4" /> | <None Include="NuGet\MvcMailer.nuspec"> | ||
<None Include="NuGet\input\tools\view\razor\Layout.cshtml.cs.t4" /> | <SubType>Designer</SubType> | ||
<None Include="NuGet\input\tools\view\razor\Mail.cshtml.cs.t4" /> | </None> | ||
<None Include="NuGet\MvcMailer.nuspec"> | </ItemGroup> | ||
<SubType>Designer</SubType> | <ItemGroup /> | ||
</None> | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</ItemGroup> | <PropertyGroup> | ||
<ItemGroup /> | <PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40" | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | xcopy content "$(ProjectDir)NuGet\input\content" /S /Y | ||
<PropertyGroup> | cd "$(ProjectDir)NuGet" | ||
<PostBuildEvent>copy *.dll "$(ProjectDir)NuGet\input\lib\40" | IF NOT EXIST output md output | ||
xcopy content "$(ProjectDir)NuGet\input\content" /S /Y | nuget pack mvcmailer.nuspec -b input -o output | ||
cd "$(ProjectDir)NuGet" | </PostBuildEvent> | ||
IF NOT EXIST output md output | </PropertyGroup> | ||
nuget pack mvcmailer.nuspec -b input -o output | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
</PostBuildEvent> | Other similar extension points exist, see Microsoft.Common.targets. | ||
</PropertyGroup> | <Target Name="BeforeBuild"> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | </Target> | ||
Other similar extension points exist, see Microsoft.Common.targets. | <Target Name="AfterBuild"> | ||
<Target Name="BeforeBuild"> | </Target> | ||
</Target> | --> | ||
<Target Name="AfterBuild"> | |||
</Target> | |||
--> | |||
</Project> | </Project> |
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,5 +1,4 @@ | |||
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #> | <#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #> | ||
<#@ Output Extension="cs" #> | <#@ Output Extension="cs" #> | ||
|
|
||
MailMessage <#= Model.MethodName #>(); | MvcMailMessage <#= Model.MethodName #>(); | ||
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,21 +1,12 @@ | |||
<#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #> | <#@ Template Language="C#" HostSpecific="True" Inherits="DynamicTransform" #> | ||
<#@ Output Extension="cs" #> | <#@ Output Extension="cs" #> | ||
using System; | |||
using System.Collections.Generic; | |||
using System.Linq; | |||
using System.Web; | |||
using Mvc.Mailer; | using Mvc.Mailer; | ||
using System.Net.Mail; | |||
|
|
||
namespace <#= Model.Namespace #>.Mailers | namespace <#= Model.Namespace #>.Mailers | ||
{ | { | ||
public interface I<#= Model.MailerName #> | public interface I<#= Model.MailerName #> | ||
{ | { | ||
<# foreach(var mailerMethod in Model.MailerMethods) {#> | <# foreach(var mailerMethod in Model.MailerMethods) {#> | ||
|
MvcMailMessage <#= mailerMethod #>(); | ||
MailMessage <#= mailerMethod #>(); | <# } #>} | ||
|
|||
<# } #> | |||
|
|||
} | |||
} | } |
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
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
This file was deleted.
Oops, something went wrong.