Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit f1ca826

Browse files
committed
update release infrastructure
1 parent c71ce10 commit f1ca826

7 files changed

Lines changed: 62 additions & 21 deletions

File tree

AssemblyVersion.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: AssemblyCompany("gasparnagy.com")]
6+
[assembly: AssemblyProduct("BoDi")]
7+
[assembly: AssemblyCopyright("Copyright (C) 2010-2017, Gaspar Nagy (http://gasparnagy.com)")]
8+
[assembly: AssemblyTrademark("")]
9+
[assembly: AssemblyCulture("")]
10+
11+
// Version information for an assembly consists of the following four values:
12+
//
13+
// Major Version
14+
// Minor Version
15+
// Build Number
16+
// Revision
17+
//
18+
// You can specify all the values or you can default the Build and Revision Numbers
19+
// by using the '*' as shown below:
20+
// [assembly: AssemblyVersion("1.0.*")]
21+
[assembly: AssemblyVersion("1.0.0.0")]
22+
[assembly: AssemblyFileVersion("1.0.0.0")]
23+
[assembly: AssemblyInformationalVersion("1.0.0-localdev")]

BoDi.NuGetPackages/BoDi.NuGetPackages.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<None Include="packages.config" />
2525
<None Include="Properties\build.props" />
2626
<None Include="Properties\MSBNuget.props" />
27+
<None Include="release_to_local.cmd" />
2728
</ItemGroup>
2829
<Import Condition="Exists('$(MSBuildProjectDirectory)\.build\build.props')" Project="$(MSBuildProjectDirectory)\.build\build.props" />
2930
<Import Condition="Exists('$(MSBuildProjectDirectory)\.build\build.targets')" Project="$(MSBuildProjectDirectory)\.build\build.targets" />
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@pushd %~dp0
2+
3+
set VERSION=%1
4+
set PKGVER=%1%2
5+
set CONFIG="/p:Configuration=Release"
6+
7+
@echo local NuGet publish folder: %NUGET_LOCAL_FEED%
8+
@echo publishing version %VERSION%, pkg version %PKGVER%, %CONFIG%, OK?
9+
@pause
10+
11+
cd ..
12+
13+
copy /Y AssemblyVersion.cs AssemblyVersion.cs.bak
14+
powershell -Command "(gc 'AssemblyVersion.cs') -replace '1.0.0-localdev', '%PKGVER%' | Out-File 'AssemblyVersion.cs'"
15+
powershell -Command "(gc 'AssemblyVersion.cs') -replace '1.0.0.0', '%VERSION%.0' | Out-File 'AssemblyVersion.cs'"
16+
17+
msbuild BoDi.sln %CONFIG%
18+
19+
cd BoDi.NuGetPackages
20+
21+
msbuild BoDi.NuGetPackages.csproj "/p:NuGetVersion=%PKGVER%" /p:NugetPublishToLocalNugetFeed=true /t:Publish /p:NugetPublishLocalNugetFeedFolder=%NUGET_LOCAL_FEED% %CONFIG%
22+
23+
cd ..
24+
move /Y AssemblyVersion.cs.bak AssemblyVersion.cs
25+
26+
@popd

BoDi.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoDi.Tests", "BoDi.Tests\Bo
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BoDi.NuGetPackages", "BoDi.NuGetPackages\BoDi.NuGetPackages.csproj", "{EC40ACB0-A6B9-4776-9078-B1D72D244787}"
1111
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7217B121-6C06-433B-A8A0-A0B1CF18FFE0}"
13+
ProjectSection(SolutionItems) = preProject
14+
LICENSE.txt = LICENSE.txt
15+
README.rdoc = README.rdoc
16+
EndProjectSection
17+
EndProject
1218
Global
1319
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1420
Debug|Any CPU = Debug|Any CPU

BoDi/BoDi.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
<Reference Include="System.Xml" />
5050
</ItemGroup>
5151
<ItemGroup>
52+
<Compile Include="..\AssemblyVersion.cs">
53+
<Link>Properties\AssemblyVersion.cs</Link>
54+
</Compile>
5255
<Compile Include="BoDi.cs" />
5356
<Compile Include="Properties\AssemblyInfo.cs" />
5457
</ItemGroup>

BoDi/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("BoDi")]
8+
[assembly: AssemblyTitle("BoDi")]
99
[assembly: AssemblyDescription("https://github.com/gasparnagy/bodi")]
1010
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("gasparnagy.com")]
12-
[assembly: AssemblyProduct("BoDi")]
13-
[assembly: AssemblyCopyright("Copyright (C) 2010-2015, Gaspar Nagy (http://gasparnagy.com)")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
1611

1712
// Setting ComVisible to false makes the types in this assembly not visible
1813
// to COM components. If you need to access a type in this assembly from
@@ -21,16 +16,3 @@
2116

2217
// The following GUID is for the ID of the typelib if this project is exposed to COM
2318
[assembly: Guid("7fef7fff-1ea9-4ffc-8368-8a6ee9aa4e19")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.0.0")]

README.rdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
= MiniDi
1+
= BoDi
22

33
A very simple IoC container, easily embeddable also as a source code.
44

55
Was created to support SpecFlow: http://www.specflow.org
66

77
== Copyright
88

9-
Copyright (c) TechTalk. See LICENSE for details.
9+
Copyright (c) Gaspar Nagy. See LICENSE for details.
1010

0 commit comments

Comments
 (0)