Skip to content

Commit df983ba

Browse files
committed
CommonAssemblyInfo.cs generated with Rakefile.
1 parent 1b3e487 commit df983ba

13 files changed

+42
-142
lines changed

Rakefile.rb

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
PRODUCT = "Command Line Parser Library"
22
DESCRIPTION = "Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments."
3-
VERSION = "1.9.4.125"
3+
INF_VERSION = "1.9"
4+
VERSION = INF_VERSION + ".4.131"
45
COPYRIGHT = "Copyright (c) 2005 - 2013 Giacomo Stelluti Scala"
56
LICENSE_URL = "https://raw.github.com/gsscoder/commandline/master/doc/LICENSE"
67
PROJECT_URL = "https://github.com/gsscoder/commandline"
@@ -66,6 +67,16 @@ def invoke_runtime(cmd)
6667
sh "#{invstrtool} -i #{LIB_DIR}/Internal/SR.strings -n CommandLine.Internal"
6768
end
6869

70+
assemblyinfo :assemblyinfo do |a|
71+
a.product_name = PRODUCT
72+
#a.description = DESCRIPTION
73+
a.version = a.file_version = VERSION
74+
a.copyright = COPYRIGHT
75+
a.custom_attributes :AssemblyInformationalVersion => INF_VERSION, :NeutralResourcesLanguage => "en-US"
76+
a.output_file = "src/CommonAssemblyInfo.cs"
77+
a.namespaces "System.Runtime.CompilerServices", "System.Resources"
78+
end
79+
6980
task :clean do
7081
FileUtils.rm_rf BUILD_DIR
7182
FileUtils.rm_rf "src/libcmdline/bin"

doc/ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2013-01-24 Giacomo Stelluti Scala <[email protected]>
2+
3+
* src/CommonAssemblyInfo.cs generated with Rakefile.rb.
4+
15
2013-01-23 Giacomo Stelluti Scala <[email protected]>
26

37
* All CommandLineParser partials merged.

src/CommonAssemblyInfo.cs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Runtime.CompilerServices;
2+
using System.Resources;
3+
using System.Reflection;
4+
using System.Runtime.InteropServices;
5+
[assembly: AssemblyProduct("Command Line Parser Library")]
6+
[assembly: AssemblyCopyright("Copyright (c) 2005 - 2013 Giacomo Stelluti Scala")]
7+
[assembly: AssemblyVersion("1.9.4.131")]
8+
[assembly: AssemblyFileVersion("1.9.4.131")]
9+
10+
[assembly: AssemblyInformationalVersion("1.9")]
11+
[assembly: NeutralResourcesLanguage("en-US")]

src/demo/CommandLine.Demo.csproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
</Compile>
7676
<Compile Include="Program.cs" />
7777
<Compile Include="Properties\AssemblyInfo.cs" />
78-
<Compile Include="Properties\ThisAssembly.cs" />
7978
<Compile Include="..\libcmdline\Internal\ArgumentParser.cs">
8079
<Link>Library\Internal\ArgumentParser.cs</Link>
8180
</Compile>
@@ -148,9 +147,6 @@
148147
<Compile Include="..\libcmdline\Attributes\VerbOptionAttribute.cs">
149148
<Link>Library\Attributes\VerbOptionAttribute.cs</Link>
150149
</Compile>
151-
<Compile Include="..\libcmdline\Properties\ThisLibrary.cs">
152-
<Link>Library\ThisLibrary.cs</Link>
153-
</Compile>
154150
<Compile Include="..\libcmdline\BadOptionInfo.cs">
155151
<Link>Library\BadOptionInfo.cs</Link>
156152
</Compile>
@@ -175,6 +171,9 @@
175171
<Compile Include="Program.Options.cs">
176172
<DependentUpon>Program.cs</DependentUpon>
177173
</Compile>
174+
<Compile Include="..\CommonAssemblyInfo.cs">
175+
<Link>Properties\CommonAssemblyInfo.cs</Link>
176+
</Compile>
178177
</ItemGroup>
179178
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
180179
<ItemGroup>

src/demo/Properties/AssemblyInfo.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,8 @@
3232
using CommandLine.Text;
3333
#endregion
3434

35-
[assembly: AssemblyTitle(ThisAssembly.Title)]
36-
[assembly: AssemblyProduct("Command Line Parsing Library")]
35+
[assembly: AssemblyTitle("demoapp.exe")]
3736
[assembly: AssemblyDescription("Sample Application for Command Line Library")]
38-
[assembly: AssemblyCopyright(ThisAssembly.Copyright)]
39-
[assembly: AssemblyVersion(ThisAssembly.Version)]
40-
[assembly: AssemblyInformationalVersionAttribute(ThisAssembly.InformationalVersion)]
4137
[assembly: AssemblyCulture("")]
4238

4339
// here we're using new CommandLine.Text attributes

src/demo/Properties/ThisAssembly.cs

-35
This file was deleted.

src/libcmdline/CommandLine.csproj

