Skip to content

Commit f8d468b

Browse files
committed
Prepare for NuGet publishing.
1 parent 0d3239d commit f8d468b

File tree

11 files changed

+51
-132
lines changed

11 files changed

+51
-132
lines changed

AssemblyInfo.Common.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System.Resources;
2+
using System.Reflection;
3+
using System.Runtime.InteropServices;
4+
5+
#if DEBUG
6+
[assembly: AssemblyConfiguration("Debug")]
7+
#else
8+
[assembly: AssemblyConfiguration("Release")]
9+
#endif
10+
[assembly: AssemblyCompany("Fabien Barbier")]
11+
[assembly: AssemblyProduct(".NET Unicode Information")]
12+
[assembly: AssemblyCopyright("Copyright © Fabien Barbier 2014")]
13+
[assembly: AssemblyTrademark("")]
14+
[assembly: AssemblyCulture("")]
15+
16+
[assembly: ComVisible(false)]
17+
18+
[assembly: AssemblyVersion("1.0.0.0")]
19+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,11 @@
11
using System.Reflection;
22
using System.Resources;
3-
using System.Runtime.CompilerServices;
4-
using System.Runtime.InteropServices;
53
using System.Windows;
64

7-
// General Information about an assembly is controlled through the following
8-
// set of attributes. Change these attribute values to modify the information
9-
// associated with an assembly.
10-
[assembly: AssemblyTitle("UnicodeCharacterInspector")]
11-
[assembly: AssemblyDescription("")]
12-
[assembly: AssemblyConfiguration("")]
13-
[assembly: AssemblyCompany("")]
14-
[assembly: AssemblyProduct("UnicodeCharacterInspector")]
15-
[assembly: AssemblyCopyright("Copyright © 2014")]
16-
[assembly: AssemblyTrademark("")]
17-
[assembly: AssemblyCulture("")]
18-
19-
// Setting ComVisible to false makes the types in this assembly not visible
20-
// to COM components. If you need to access a type in this assembly from
21-
// COM, set the ComVisible attribute to true on that type.
22-
[assembly: ComVisible(false)]
23-
24-
//In order to begin building localizable applications, set
25-
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26-
//inside a <PropertyGroup>. For example, if you are using US english
27-
//in your source files, set the <UICulture> to en-US. Then uncomment
28-
//the NeutralResourceLanguage attribute below. Update the "en-US" in
29-
//the line below to match the UICulture setting in the project file.
30-
31-
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
5+
[assembly: AssemblyTitle("Unicode Character Inspector")]
6+
[assembly: AssemblyDescription("A character inspector for Unicode text.")]
327

8+
[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
339

3410
[assembly: ThemeInfo(
3511
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
@@ -39,17 +15,3 @@
3915
//(used if a resource is not found in the page,
4016
// app, or any theme specific resource dictionaries)
4117
)]
42-
43-
44-
// Version information for an assembly consists of the following four values:
45-
//
46-
// Major Version
47-
// Minor Version
48-
// Build Number
49-
// Revision
50-
//
51-
// You can specify all the values or you can default the Build and Revision Numbers
52-
// by using the '*' as shown below:
53-
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("1.0.0.0")]
55-
[assembly: AssemblyFileVersion("1.0.0.0")]

