From 1b2663a52f2d117e584f4d55aec7a0676c549a2e Mon Sep 17 00:00:00 2001 From: Swamp Ig Date: Fri, 9 May 2014 19:48:11 +0800 Subject: [PATCH] Support for automatic version in VisualStudio --- .gitattributes | 26 ++++++++++++++++++++++++++ Source/RealFuels.csproj | 7 ++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..0d5bec1b --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/Source/RealFuels.csproj b/Source/RealFuels.csproj index c57fef97..ea7cdce9 100644 --- a/Source/RealFuels.csproj +++ b/Source/RealFuels.csproj @@ -61,11 +61,12 @@ - - + cd $(ProjectDir) +sh git-version.sh del "System.Core.dll" -copy $(TargetPath) "C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\KSP Debug\GameData\RealFuels\Plugins\" +copy /y "$(TargetPath)" "%25KSP_DIR%25\GameData\RealFuels\Plugins\" +if exist "$(SolutionDir)\KSPAPIExtensions.dll" move "$(SolutionDir)\KSPAPIExtensions.dll" "%25KSP_DIR%25\GameData\RealFuels\Plugins\" \ No newline at end of file