+3-2
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@
9898
<Compile Include="Internal\ArgumentParser.cs" />
9999
<Compile Include="Internal\IArgumentEnumerator.cs" />
100100
<Compile Include="Internal\PresentParserState.cs" />
101-
<Compile Include="Properties\ThisAssembly.cs" />
102101
<Compile Include="Properties\AssemblyInfo.cs" />
103102
<Compile Include="Text\HelpText.cs" />
104-
<Compile Include="Properties\ThisLibrary.cs" />
105103
<Compile Include="Text\BaseSentenceBuilder.cs" />
106104
<Compile Include="Text\EnglishSentenceBuilder.cs" />
107105
<Compile Include="Text\CopyrightInfo.cs" />
@@ -121,6 +119,9 @@
121119
<Compile Include="IParserState.cs" />
122120
<Compile Include="ParserState.cs" />
123121
<Compile Include="ParsingError.cs" />
122+
<Compile Include="..\CommonAssemblyInfo.cs">
123+
<Link>Properties\CommonAssemblyInfo.cs</Link>
124+
</Compile>
124125
</ItemGroup>
125126
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
126127
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

src/libcmdline/Properties/AssemblyInfo.cs

+2-7
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,8 @@
3434
using System.Runtime.InteropServices;
3535
#endregion
3636

37-
[assembly: AssemblyTitle(ThisAssembly.Title)]
38-
[assembly: AssemblyProduct("Command Line Parsing Library")]
39-
[assembly: AssemblyDescription(ThisAssembly.Title)]
40-
[assembly: AssemblyCopyright(ThisAssembly.Copyright)]
41-
[assembly: AssemblyVersion(ThisAssembly.Version)]
42-
[assembly: AssemblyInformationalVersion(ThisAssembly.InformationalVersion)]
43-
[assembly: NeutralResourcesLanguage("en-US")]
37+
[assembly: AssemblyTitle("CommandLine.dll")]
38+
[assembly: AssemblyDescription("Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments.")]
4439
[assembly: AssemblyCulture("")]
4540
#if DEBUG
4641
[assembly: AssemblyConfiguration("Debug")]

src/libcmdline/Properties/ThisAssembly.cs

-35
This file was deleted.

src/libcmdline/Properties/ThisLibrary.cs

-41
This file was deleted.

src/tests/CommandLine.Tests.csproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@
105105
<Compile Include="..\libcmdline\Internal\Target.cs">
106106
<Link>Library\Internal\Target.cs</Link>
107107
</Compile>
108-
<Compile Include="..\libcmdline\Properties\ThisLibrary.cs">
109-
<Link>Library\ThisLibrary.cs</Link>
110-
</Compile>
111108
<Compile Include="..\libcmdline\Text\Attributes\AssemblyLicenseAttribute.cs">
112109
<Link>Library\Text\Attributes\AssemblyLicenseAttribute.cs</Link>
113110
</Compile>
@@ -202,7 +199,6 @@
202199
<Compile Include="Text\HelpTextFixture.cs" />
203200
<Compile Include="Text\VerbsHelpTextFixture.cs" />
204201
<Compile Include="Utility\ReflectionUtilFixture.cs" />
205-
<Compile Include="Properties\ThisAssembly.cs" />
206202
<Compile Include="Parser\SingletonFixture.cs" />
207203
<Compile Include="Mocks\SimpleOptionsWithDefaults.cs" />
208204
<Compile Include="Mocks\SimpleOptionsWithBadDefaults.cs" />
@@ -237,6 +233,9 @@
237233
<Compile Include="..\libcmdline\ParsingError.cs">
238234
<Link>Library\ParsingError.cs</Link>
239235
</Compile>
236+
<Compile Include="..\CommonAssemblyInfo.cs">
237+
<Link>Properties\CommonAssemblyInfo.cs</Link>
238+
</Compile>
240239
</ItemGroup>
241240
<ItemGroup>
242241
<None Include="packages.config" />

src/tests/Properties/AssemblyInfo.cs

+2-7
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,8 @@
3535
using CommandLine.Text;
3636
#endregion
3737

38-
[assembly: AssemblyTitle(_ThisAssembly.Title)]
39-
[assembly: AssemblyProduct("Command Line Parsing Library")]
40-
[assembly: AssemblyDescription(_ThisAssembly.Title)]
41-
[assembly: AssemblyCopyright(_ThisAssembly.Copyright)]
42-
[assembly: AssemblyVersion(_ThisAssembly.Version)]
43-
[assembly: AssemblyInformationalVersion(_ThisAssembly.InformationalVersion)]
44-
[assembly: NeutralResourcesLanguage("en-US")]
38+
[assembly: AssemblyTitle("CommandLine.Tests.dll")]
39+
[assembly: AssemblyDescription("Command Line Parser Library allows CLR applications to define a syntax for parsing command line arguments.")]
4540
[assembly: AssemblyCulture("")]
4641

4742
[assembly: AssemblyLicense(

src/tests/Text/HelpTextFixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public string GetUsage()
134134
[SetUp]
135135
public void SetUp()
136136
{
137-
_helpText = new HelpText(new HeadingInfo(_ThisAssembly.Title, _ThisAssembly.Version));
137+
_helpText = new HelpText(new HeadingInfo("CommandLine.Tests.dll", "1.9.4.131"));
138138
}
139139

140140
[Test]

0 commit comments

Comments
 (0)