UnicodeCharacterInspector/UnicodeCharacterInspector.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
<PropertyGroup>
4343
<ApplicationIcon>UnicodeCharacterInspector.ico</ApplicationIcon>
4444
</PropertyGroup>
45+
<PropertyGroup>
46+
<UICulture>en-US</UICulture>
47+
</PropertyGroup>
4548
<ItemGroup>
4649
<Reference Include="System" />
4750
<Reference Include="System.Data" />
@@ -66,6 +69,9 @@
6669
<Generator>MSBuild:Compile</Generator>
6770
<SubType>Designer</SubType>
6871
</Page>
72+
<Compile Include="..\AssemblyInfo.Common.cs">
73+
<Link>Properties\AssemblyInfo.Common.cs</Link>
74+
</Compile>
6975
<Compile Include="App.xaml.cs">
7076
<DependentUpon>App.xaml</DependentUpon>
7177
<SubType>Code</SubType>
Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,8 @@
11
using System.Reflection;
2+
using System.Resources;
23
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
85
[assembly: AssemblyTitle("UnicodeInformation.Builder")]
9-
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("UnicodeInformation.Builder")]
13-
[assembly: AssemblyCopyright("Copyright © 2014")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
[assembly: InternalsVisibleTo("UnicodeInformation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100711da5e71bb2208797ed36597e628c6bf6541b6c157ede943539d19de5104763bd2f42d8c0233ea8fbe7e782d4e2d29c3706a8e8dc1cfa78faabec946a167f7b2b1d396d17a85839ad96f2be930c0efaa893c8b9b6a665bf50ca569b56b9eabf3a69e8274723f85e9d4c3eea1e53dcbbb29a74c78c305e447917daaa6593f1c2")]
17-
18-
// Setting ComVisible to false makes the types in this assembly not visible
19-
// to COM components. If you need to access a type in this assembly from
20-
// COM, set the ComVisible attribute to true on that type.
21-
[assembly: ComVisible(false)]
22-
23-
// The following GUID is for the ID of the typelib if this project is exposed to COM
24-
[assembly: Guid("8dfdee6c-4f0d-4de1-b346-574cb56d2b8b")]
25-
26-
// Version information for an assembly consists of the following four values:
27-
//
28-
// Major Version
29-
// Minor Version
30-
// Build Number
31-
// Revision
32-
//
33-
// You can specify all the values or you can default the Build and Revision Numbers
34-
// by using the '*' as shown below:
35-
// [assembly: AssemblyVersion("1.0.*")]
36-
[assembly: AssemblyVersion("1.0.0.0")]
37-
[assembly: AssemblyFileVersion("1.0.0.0")]
6+
[assembly: AssemblyDescription("Data file builder for the .NET Unicode Information Library.")]
7+
[assembly: NeutralResourcesLanguage("en")]
8+
[assembly: InternalsVisibleTo("UnicodeInformation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100711da5e71bb2208797ed36597e628c6bf6541b6c157ede943539d19de5104763bd2f42d8c0233ea8fbe7e782d4e2d29c3706a8e8dc1cfa78faabec946a167f7b2b1d396d17a85839ad96f2be930c0efaa893c8b9b6a665bf50ca569b56b9eabf3a69e8274723f85e9d4c3eea1e53dcbbb29a74c78c305e447917daaa6593f1c2")]

UnicodeInformation.Builder/UnicodeInformation.Builder.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
<Reference Include="System.Xml" />
5353
</ItemGroup>
5454
<ItemGroup>
55+
<Compile Include="..\AssemblyInfo.Common.cs">
56+
<Link>Properties\AssemblyInfo.Common.cs</Link>
57+
</Compile>
5558
<Compile Include="BinaryWriterExtensions.cs" />
5659
<Compile Include="CharExtensions.cs" />
5760
<Compile Include="UnihanProperty.cs">
Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
11
using System.Reflection;
2-
using System.Runtime.CompilerServices;
2+
using System.Resources;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
6-
// set of attributes. Change these attribute values to modify the information
7-
// associated with an assembly.
85
[assembly: AssemblyTitle("UnicodeInformation.Tests")]
96
[assembly: AssemblyDescription("")]
10-
[assembly: AssemblyConfiguration("")]
11-
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("UnicodeInformation.Tests")]
13-
[assembly: AssemblyCopyright("Copyright © 2014")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
16-
17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
19-
// COM, set the ComVisible attribute to true on that type.
20-
[assembly: ComVisible(false)]
21-
22-
// The following GUID is for the ID of the typelib if this project is exposed to COM
7+
[assembly: NeutralResourcesLanguage("en")]
238
[assembly: Guid("50337426-e884-4394-9e1a-f6f7a555f5d9")]
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")]

UnicodeInformation.Tests/UnicodeInfoTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,12 @@ public void RationalNumberTest()
150150
[TestMethod]
151151
public void HangulNameTest()
152152
{
153+
#if DEBUG
153154
AssertEx.ThrowsExactly<ArgumentOutOfRangeException>(() => HangulInfo.GetHangulName('\0'));
154155
AssertEx.ThrowsExactly<ArgumentOutOfRangeException>(() => HangulInfo.GetHangulName('\uABFF'));
155156
AssertEx.ThrowsExactly<ArgumentOutOfRangeException>(() => HangulInfo.GetHangulName('\uD7A5'));
156-
Assert.AreEqual("HANGUL SYLLABLE PWILH", UnicodeInfo.GetName(0xD4DB));
157+
#endif
158+
Assert.AreEqual("HANGUL SYLLABLE PWILH", UnicodeInfo.GetName(0xD4DB));
157159
Assert.AreEqual("HANGUL SYLLABLE PWAENG", UnicodeInfo.GetName(0xD439));
158160
Assert.AreEqual("HANGUL SYLLABLE PANJ", UnicodeInfo.GetName(0xD311));
159161
Assert.AreEqual("HANGUL SYLLABLE TOLM", UnicodeInfo.GetName(0xD1AA));

UnicodeInformation.Tests/UnicodeInformation.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
</Otherwise>
6161
</Choose>
6262
<ItemGroup>
63+
<Compile Include="..\AssemblyInfo.Common.cs">
64+
<Link>Properties\AssemblyInfo.Common.cs</Link>
65+
</Compile>
6366
<Compile Include="AssertEx.cs" />
6467
<Compile Include="UnicodeInfoBuilderTests.cs" />
6568
<Compile Include="Properties\AssemblyInfo.cs" />

UnicodeInformation.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnicodeInformation.Builder"
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{73097DF3-04B7-4C5F-B4EA-0EB800E40702}"
1515
ProjectSection(SolutionItems) = preProject
16+
AssemblyInfo.Common.cs = AssemblyInfo.Common.cs
1617
Example.cs = Example.cs
1718
LICENSE.txt = LICENSE.txt
1819
README.md = README.md
Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,11 @@
1-
using System.Resources;
2-
using System.Reflection;
1+
using System.Reflection;
2+
using System.Resources;
33
using System.Runtime.CompilerServices;
4-
using System.Runtime.InteropServices;
54

6-
// General Information about an assembly is controlled through the following
7-
// set of attributes. Change these attribute values to modify the information
8-
// associated with an assembly.
9-
[assembly: AssemblyTitle("UnicodeInformation")]
10-
[assembly: AssemblyDescription("")]
11-
[assembly: AssemblyConfiguration("")]
12-
[assembly: AssemblyCompany("")]
13-
[assembly: AssemblyProduct("UnicodeInformation")]
14-
[assembly: AssemblyCopyright("Copyright © 2014")]
15-
[assembly: AssemblyTrademark("")]
16-
[assembly: AssemblyCulture("")]
5+
[assembly: AssemblyTitle(".NET Unicode Information Library")]
6+
[assembly: AssemblyDescription("Library providing access to Unicode data to .NET clients.")]
177
[assembly: NeutralResourcesLanguage("en")]
188
[assembly: InternalsVisibleTo("UnicodeInformation.Builder, PublicKey=0024000004800000940000000602000000240000525341310004000001000100711da5e71bb2208797ed36597e628c6bf6541b6c157ede943539d19de5104763bd2f42d8c0233ea8fbe7e782d4e2d29c3706a8e8dc1cfa78faabec946a167f7b2b1d396d17a85839ad96f2be930c0efaa893c8b9b6a665bf50ca569b56b9eabf3a69e8274723f85e9d4c3eea1e53dcbbb29a74c78c305e447917daaa6593f1c2")]
199
#if DEBUG
2010
[assembly: InternalsVisibleTo("UnicodeInformation.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100711da5e71bb2208797ed36597e628c6bf6541b6c157ede943539d19de5104763bd2f42d8c0233ea8fbe7e782d4e2d29c3706a8e8dc1cfa78faabec946a167f7b2b1d396d17a85839ad96f2be930c0efaa893c8b9b6a665bf50ca569b56b9eabf3a69e8274723f85e9d4c3eea1e53dcbbb29a74c78c305e447917daaa6593f1c2")]
2111
#endif
22-
23-
// Version information for an assembly consists of the following four values:
24-
//
25-
// Major Version
26-
// Minor Version
27-
// Build Number
28-
// Revision
29-
//
30-
// You can specify all the values or you can default the Build and Revision Numbers
31-
// by using the '*' as shown below:
32-
// [assembly: AssemblyVersion("1.0.*")]
33-
[assembly: AssemblyVersion("1.0.0.0")]
34-
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)