Skip to content

Commit 13c6103

Browse files
Chris Martinezcommonsensesoftware
authored andcommitted
Refactor package release notes
1 parent af844d9 commit 13c6103

File tree

18 files changed

+21
-32
lines changed

18 files changed

+21
-32
lines changed

build/nuget.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<IncludeBuildOutput>true</IncludeBuildOutput>
1414
<MinClientVersion>2.5</MinClientVersion>
1515
<PackageOutputPath Condition=" $(PackageOutputPath) == '' ">$(MSBuildThisFileDirectory)..\bin</PackageOutputPath>
16+
<NoWarn>NU5118;$(NoWarn)</NoWarn>
1617
</PropertyGroup>
1718

1819
<ItemGroup Label="NuGet">

build/nuget.targets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33

44
<Target Name="GenerateReleaseNotes" BeforeTargets="GenerateNuspec" Label="NuGet">
55

6+
<PropertyGroup>
7+
<ReleaseNotesFile>$(MSBuildProjectDirectory)\ReleaseNotes.txt</ReleaseNotesFile>
8+
</PropertyGroup>
9+
10+
<ReadLinesFromFile File="$(ReleaseNotesFile)" Condition="Exists('$(ReleaseNotesFile)')" >
11+
<Output TaskParameter="Lines" ItemName="ReleaseNotes"/>
12+
</ReadLinesFromFile>
13+
14+
<ItemGroup Condition=" @(ReleaseNotes->Count()) == 0 ">
15+
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v$(PackageVersion)" />
16+
</ItemGroup>
17+
618
<PropertyGroup>
719
<ReleaseNoteCount>@(ReleaseNotes->Count())</ReleaseNoteCount>
820
<PackageReleaseNotes Condition=" $(ReleaseNoteCount) &lt; 2 " >@(ReleaseNotes->'%(Identity)')</PackageReleaseNotes>

src/Microsoft.AspNet.OData.Versioning.ApiExplorer/Microsoft.AspNet.OData.Versioning.ApiExplorer.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
<Compile Include="..\Common.OData\TypeExtensions.cs" Link="AspNet.OData\TypeExtensions.cs" />
1616
</ItemGroup>
1717

18-
<ItemGroup>
19-
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v3.0.0" />
20-
</ItemGroup>
21-
2218
<ItemGroup>
2319
<ProjectReference Include="..\Microsoft.AspNet.OData.Versioning\Microsoft.AspNet.OData.Versioning.csproj" />
2420
<ProjectReference Include="..\Microsoft.AspNet.WebApi.Versioning.ApiExplorer\Microsoft.AspNet.WebApi.Versioning.ApiExplorer.csproj" />
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Microsoft.AspNet.OData.Versioning/Microsoft.AspNet.OData.Versioning.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
<PackageTags>Microsoft;AspNet;AspNetWebAPI;OData;Versioning</PackageTags>
1212
</PropertyGroup>
1313

14-
<ItemGroup>
15-
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v3.0.0" />
16-
</ItemGroup>
17-
1814
<ItemGroup>
1915
<ProjectReference Include="..\Microsoft.AspNet.WebApi.Versioning\Microsoft.AspNet.WebApi.Versioning.csproj" />
2016
</ItemGroup>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Microsoft.AspNet.WebApi.Versioning.ApiExplorer/Microsoft.AspNet.WebApi.Versioning.ApiExplorer.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
<PackageTags>Microsoft;AspNet;AspNetWebAPI;Versioning;ApiExplorer</PackageTags>
1212
</PropertyGroup>
1313

14-
<ItemGroup>
15-
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v3.0.0" />
16-
</ItemGroup>
17-
1814
<ItemGroup>
1915
<Compile Include="..\Shared\SharedAssemblyInfo.cs" Link="SharedAssemblyInfo.cs" />
2016
</ItemGroup>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


src/Microsoft.AspNet.WebApi.Versioning/Microsoft.AspNet.WebApi.Versioning.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
<PackageTags>Microsoft;AspNet;AspNetWebAPI;Versioning</PackageTags>
1212
</PropertyGroup>
1313

14-
<ItemGroup>
15-
<ReleaseNotes Include="https://github.com/Microsoft/aspnet-api-versioning/releases/tag/v3.0.0" />
16-
</ItemGroup>
17-
1814
<ItemGroup>
1915
<PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="[5.2.3,6.0.0)" />
2016
</ItemGroup>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


0 commit comments

Comments
 (0)