Skip to content

Commit

Permalink
Added AssemblyFileVersion
Browse files Browse the repository at this point in the history
 Updated version file for 1.12
  • Loading branch information
linuxgurugamer committed Oct 13, 2021
1 parent f288158 commit 82c0823
Show file tree
Hide file tree
Showing 18 changed files with 45 additions and 35 deletions.
4 changes: 4 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
ChangeLog

1.0.11.1
Added AssemblyFileVersion
Updated version file for 1.12

1.0.11
Moved settings from cfg file to settings page

Expand Down
Binary file not shown.
9 changes: 7 additions & 2 deletions GameData/ShipEffectsContinued/ShipEffectsContinued.version
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
"MAJOR": 1,
"MINOR": 0,
"PATCH": 11,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 2
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 12,
"PATCH": 0
}
}
9 changes: 7 additions & 2 deletions ShipEffectsContinued.version
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@
"MAJOR": 1,
"MINOR": 0,
"PATCH": 11,
"BUILD": 0
"BUILD": 1
},
"KSP_VERSION": {
"MAJOR": 1,
"MINOR": 12,
"PATCH": 2
},
"KSP_VERSION_MIN": {
"MAJOR": 1,
"MINOR": 8,
"MINOR": 12,
"PATCH": 0
}
}
17 changes: 0 additions & 17 deletions ShipEffectsContinued.version.orig

This file was deleted.

3 changes: 2 additions & 1 deletion Source/AssemblyVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

using System.Reflection;

[assembly: AssemblyVersion("1.0.11.0")]
[assembly: AssemblyFileVersion("1.0.11.1")]
[assembly: AssemblyVersion("1.0.11.1")]
1 change: 1 addition & 0 deletions Source/AssemblyVersion.tt
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@

using System.Reflection;

[assembly: AssemblyFileVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
[assembly: AssemblyVersion("<#= major #>.<#= minor #>.<#= patch #>.<#= build #>")]
2 changes: 1 addition & 1 deletion Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyVersion("1.0.8.4")]
[assembly: AssemblyFileVersion("1.0.8.4")]
//[assembly: AssemblyFileVersion("1.0.8.4")]
27 changes: 17 additions & 10 deletions Source/ShipEffectsContinued.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,27 +63,34 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>start /D D:\Users\jbb\github\ShipEffectsContinued /WAIT deploy.bat $(TargetDir) $(TargetFileName)
<PostBuildEvent>
set KSPDIR=$(KSPDIR)

IF "%25KSPDIR%25"=="" (

ECHO Configuration error - KSPDIR not specified in project.

if $(ConfigurationName) == Release (
ECHO Either set KSPDIR environment variable or edit BetterLoadSaveGame.Common.props

PAUSE

GOTO DONE

start /D D:\Users\jbb\github\ShipEffectsContinued /WAIT buildRelease.bat $(TargetDir) $(TargetFileName)
)

start /D $(SolutionDir) /WAIT deploy.bat $(TargetDir) $(TargetFileName) $(TargetName)

if $(ConfigurationName) == Release (

)</PostBuildEvent>
start /D $(SolutionDir) /WAIT buildRelease.bat $(TargetDir) $(TargetFileName) $(TargetName)

)
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>set textTemplatingPath="%25ProgramFiles(x86)%25\Microsoft Visual Studio\2017\Community\Common7\IDE\texttransform.exe"




%25textTemplatingPath%25 "$(ProjectDir)AssemblyVersion.tt"</PreBuildEvent>
<PreBuildEvent>
"$(DevEnvDir)\texttransform.exe" "$(ProjectDir)AssemblyVersion.tt"
</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file removed Source/bin/Debug/RedShellSDK.dll
Binary file not shown.
Binary file removed Source/bin/Debug/ShipEffectsContinued.dll
Binary file not shown.
Binary file removed Source/bin/Debug/ShipEffectsContinued.pdb
Binary file not shown.
Binary file modified Source/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ C:\Users\Tavish\Documents\GitHub\ShipEffectsContinued\Source\bin\Debug\Ionic.Zip
C:\Users\Tavish\Documents\GitHub\ShipEffectsContinued\Source\bin\Debug\RedShellSDK.dll
D:\Users\jbb\github\ShipEffectsContinued\Source\bin\Debug\ShipEffectsContinued.dll
D:\Users\jbb\github\ShipEffectsContinued\Source\bin\Debug\ShipEffectsContinued.pdb
D:\Users\jbb\github\ShipEffectsContinued\Source\obj\Debug\ShipEffectsContinued.csproj.CoreCompileInputs.cache
D:\Users\jbb\github\ShipEffectsContinued\Source\obj\Debug\ShipEffectsContinued.dll
D:\Users\jbb\github\ShipEffectsContinued\Source\obj\Debug\ShipEffectsContinued.pdb
D:\Users\jbb\github\ShipEffectsContinued\Source\obj\Debug\ShipEffectsContinued.csprojAssemblyReference.cache
Binary file removed Source/obj/Debug/ShipEffectsContinued.dll
Binary file not shown.
Binary file removed Source/obj/Debug/ShipEffectsContinued.pdb
Binary file not shown.
1 change: 0 additions & 1 deletion buildRelease.bat
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ rem Copy files to GameData locations

copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\Plugins"
copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%
copy /Y ..\MiniAVC.dll %GAMEDATA%\%GAMEDIR%

if "%LICENSE%" NEQ "" copy /y %LICENSE% %GAMEDATA%\%GAMEDIR%
if "%README%" NEQ "" copy /Y %README% %GAMEDATA%\%GAMEDIR%
Expand Down
5 changes: 5 additions & 0 deletions deploy.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ set GAMEDIR=ShipEffectsContinued
set GAMEDATA="GameData"
set VERSIONFILE=%GAMEDIR%.version

set DP0=r:\dp0\kspdev

copy /Y "%1%2" "%GAMEDATA%\%GAMEDIR%\Plugins"
copy /Y "%1%3".pdb "%GAMEDATA%\%GAMEDIR%\Plugins"

copy /Y %VERSIONFILE% %GAMEDATA%\%GAMEDIR%

xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%H%\GameData\%GAMEDIR%"
xcopy /y /s /I %GAMEDATA%\%GAMEDIR% "%DP0%\GameData\%GAMEDIR%"

0 comments on commit 82c0823

Please sign in to comment.