Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6cb70e4

Browse files
committed
Switch to nuget package of LibGit2Sharp
1 parent 3595de2 commit 6cb70e4

File tree

10 files changed

+83
-49
lines changed

10 files changed

+83
-49
lines changed

src/GitHub.App/GitHub.App.csproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props" Condition="Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -51,6 +52,10 @@
5152
<DelaySign>false</DelaySign>
5253
</PropertyGroup>
5354
<ItemGroup>
55+
<Reference Include="LibGit2Sharp, Version=0.21.0.176, Culture=neutral, processorArchitecture=MSIL">
56+
<HintPath>..\..\packages\LibGit2Sharp.0.21.0.176\lib\net40\LibGit2Sharp.dll</HintPath>
57+
<Private>True</Private>
58+
</Reference>
5459
<Reference Include="Microsoft.TeamFoundation.Git.Controls, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
5560
<HintPath>..\..\lib\Microsoft.TeamFoundation.Git.Controls.dll</HintPath>
5661
<Private>False</Private>
@@ -107,10 +112,6 @@
107112
<Reference Include="System.Xaml" />
108113
<Reference Include="System.Xml.Linq" />
109114
<Reference Include="System.Data.DataSetExtensions" />
110-
<Reference Include="LibGit2Sharp, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
111-
<HintPath>..\..\lib\LibGit2Sharp.dll</HintPath>
112-
<Private>False</Private>
113-
</Reference>
114115
<Reference Include="Microsoft.CSharp" />
115116
<Reference Include="System.Data" />
116117
<Reference Include="System.Xml" />
@@ -266,6 +267,7 @@
266267
</PropertyGroup>
267268
<Error Condition="!Exists('..\..\packages\Fody.1.28.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Fody.1.28.0\build\Fody.targets'))" />
268269
<Error Condition="!Exists('..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets'))" />
270+
<Error Condition="!Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props'))" />
269271
</Target>
270272
<Import Project="..\..\packages\Fody.1.28.0\build\Fody.targets" Condition="Exists('..\..\packages\Fody.1.28.0\build\Fody.targets')" />
271273
<Import Project="..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets" Condition="Exists('..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets')" />

src/GitHub.App/packages.config

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Fody" version="1.28.0" targetFramework="net45" developmentDependency="true" userInstalled="true" />
4-
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" userInstalled="true" />
5-
<package id="NLog" version="3.1.0.0" targetFramework="net45" userInstalled="true" />
6-
<package id="NullGuard.Fody" version="1.4.1" targetFramework="net45" developmentDependency="true" userInstalled="true" />
7-
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
8-
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
9-
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
10-
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
11-
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
12-
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
13-
<package id="SQLitePCL.raw_basic" version="0.7.3.0-vs2012" targetFramework="net45" userInstalled="true" />
14-
<package id="Stateless" version="2.5.11.0" targetFramework="net45" userInstalled="true" />
3+
<package id="Fody" version="1.28.0" targetFramework="net45" developmentDependency="true" />
4+
<package id="LibGit2Sharp" version="0.21.0.176" targetFramework="net45" />
5+
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
6+
<package id="NLog" version="3.1.0.0" targetFramework="net45" />
7+
<package id="NullGuard.Fody" version="1.4.1" targetFramework="net45" developmentDependency="true" />
8+
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" />
9+
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" />
10+
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" />
11+
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" />
12+
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" />
13+
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" />
14+
<package id="SQLitePCL.raw_basic" version="0.7.3.0-vs2012" targetFramework="net45" />
15+
<package id="Stateless" version="2.5.11.0" targetFramework="net45" />
1516
</packages>

