Skip to content

Commit aa1d36b

Browse files
Chris Martinezcommonsensesoftware
Chris Martinez
authored andcommitted
Update release notes
1 parent cc763cf commit aa1d36b

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

build.targets

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<ItemGroup Condition=" '$(AdditionalReleaseNotes)' != '' ">
18-
<ReleaseNotes Include="$(AdditionalReleaseNotes)" />
18+
<ReleaseNotes Include="$(AdditionalReleaseNotes.Split('|'))" />
1919
</ItemGroup>
2020

2121
<PropertyGroup Label="NuGet">
@@ -30,7 +30,6 @@
3030
<IncludeBuildOutput>true</IncludeBuildOutput>
3131
<MinClientVersion>2.5</MinClientVersion>
3232
<PackageOutputPath>$(MSBuildThisFileDirectory)\bin</PackageOutputPath>
33-
<PackageReleaseNotes>@(ReleaseNotes->'• %(Identity)','%0D%0A')</PackageReleaseNotes>
3433
</PropertyGroup>
3534

3635
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
@@ -50,4 +49,14 @@
5049
<CodeAnalysisDictionary Include="$(MSBuildThisFileDirectory)CustomDictionary.xml" Link="CustomDictionary.xml" />
5150
</ItemGroup>
5251

52+
<Target Name="GenerateReleaseNotes" AfterTargets="BeforeBuild">
53+
54+
<PropertyGroup>
55+
<ReleaseNoteCount>@(ReleaseNotes->Count())</ReleaseNoteCount>
56+
<PackageReleaseNotes Condition=" $(ReleaseNoteCount) &lt; 2 " >@(ReleaseNotes->'%(Identity)')</PackageReleaseNotes>
57+
<PackageReleaseNotes Condition=" $(ReleaseNoteCount) &gt; 1 " >@(ReleaseNotes->'• %(Identity)','%0D%0A')</PackageReleaseNotes>
58+
</PropertyGroup>
59+
60+
</Target>
61+
5362
</Project>

src/Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer/Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<ReleaseNotes Include="Complementary release for ASP.NET Core 2.0" />
16+
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v2.0.0" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/Microsoft.AspNetCore.Mvc.Versioning/Microsoft.AspNetCore.Mvc.Versioning.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<ReleaseNotes Include="Complementary release for ASP.NET Core 2.0" />
16+
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v2.0.0" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

0 commit comments

Comments
 (0)