Skip to content

Commit f434124

Browse files
committed
Moved all assembly versions to one const.
1 parent cf8ea0d commit f434124

File tree

6 files changed

+31
-14
lines changed

6 files changed

+31
-14
lines changed

Console/DmdExt.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ private static void CurrentDomain_UnhandledException(object sender, UnhandledExc
185185
Logger.Error(ex.ToString());
186186
}
187187
#if !DEBUG
188+
Raygun.ApplicationVersion = LibDmd.Version.AssemblyInformationalVersionAttribute;
188189
Raygun.Send(ex, null, new Dictionary<string, string> { {"log", string.Join("\n", MemLogger.Logs) } });
189190
#endif
190191
}

Console/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
[assembly: AssemblyConfiguration("")]
1212
[assembly: AssemblyCompany("")]
1313
[assembly: AssemblyProduct("DMD Extensions")]
14-
[assembly: AssemblyCopyright("Copyright (C) 2016 <[email protected]>")]
14+
[assembly: AssemblyCopyright("Copyright (C) 2017 <[email protected]>")]
1515
[assembly: AssemblyTrademark("")]
1616
[assembly: AssemblyCulture("")]
1717
[assembly: AssemblyUsage("\nUSAGE: dmdext <command> [<args>]")]
@@ -35,6 +35,6 @@
3535
// You can specify all the values or you can default the Build and Revision Numbers
3636
// by using the '*' as shown below:
3737
// [assembly: AssemblyVersion("1.0.*")]
38-
[assembly: AssemblyVersion("1.5.1.0")]
39-
[assembly: AssemblyFileVersion("1.5.1.0")]
40-
[assembly: AssemblyInformationalVersionAttribute("1.5.1")]
38+
[assembly: AssemblyVersion(LibDmd.Version.AssemblyVersion)]
39+
[assembly: AssemblyFileVersion(LibDmd.Version.AssemblyFileVersion)]
40+
[assembly: AssemblyInformationalVersionAttribute(LibDmd.Version.AssemblyInformationalVersionAttribute)]

LibDmd/LibDmd.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
<Compile Include="Input\ScreenGrabber\ScreenGrabber.cs" />
222222
<Compile Include="RenderGraph.cs" />
223223
<Compile Include="RenderGraphCollection.cs" />
224+
<Compile Include="Version.cs" />
224225
</ItemGroup>
225226
<ItemGroup>
226227
<Resource Include="Output\Virtual\Dmd.ps" />

LibDmd/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.5.1.0")]
36-
[assembly: AssemblyFileVersion("1.5.1.0")]
37-
[assembly: AssemblyInformationalVersionAttribute("1.5.1")]
35+
[assembly: AssemblyVersion(LibDmd.Version.AssemblyVersion)]
36+
[assembly: AssemblyFileVersion(LibDmd.Version.AssemblyFileVersion)]
37+
[assembly: AssemblyInformationalVersionAttribute(LibDmd.Version.AssemblyInformationalVersionAttribute)]
3838

LibDmd/Version.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace LibDmd
8+
{
9+
public class Version
10+
{
11+
public const string AssemblyVersion = "1.5.1.0";
12+
public const string AssemblyFileVersion = "1.5.1.0";
13+
public const string AssemblyInformationalVersionAttribute = "1.5.1";
14+
}
15+
}

PinMameDevice/Properties/AssemblyInfo.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
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("DmdDevice")]
9-
[assembly: AssemblyDescription("DmdDevice for Visual PinMAME")]
8+
[assembly: AssemblyTitle("DmdDevice.dll")]
9+
[assembly: AssemblyProduct("Universal DmdDevice.dll for Visual PinMAME")]
10+
[assembly: AssemblyDescription("Universal DmdDevice.dll for Visual PinMAME for all displays, inclusively frame-by-frame coloring support.")]
11+
[assembly: AssemblyCopyright("Copyright © 2017 [email protected]")]
1012
[assembly: AssemblyConfiguration("")]
1113
[assembly: AssemblyCompany("")]
12-
[assembly: AssemblyProduct("PinMameDevice")]
13-
[assembly: AssemblyCopyright("Copyright © 2016 [email protected]")]
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

@@ -32,7 +32,7 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.5.1.0")]
36-
[assembly: AssemblyFileVersion("1.5.1.0")]
37-
[assembly: AssemblyInformationalVersionAttribute("1.5.1")]
35+
[assembly: AssemblyVersion(LibDmd.Version.AssemblyVersion)]
36+
[assembly: AssemblyFileVersion(LibDmd.Version.AssemblyFileVersion)]
37+
[assembly: AssemblyInformationalVersionAttribute(LibDmd.Version.AssemblyInformationalVersionAttribute)]
3838

0 commit comments

Comments
 (0)