Skip to content

Commit 89e2e8d

Browse files
committed
Fix assemblyversion, add kspassembly attribute, ignore generated file
1 parent 1b83f61 commit 89e2e8d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,4 @@ $RECYCLE.BIN/
221221
*.dll
222222
*.pdb
223223
.vs
224+
/ProbeControlRoom/AssemblyVersion.cs

ProbeControlRoom/AssemblyVersion.tt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
//
3535
// Update the following with the name of the .version file which is in the root directory
3636
//
37-
string versionfile = RootDirectory + "ProbeControlRoom.version";
37+
string versionfile = RootDirectory + @"GameData\ProbeControlRoom\ProbeControlRoom.version";
3838

3939
if (!File.Exists(versionfile))
4040
{
@@ -98,4 +98,6 @@
9898
using System.Reflection;
9999

100100
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
101-
[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
101+
[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
102+
103+
[assembly: KSPAssembly("ProbeControlRoom", <#= major #>, <#= minor #>, <#= patch #>)]

0 commit comments

Comments
 (0)