Skip to content

Commit

Permalink
Bump version to 1.1.0 #7
Browse files Browse the repository at this point in the history
  • Loading branch information
hbulens committed Apr 27, 2021
1 parent 339e307 commit 33c47a5
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;net461</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand Down
26 changes: 22 additions & 4 deletions src/Facteur.Attachments.IO/Facteur.Attachments.IO.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
<Project Sdk="Microsoft.NET.Sdk">

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFrameworks>net5.0;netstandard2.1;net461</TargetFrameworks>
<RuntimeIdentifiers>win</RuntimeIdentifiers>
<AssemblyTitle>Facteur.Attachments.IO</AssemblyTitle>
<Company>Dimenics</Company>
<Product>Facteur</Product>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
<NeutralLanguage>en</NeutralLanguage>
<RepositoryType>git</RepositoryType>
<PackageIconUrl>https://raw.githubusercontent.com/dimenics/facteur/master/assets/facteur.png?raw=true</PackageIconUrl>
<RepositoryUrl>https://github.com/dimenics/facteur</RepositoryUrl>
<PackageProjectUrl>https://github.com/dimenics/facteur</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>Add attachments using simple IO</Description>
<PackageTags>Facteur;Email;Mail;RazorEngine;Scriban;SendGrid;Graph;SMTP</PackageTags>
<Version>1.1.0</Version>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Facteur\Facteur.csproj" />
</ItemGroup>
Expand Down
19 changes: 15 additions & 4 deletions src/Facteur.Attachments.IO/FileAttachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ namespace Facteur.Attachments.IO
{
public class FileAttachment : IAttachmentSource
{
public async Task<Attachment> Fetch(string path) => new()
public async Task<Attachment> Fetch(string path)
{
ContentBytes = await File.ReadAllBytesAsync(path),
Name = Path.GetFileName(path)
};
#if NET461
return new()
{
ContentBytes = File.ReadAllBytes(path),
Name = Path.GetFileName(path)
};
#else
return new()
{
ContentBytes = await File.ReadAllBytesAsync(path),
Name = Path.GetFileName(path)
};
#endif
}
}
}
2 changes: 1 addition & 1 deletion src/Facteur.Compilers.Razor/Facteur.Compilers.Razor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Description>Create e-mail bodies using the RazorEngine template engine.</Description>
<PackageTags>Facteur;Email;Mail;RazorEngine</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/dimenics/facteur/master/assets/facteur.png?raw=true</PackageIconUrl>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
<PackageProjectUrl>https://github.com/dimenics/facteur</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>Create e-mail bodies using the Scriban template engine.</Description>
<PackageTags>Facteur;Email;Mail;Scriban</PackageTags>
<PackageTags>Facteur;Email;Mail;Scriban</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/dimenics/facteur/master/assets/facteur.png?raw=true</PackageIconUrl>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Facteur;Email;Mail;RazorEngine;Scriban;SendGrid;Graph;SMTP</PackageTags>
<Description>ASP.NET Core extensions for facteur.</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
2 changes: 1 addition & 1 deletion src/Facteur.MsGraph/Facteur.MsGraph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Facteur;Email;Mail;Graph;Microsoft</PackageTags>
<Description>Send e-mails using the MS Graph endpoint</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageTags>Facteur;Email;Mail</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>Map and resolve e-mail templates using the view model type names</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Facteur.SendGrid/Facteur.SendGrid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Facteur;Email;Mail;SendGrid</PackageTags>
<Description>Send e-mails using the SendGrid endpoint</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
2 changes: 1 addition & 1 deletion src/Facteur.Smtp/Facteur.Smtp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Facteur;Email;Mail;SMTP</PackageTags>
<Description>Send e-mails using SMTP</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>Facteur;Email;Mail;IO</PackageTags>
<Description>Store and retrieve e-mail templates in local Windows directories</Description>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
<Authors>Dimenics</Authors>
<Company>Dimenics</Company>
<Product>Facteur</Product>
Expand Down
2 changes: 1 addition & 1 deletion src/Facteur/Facteur.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Description>A modular and composable mailing kit for .NET</Description>
<PackageTags>Facteur;Email;Mail;RazorEngine;Scriban;SendGrid;Graph;SMTP</PackageTags>
<Version>1.0.1</Version>
<Version>1.1.0</Version>
</PropertyGroup>
</Project>

0 comments on commit 33c47a5

Please sign in to comment.