Skip to content

Commit

Permalink
Support for automatic version in VisualStudio
Browse files Browse the repository at this point in the history
  • Loading branch information
Swamp Ig committed May 9, 2014
1 parent 60fe642 commit 1b2663a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

# Don't change line endings for the version bits
Source/git-version.sh text eol=lf
Source/git-version-gen text eol=lf
7 changes: 4 additions & 3 deletions Source/RealFuels.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PreBuildEvent>cd $(ProjectDir)
sh git-version.sh</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>del "System.Core.dll"
copy $(TargetPath) "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP Debug\GameData\RealFuels\Plugins\"</PostBuildEvent>
copy /y "$(TargetPath)" "%25KSP_DIR%25\GameData\RealFuels\Plugins\"
if exist "$(SolutionDir)\KSPAPIExtensions.dll" move "$(SolutionDir)\KSPAPIExtensions.dll" "%25KSP_DIR%25\GameData\RealFuels\Plugins\"</PostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit 1b2663a

Please sign in to comment.