src/GitHub.Exports.Reactive/GitHub.Exports.Reactive.csproj

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props" Condition="Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +13,8 @@
1213
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<BuildType Condition="Exists('..\..\script\ApiClientConfiguration.cs')">Internal</BuildType>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
1518
</PropertyGroup>
1619
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1720
<DebugSymbols>true</DebugSymbols>
@@ -44,6 +47,10 @@
4447
<DelaySign>false</DelaySign>
4548
</PropertyGroup>
4649
<ItemGroup>
50+
<Reference Include="LibGit2Sharp, Version=0.21.0.176, Culture=neutral, processorArchitecture=MSIL">
51+
<HintPath>..\..\packages\LibGit2Sharp.0.21.0.176\lib\net40\LibGit2Sharp.dll</HintPath>
52+
<Private>True</Private>
53+
</Reference>
4754
<Reference Include="PresentationCore" />
4855
<Reference Include="System" />
4956
<Reference Include="System.Core" />
@@ -75,10 +82,6 @@
7582
<Reference Include="System.Xaml" />
7683
<Reference Include="System.Xml.Linq" />
7784
<Reference Include="System.Data.DataSetExtensions" />
78-
<Reference Include="LibGit2Sharp, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
79-
<HintPath>..\..\lib\LibGit2Sharp.dll</HintPath>
80-
<Private>False</Private>
81-
</Reference>
8285
<Reference Include="Microsoft.CSharp" />
8386
<Reference Include="System.Data" />
8487
<Reference Include="System.Xml" />
@@ -163,6 +166,12 @@
163166
</ItemGroup>
164167
<ItemGroup />
165168
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
169+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
170+
<PropertyGroup>
171+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
172+
</PropertyGroup>
173+
<Error Condition="!Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props'))" />
174+
</Target>
166175
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
167176
Other similar extension points exist, see Microsoft.Common.targets.
168177
<Target Name="BeforeBuild">
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
4-
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
5-
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
6-
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
7-
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
8-
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
3+
<package id="LibGit2Sharp" version="0.21.0.176" targetFramework="net45" />
4+
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" />
5+
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" />
6+
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" />
7+
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" />
8+
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" />
9+
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" />
910
</packages>

src/GitHub.Exports/GitHub.Exports.csproj

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props" Condition="Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" />
34
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
45
<PropertyGroup>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -12,6 +13,8 @@
1213
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<BuildType Condition="Exists('..\..\script\ApiClientConfiguration.cs')">Internal</BuildType>
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
1518
</PropertyGroup>
1619
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1720
<DebugSymbols>true</DebugSymbols>
@@ -50,9 +53,9 @@
5053
<Reference Include="envdte80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
5154
<EmbedInteropTypes>false</EmbedInteropTypes>
5255
</Reference>
53-
<Reference Include="LibGit2Sharp">
54-
<HintPath>..\..\lib\LibGit2Sharp.dll</HintPath>
55-
<Private>False</Private>
56+
<Reference Include="LibGit2Sharp, Version=0.21.0.176, Culture=neutral, processorArchitecture=MSIL">
57+
<HintPath>..\..\packages\LibGit2Sharp.0.21.0.176\lib\net40\LibGit2Sharp.dll</HintPath>
58+
<Private>True</Private>
5659
</Reference>
5760
<Reference Include="Microsoft.TeamFoundation.Controls, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
5861
<HintPath>..\..\lib\\Microsoft.TeamFoundation.Controls.dll</HintPath>
@@ -109,6 +112,7 @@
109112
<Compile Include="..\common\SolutionInfo.cs">
110113
<Link>Properties\SolutionInfo.cs</Link>
111114
</Compile>
115+
<None Include="packages.config" />
112116
</ItemGroup>
113117
<ItemGroup>
114118
<Compile Include="Authentication\AuthenticationResultExtensions.cs" />
@@ -149,6 +153,12 @@
149153
</ProjectReference>
150154
</ItemGroup>
151155
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
156+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
157+
<PropertyGroup>
158+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
159+
</PropertyGroup>
160+
<Error Condition="!Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props'))" />
161+
</Target>
152162
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
153163
Other similar extension points exist, see Microsoft.Common.targets.
154164
<Target Name="BeforeBuild">

src/GitHub.Exports/packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="LibGit2Sharp" version="0.21.0.176" targetFramework="net45" />
4+
</packages>

