Skip to content

Commit

Permalink
Updated build.bat to generate release notes in NuGet packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnetjunkie committed Mar 6, 2020
1 parent 8392e13 commit f2aff0e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set buildNumber=0
set copyrightYear=%datetime:~0,4%
set version=%1
set prereleasePostfix=
set releaseNotesUrl=https://github.com/simpleinjector/SimpleInjector/releases/tag/v

IF "%2"=="1" (
set step=%2
Expand Down Expand Up @@ -151,6 +152,15 @@ IF %step%==1 (
%replace% /line "<VersionPrefix>" "<VersionPrefix>%named_version_Integration_WebApi%</VersionPrefix>" /source:SimpleInjector.Integration.WebApi\SimpleInjector.Integration.WebApi.csproj
%replace% /line "<VersionPrefix>" "<VersionPrefix>%named_version_Packaging%</VersionPrefix>" /source:SimpleInjector.Packaging\SimpleInjector.Packaging.csproj

echo SET PACKAGE RELEASE NOTES

%replace% /line "<PackageReleaseNotes>" "<PackageReleaseNotes>%releaseNotesUrl%%version_Integration_ServiceCollection%</PackageReleaseNotes>" /source:SimpleInjector.Integration.ServiceCollection\SimpleInjector.Integration.ServiceCollection.csproj
%replace% /line "<PackageReleaseNotes>" "<PackageReleaseNotes>%releaseNotesUrl%%version_Integration_GenericHost%</PackageReleaseNotes>" /source:SimpleInjector.Integration.GenericHost\SimpleInjector.Integration.GenericHost.csproj
%replace% /line "<PackageReleaseNotes>" "<PackageReleaseNotes>%releaseNotesUrl%%version_Integration_AspNetCore%</PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore\SimpleInjector.Integration.AspNetCore.csproj
%replace% /line "<PackageReleaseNotes>" "<PackageReleaseNotes>%releaseNotesUrl%%version_Integration_AspNetCore_Mvc_Core%</PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore.Mvc.Core\SimpleInjector.Integration.AspNetCore.Mvc.Core.csproj
%replace% /line "<PackageReleaseNotes>" "<PackageReleaseNotes>%releaseNotesUrl%%version_Integration_AspNetCore_Mvc%</PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore.Mvc\SimpleInjector.Integration.AspNetCore.Mvc.csproj


rem echo BUILD SOLUTION

rem %msbuild% "SimpleInjector\SimpleInjector.csproj" /nologo
Expand Down Expand Up @@ -387,6 +397,14 @@ IF %step%==5 (
%replace% /line "<VersionPrefix>" " <VersionPrefix>4.0.0</VersionPrefix>" /source:SimpleInjector.Integration.WebApi\SimpleInjector.Integration.WebApi.csproj
%replace% /line "<VersionPrefix>" " <VersionPrefix>4.0.0</VersionPrefix>" /source:SimpleInjector.Packaging\SimpleInjector.Packaging.csproj

echo RESTORING PACKAGE RELEASE NOTES

%replace% /line "<PackageReleaseNotes>" " <PackageReleaseNotes></PackageReleaseNotes>" /source:SimpleInjector.Integration.ServiceCollection\SimpleInjector.Integration.ServiceCollection.csproj
%replace% /line "<PackageReleaseNotes>" " <PackageReleaseNotes></PackageReleaseNotes>" /source:SimpleInjector.Integration.GenericHost\SimpleInjector.Integration.GenericHost.csproj
%replace% /line "<PackageReleaseNotes>" " <PackageReleaseNotes></PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore\SimpleInjector.Integration.AspNetCore.csproj
%replace% /line "<PackageReleaseNotes>" " <PackageReleaseNotes></PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore.Mvc.Core\SimpleInjector.Integration.AspNetCore.Mvc.Core.csproj
%replace% /line "<PackageReleaseNotes>" " <PackageReleaseNotes></PackageReleaseNotes>" /source:SimpleInjector.Integration.AspNetCore.Mvc\SimpleInjector.Integration.AspNetCore.Mvc.csproj

echo Done!
GOTO :EOF
)
Expand Down

0 comments on commit f2aff0e

Please sign in to comment.