Added build scripts and updated NuGet packages

This commit is contained in:
Geert van Horrik 2014-12-02 10:05:33 +01:00
Родитель a0c7f7d4e0
Коммит 1b3e04c631
8 изменённых файлов: 37 добавлений и 10 удалений

7
.gitignore поставляемый
Просмотреть файл

@ -6,6 +6,12 @@
*.user
*.sln.docstates
.nuget/
tools/FAKE/
build-log.xml
Nuget.key
TestResult.xml
# Build results
[Bb]in/
[Cc]lientbin/
@ -16,6 +22,7 @@
bin
obj
[Ll]ib/
*.ide/
*_i.c
*_p.c
*.ilk

Просмотреть файл

@ -0,0 +1,10 @@
@echo off
IF NOT "%VS110COMNTOOLS%" == "" (call "%VS110COMNTOOLS%vsvars32.bat")
IF NOT "%VS120COMNTOOLS%" == "" (call "%VS120COMNTOOLS%vsvars32.bat")
IF NOT "%VS130COMNTOOLS%" == "" (call "%VS130COMNTOOLS%vsvars32.bat")
IF NOT "%VS140COMNTOOLS%" == "" (call "%VS140COMNTOOLS%vsvars32.bat")
for /F %%A in ('dir /b src\*.sln') do call devenv src\%%A /build "Debug"
pause

Просмотреть файл

@ -0,0 +1,10 @@
@echo off
IF NOT "%VS110COMNTOOLS%" == "" (call "%VS110COMNTOOLS%vsvars32.bat")
IF NOT "%VS120COMNTOOLS%" == "" (call "%VS120COMNTOOLS%vsvars32.bat")
IF NOT "%VS130COMNTOOLS%" == "" (call "%VS130COMNTOOLS%vsvars32.bat")
IF NOT "%VS140COMNTOOLS%" == "" (call "%VS140COMNTOOLS%vsvars32.bat")
for /F %%A in ('dir /b src\*.sln') do call devenv src\%%A /build "Release"
pause

Просмотреть файл

@ -43,7 +43,7 @@
</Reference>
<Reference Include="Catel.Core, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\Catel.Core.4.0.0-unstable0532\lib\net45\Catel.Core.dll</HintPath>
<HintPath>..\..\lib\Catel.Core.4.0.0\lib\net45\Catel.Core.dll</HintPath>
</Reference>
<Reference Include="nunit.framework">
<HintPath>..\..\lib\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>

Просмотреть файл

@ -2,6 +2,6 @@
<packages>
<package id="ApprovalTests" version="3.0.7" targetFramework="net45" />
<package id="ApprovalUtilities" version="3.0.7" targetFramework="net45" />
<package id="Catel.Core" version="4.0.0-unstable0532" targetFramework="net45" />
<package id="Catel.Core" version="4.0.0" targetFramework="net45" />
<package id="NUnit" version="2.6.3" targetFramework="net45" />
</packages>

Просмотреть файл

@ -13,7 +13,7 @@
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<NuGetPackageImportStamp>bcfb0dc6</NuGetPackageImportStamp>
<NuGetPackageImportStamp>9d0eac53</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -49,7 +49,7 @@
<ItemGroup>
<Reference Include="Catel.Core, Version=4.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\lib\Catel.Core.4.0.0-unstable0532\lib\net45\Catel.Core.dll</HintPath>
<HintPath>..\..\lib\Catel.Core.4.0.0\lib\net45\Catel.Core.dll</HintPath>
</Reference>
<Reference Include="Catel.Fody.Attributes, Version=2.4.0.0, Culture=neutral, PublicKeyToken=1c8163524cbe02e6, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
@ -127,14 +127,14 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
</PropertyGroup>
<Import Project="..\..\lib\Fody.1.26.1\build\Fody.targets" Condition="Exists('..\..\lib\Fody.1.26.1\build\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\lib\Fody.1.26.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\lib\Fody.1.26.1\build\Fody.targets'))" />
<Error Condition="!Exists('..\..\lib\LibGit2Sharp.0.20.0.0\build\net40\LibGit2Sharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\lib\LibGit2Sharp.0.20.0.0\build\net40\LibGit2Sharp.props'))" />
<Error Condition="!Exists('..\..\lib\Fody.1.26.2\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\lib\Fody.1.26.2\build\Fody.targets'))" />
</Target>
<Import Project="..\..\lib\Fody.1.26.2\build\Fody.targets" Condition="Exists('..\..\lib\Fody.1.26.2\build\Fody.targets')" />
<!-- 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.
<Target Name="BeforeBuild">

Просмотреть файл

@ -22,7 +22,7 @@ namespace GitLink
private static readonly ILog Log = LogManager.GetCurrentClassLogger();
private static readonly Type SolutionParserType;
private static readonly PropertyInfo SolutionReaderPropertyInfo;
private static readonly PropertyInfo SolutionReaderPropertyInfo;
private static readonly PropertyInfo ProjectsPropertyInfo;
private static readonly MethodInfo ParseSolutionMethodInfo;
private static readonly PropertyInfo RelativePathPropertyInfo;
@ -112,7 +112,7 @@ namespace GitLink
{
Log.Warning("Failed to load project '{0}': {1}", projectFile, ex.Message);
return null;
}
}
}
}
}

Просмотреть файл

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Catel.Core" version="4.0.0-unstable0532" targetFramework="net45" />
<package id="Catel.Core" version="4.0.0" targetFramework="net45" />
<package id="Catel.Fody" version="2.4.0-unstable0001" targetFramework="net45" developmentDependency="true" />
<package id="Costura.Fody" version="1.3.3.0" targetFramework="net45" developmentDependency="true" />
<package id="Fody" version="1.26.1" targetFramework="net45" developmentDependency="true" />
<package id="Fody" version="1.26.2" targetFramework="net45" developmentDependency="true" />
<package id="LibGit2Sharp" version="0.20.0.0" targetFramework="net45" />
</packages>