src/GitHub.VisualStudio/GitHub.VisualStudio.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
3+
<Import Project="..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props" Condition="Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" />
34
<PropertyGroup>
45
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
56
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">12.0</VisualStudioVersion>
@@ -85,9 +86,9 @@
8586
<Reference Include="envdte80, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
8687
<EmbedInteropTypes>false</EmbedInteropTypes>
8788
</Reference>
88-
<Reference Include="LibGit2Sharp, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
89-
<HintPath>..\..\lib\LibGit2Sharp.dll</HintPath>
90-
<Private>False</Private>
89+
<Reference Include="LibGit2Sharp, Version=0.21.0.176, Culture=neutral, processorArchitecture=MSIL">
90+
<HintPath>..\..\packages\LibGit2Sharp.0.21.0.176\lib\net40\LibGit2Sharp.dll</HintPath>
91+
<Private>True</Private>
9192
</Reference>
9293
<Reference Include="Microsoft.CSharp" />
9394
<Reference Include="Microsoft.TeamFoundation.Common, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -516,6 +517,7 @@
516517
</PropertyGroup>
517518
<Error Condition="!Exists('..\..\packages\Fody.1.28.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Fody.1.28.0\build\Fody.targets'))" />
518519
<Error Condition="!Exists('..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets'))" />
520+
<Error Condition="!Exists('..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\LibGit2Sharp.0.21.0.176\build\net40\LibGit2Sharp.props'))" />
519521
</Target>
520522
<Import Project="..\..\packages\Fody.1.28.0\build\Fody.targets" Condition="Exists('..\..\packages\Fody.1.28.0\build\Fody.targets')" />
521523
<Import Project="..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets" Condition="Exists('..\..\packages\SQLitePCL.raw_basic.0.7.3.0-vs2012\build\net45\SQLitePCL.raw_basic.targets')" />
Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="EditorUtils2013" version="1.4.1.1" targetFramework="net45" userInstalled="true" />
4-
<package id="Fody" version="1.28.0" targetFramework="net45" developmentDependency="true" userInstalled="true" />
5-
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" userInstalled="true" />
6-
<package id="NLog" version="3.1.0" targetFramework="net45" userInstalled="true" />
7-
<package id="NullGuard.Fody" version="1.4.1" targetFramework="net45" developmentDependency="true" userInstalled="true" />
8-
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
9-
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
10-
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
11-
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
12-
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
13-
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" userInstalled="true" />
14-
<package id="SimpleJson" version="0.38.0" targetFramework="net45" userInstalled="true" />
15-
<package id="SQLitePCL.raw_basic" version="0.7.3.0-vs2012" targetFramework="net45" userInstalled="true" />
16-
<package id="Stateless" version="2.5.11" targetFramework="net45" userInstalled="true" />
17-
<package id="WiX.Toolset.2015" version="3.10.0.1503" targetFramework="net45" userInstalled="true" />
3+
<package id="EditorUtils2013" version="1.4.1.1" targetFramework="net45" />
4+
<package id="Fody" version="1.28.0" targetFramework="net45" developmentDependency="true" />
5+
<package id="LibGit2Sharp" version="0.21.0.176" targetFramework="net45" />
6+
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
7+
<package id="NLog" version="3.1.0" targetFramework="net45" />
8+
<package id="NullGuard.Fody" version="1.4.1" targetFramework="net45" developmentDependency="true" />
9+
<package id="Rx-Core" version="2.2.5-custom" targetFramework="net45" />
10+
<package id="Rx-Interfaces" version="2.2.5-custom" targetFramework="net45" />
11+
<package id="Rx-Linq" version="2.2.5-custom" targetFramework="net45" />
12+
<package id="Rx-Main" version="2.2.5-custom" targetFramework="net45" />
13+
<package id="Rx-PlatformServices" version="2.2.5-custom" targetFramework="net45" />
14+
<package id="Rx-XAML" version="2.2.5-custom" targetFramework="net45" />
15+
<package id="SimpleJson" version="0.38.0" targetFramework="net45" />
16+
<package id="SQLitePCL.raw_basic" version="0.7.3.0-vs2012" targetFramework="net45" />
17+
<package id="Stateless" version="2.5.11" targetFramework="net45" />
18+
<package id="WiX.Toolset.2015" version="3.10.0.1503" targetFramework="net45" />
1819
</packages>

0 commit comments

Comments
 (0)