Skip to content

Commit 9a81b04

Browse files
authored
Merge pull request #152 from WebApiContrib/damienbod/release_2_0_6
Damienbod/release 2 0 6
2 parents 838cdea + afeb7e5 commit 9a81b04

File tree

6 files changed

+29
-34
lines changed

6 files changed

+29
-34
lines changed

samples/WebApiContrib.Core.Samples/Startup.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using WebApiContrib.Core.Versioning;
1212
using WebApiContrib.Core.Samples.Services;
1313
using Microsoft.AspNetCore.Http;
14-
using Microsoft.AspNetCore.Server.Kestrel.Core;
1514

1615
namespace WebApiContrib.Core.Samples
1716
{
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
using System.IO;
1+
using Microsoft.AspNetCore;
22
using Microsoft.AspNetCore.Hosting;
33

44
namespace WebApiContrib.Core.WebPages.Samples
55
{
66
public class Program
77
{
8-
public static void Main(string[] args)
9-
{
10-
var host = new WebHostBuilder()
11-
.UseKestrel()
12-
.UseContentRoot(Directory.GetCurrentDirectory())
13-
.UseIISIntegration()
14-
.UseStartup<Startup>()
15-
.Build();
16-
17-
host.Run();
18-
}
8+
public static void Main(string[] args)
9+
{
10+
CreateWebHostBuilder(args).Build().Run();
11+
}
12+
13+
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
14+
WebHost.CreateDefaultBuilder(args)
15+
.UseStartup<Startup>();
1916
}
2017
}
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
2-
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFramework>netcoreapp2.1</TargetFramework>
55
<PreserveCompilationContext>true</PreserveCompilationContext>
66
<AssemblyName>WebApiContrib.Core.WebPages.Samples</AssemblyName>
77
<OutputType>Exe</OutputType>
88
<PackageId>WebApiContrib.Core.WebPages.Samples</PackageId>
9-
</PropertyGroup>
10-
9+
</PropertyGroup>
10+
1111
<ItemGroup>
1212
<Content Update="wwwroot\**\*;Views\**\*;appsettings.json;web.config">
1313
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
1414
</Content>
15-
</ItemGroup>
16-
15+
</ItemGroup>
16+
1717
<ItemGroup>
1818
<ProjectReference Include="..\..\src\WebApiContrib.Core.WebPages\WebApiContrib.Core.WebPages.csproj" />
1919
<ProjectReference Include="..\..\src\WebApiContrib.Core.TagHelpers.Markdown\WebApiContrib.Core.TagHelpers.Markdown.csproj" />
20-
</ItemGroup>
21-
20+
</ItemGroup>
21+
2222
<ItemGroup>
23-
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" />
24-
</ItemGroup>
25-
26-
</Project>
23+
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.4" />
24+
</ItemGroup>
25+
26+
</Project>

samples/WebApiContrib.Core.WebPages.Samples/runtimeconfig.template.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/WebApiContrib.Core.Formatter.Csv/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ WebApiContrib.Core.Formatter.Csv [![NuGet Status](http://img.shields.io/nuget/v/
44

55
# History
66

7+
2018.09.14: Added correct usage of CanRead/CanReadType
78
2018.05.31: Adding support for ignoring propeties in the CSV DTO
89
2018.04.18: Adding support for customization of the header with the display attribute
910
2018.04.12: Using the encoding from the options in the CsvOutputFormatter, Don't buffer CSV

src/WebApiContrib.Core.Formatter.Csv/WebApiContrib.Core.Formatter.Csv.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,25 @@
22

33
<PropertyGroup>
44
<Description>ASP.NET Core InputFormatter, OutputFormatter for IList CSV data</Description>
5-
<VersionPrefix>2.0.4</VersionPrefix>
5+
<VersionPrefix>2.0.6</VersionPrefix>
66
<Authors>damienbod;WebApiContrib Contributors</Authors>
77
<TargetFrameworks>netstandard2.0</TargetFrameworks>
88
<AssemblyName>WebApiContrib.Core.Formatter.Csv</AssemblyName>
99
<PackageId>WebApiContrib.Core.Formatter.Csv</PackageId>
1010
<PackageTags>ASP.NET Core;InputFormatter;OutputFormatter;MediaFormatter;CSV;Content-Type;aspnetcore</PackageTags>
11-
<PackageReleaseNotes>Adding support for ignoring properties</PackageReleaseNotes>
11+
<PackageReleaseNotes>Added correct usage of CanRead/CanReadType</PackageReleaseNotes>
1212
<PackageIconUrl>https://avatars1.githubusercontent.com/u/1561645?s=140</PackageIconUrl>
1313
<PackageProjectUrl>https://github.com/damienbod/WebAPIContrib.Core/tree/master/src/WebApiContrib.Core.Formatter.Csv</PackageProjectUrl>
1414
<RepositoryType>git</RepositoryType>
1515
<RepositoryUrl>https://github.com/WebApiContrib/WebAPIContrib.Core.git</RepositoryUrl>
1616
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1717
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
1818
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
19-
<Version>2.0.5</Version>
20-
<AssemblyVersion>2.0.5</AssemblyVersion>
21-
<FileVersion>2.0.5</FileVersion>
19+
<Version>2.0.6</Version>
20+
<AssemblyVersion>2.0.6</AssemblyVersion>
21+
<FileVersion>2.0.6</FileVersion>
2222
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
23+
<PackageLicenseUrl>https://github.com/WebApiContrib/WebAPIContrib.Core/blob/master/LICENSE</PackageLicenseUrl>
2324
</PropertyGroup>
2425

2526
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">

0 commit comments

Comments
 (0)