Skip to content
Permalink
Browse files

Updated build.bat to generate release notes in NuGet packages.

  • Loading branch information
dotnetjunkie committed Mar 6, 2020
1 parent 8392e13 commit f2aff0e799a1b14ef1f8af151a4daff840b58336
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/build.bat
@@ -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
@@ -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
@@ -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
)

0 comments on commit f2aff0e

Please sign in to comment.
You can’t perform that action at this time.