Skip to content

Commit

Permalink
Final update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPaskhin committed Sep 29, 2019
1 parent c881777 commit df31458
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@

using Microsoft.Net.Http.Headers;

namespace Microsoft.AspNetCore.Mvc.Formatters.Xml.Internal
namespace Microsoft.AspNetCore.Mvc.Formatters
{
internal static class MediaTypeHeaderValues
{
public static readonly MediaTypeHeaderValue ApplicationJson
= MediaTypeHeaderValue.Parse("application/json").CopyAsReadOnly();

public static readonly MediaTypeHeaderValue TextJson
= MediaTypeHeaderValue.Parse("text/json").CopyAsReadOnly();

public static readonly MediaTypeHeaderValue ApplicationAnyJsonSyntax
= MediaTypeHeaderValue.Parse("application/*+json").CopyAsReadOnly();

public static readonly MediaTypeHeaderValue ApplicationXml
= MediaTypeHeaderValue.Parse("application/xml").CopyAsReadOnly();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<Version>$(XmlResultVersion)</Version>
<AssemblyVersion>$(XmlResultVersion)</AssemblyVersion>
<FileVersion>$(XmlResultVersion)</FileVersion>
<Authors>Wallsmedia Ltd</Authors>
<Authors>Alexander Paskhin</Authors>
<Copyright>Copyright (c) $([System.DateTime]::Now.ToString('yyyy')) .NET Foundation. All rights reserved.</Copyright>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -21,7 +21,7 @@
<SignAssembly>true</SignAssembly>
<PackageId>Microsoft.AspNetCore.Mvc.Formatters.Xml.Extensions</PackageId>
<PackageTags>aspnetcore;aspnetcoremvc;xml;xmlresult;fromxmlbody</PackageTags>
<PackageReleaseNotes>Released for Asp.NetCore.Mvc $(AspNetCoreVersion); NETStandard.Library $(NETStandardVersion) </PackageReleaseNotes>
<PackageReleaseNotes>Released for Microsoft.AspNetCore.App 3.0.0</PackageReleaseNotes>
<PackageProjectUrl>http:https://github.com/Wallsmedia/XmlResult</PackageProjectUrl>
<PackageLicenseUrl></PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
Expand All @@ -41,6 +41,7 @@
</ItemGroup>

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>../../.nupkgs</PackageOutputPath>
</PropertyGroup>
Expand Down

0 comments on commit df31458

Please sign in to comment.