Skip to content

Commit 0ce0d81

Browse files
author
Paul C Roberts
committed
Examples depend on package from nuget
1 parent 7bfcc47 commit 0ce0d81

File tree

10 files changed

+86
-11
lines changed

10 files changed

+86
-11
lines changed

Dropbox.Api/Dropbox.Api.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>$version$</version>
5+
<version>1.0.1-beta</version>
66
<title>Dropbox v2 API</title>
77
<authors>Dropbox Inc</authors>
88
<owners>Dropbox Inc</owners>
@@ -12,7 +12,7 @@
1212
<iconUrl>https://cf.dropboxstatic.com/static/images/icons/blue_dropbox_glyph.png</iconUrl>
1313
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1414
<description>Portable class library for accessing the Dropbox v2 API</description>
15-
<releaseNotes>Initial version</releaseNotes>
15+
<releaseNotes>Preview Release</releaseNotes>
1616
<copyright>Copyright (c) Dropbox Inc. 2015</copyright>
1717
<tags>Dropbox Api</tags>
1818
</metadata>

examples/SimpleBlogDemo/SimpleBlogDemo.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<WarningLevel>4</WarningLevel>
4343
</PropertyGroup>
4444
<ItemGroup>
45-
<Reference Include="Dropbox.Api, Version=0.1.5633.24043, Culture=neutral, processorArchitecture=MSIL">
45+
<Reference Include="Dropbox.Api, Version=0.1.5645.36811, Culture=neutral, processorArchitecture=MSIL">
4646
<SpecificVersion>False</SpecificVersion>
47-
<HintPath>..\..\Dropbox.Api\bin\Debug\Dropbox.Api.dll</HintPath>
47+
<HintPath>..\packages\Dropbox.Api.1.0.1-beta\lib\portable-net45+sl50+win+wpa81+wp80\Dropbox.Api.dll</HintPath>
4848
</Reference>
4949
<Reference Include="EntityFramework">
5050
<HintPath>..\packages\EntityFramework.6.1.3\lib\net45\EntityFramework.dll</HintPath>

examples/SimpleBlogDemo/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<package id="Antlr" version="3.4.1.9004" targetFramework="net45" />
44
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
55
<package id="CSharpVerbalExpressions" version="0.1" targetFramework="net45" />
6+
<package id="Dropbox.Api" version="1.0.1-beta" targetFramework="net45" />
67
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
78
<package id="HtmlTags" version="2.0.0.181" targetFramework="net45" />
89
<package id="jQuery" version="1.10.2" targetFramework="net45" />

examples/SimpleTest/SimpleTest.csproj

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363
</Page>
6464
</ItemGroup>
6565
<ItemGroup>
66-
<Reference Include="Dropbox.Api, Version=0.1.5633.24043, Culture=neutral, processorArchitecture=MSIL">
66+
<Reference Include="Dropbox.Api, Version=0.1.5645.36811, Culture=neutral, processorArchitecture=MSIL">
6767
<SpecificVersion>False</SpecificVersion>
68-
<HintPath>..\..\Dropbox.Api\bin\Debug\Dropbox.Api.dll</HintPath>
68+
<HintPath>..\packages\Dropbox.Api.1.0.1-beta\lib\portable-net45+sl50+win+wpa81+wp80\Dropbox.Api.dll</HintPath>
6969
</Reference>
7070
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
7171
<SpecificVersion>False</SpecificVersion>
@@ -102,11 +102,18 @@
102102
<Error Condition="!Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="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=317567." HelpKeyword="BCLBUILD2001" />
103103
<Error Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
104104
</Target>
105+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
106+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
107+
<PropertyGroup>
108+
<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>
109+
</PropertyGroup>
110+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
111+
</Target>
105112
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
106113
Other similar extension points exist, see Microsoft.Common.targets.
107114
<Target Name="BeforeBuild">
108115
</Target>
109116
<Target Name="AfterBuild">
110117
</Target>
111118
-->
112-
</Project>
119+
</Project>

examples/SimpleTest/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="Dropbox.Api" version="1.0.1-beta" targetFramework="net45" />
34
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
45
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
56
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

examples/UniversalDemo/UniversalDemo/UniversalDemo.Windows/UniversalDemo.Windows.csproj

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
1717
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1818
<PackageCertificateKeyFile>UniversalDemo.Windows_TemporaryKey.pfx</PackageCertificateKeyFile>
19+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
20+
<RestorePackages>true</RestorePackages>
1921
</PropertyGroup>
2022
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2123
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -115,6 +117,7 @@
115117
<AppxManifest Include="Package.appxmanifest">
116118
<SubType>Designer</SubType>
117119
</AppxManifest>
120+
<None Include="packages.config" />
118121
<None Include="UniversalDemo.Windows_TemporaryKey.pfx" />
119122
</ItemGroup>
120123
<ItemGroup>
@@ -134,16 +137,37 @@
134137
</Page>
135138
</ItemGroup>
136139
<ItemGroup>
137-
<Reference Include="Dropbox.Api, Version=0.1.5633.24043, Culture=neutral, processorArchitecture=MSIL">
140+
<Reference Include="Dropbox.Api, Version=0.1.5645.36811, Culture=neutral, processorArchitecture=MSIL">
138141
<SpecificVersion>False</SpecificVersion>
139-
<HintPath>..\..\..\..\Dropbox.Api\bin\Debug\Dropbox.Api.dll</HintPath>
142+
<HintPath>..\..\..\packages\Dropbox.Api.1.0.1-beta\lib\portable-net45+sl50+win+wpa81+wp80\Dropbox.Api.dll</HintPath>
143+
</Reference>
144+
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
145+
<SpecificVersion>False</SpecificVersion>
146+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\win8\Microsoft.Threading.Tasks.dll</HintPath>
147+
</Reference>
148+
<Reference Include="Microsoft.Threading.Tasks.Extensions, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
149+
<SpecificVersion>False</SpecificVersion>
150+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\win8\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
151+
</Reference>
152+
<Reference Include="System.Net.Http.Extensions">
153+
<HintPath>..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\win8\System.Net.Http.Extensions.dll</HintPath>
154+
</Reference>
155+
<Reference Include="System.Net.Http.Primitives">
156+
<HintPath>..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\win8\System.Net.Http.Primitives.dll</HintPath>
140157
</Reference>
141158
</ItemGroup>
142159
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
143160
<VisualStudioVersion>12.0</VisualStudioVersion>
144161
</PropertyGroup>
145162
<Import Project="..\UniversalDemo.Shared\UniversalDemo.Shared.projitems" Label="Shared" />
146163
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
164+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
165+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
166+
<PropertyGroup>
167+
<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>
168+
</PropertyGroup>
169+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
170+
</Target>
147171
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
148172
Other similar extension points exist, see Microsoft.Common.targets.
149173
<Target Name="BeforeBuild">
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Dropbox.Api" version="1.0.1-beta" targetFramework="win81" />
4+
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="win81" />
5+
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="win81" />
6+
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="win81" />
7+
</packages>

examples/UniversalDemo/UniversalDemo/UniversalDemo.WindowsPhone/UniversalDemo.WindowsPhone.csproj

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
<FileAlignment>512</FileAlignment>
1616
<ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1717
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
18+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\</SolutionDir>
19+
<RestorePackages>true</RestorePackages>
1820
</PropertyGroup>
1921
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2022
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -112,10 +114,27 @@
112114
</Page>
113115
</ItemGroup>
114116
<ItemGroup>
115-
<Reference Include="Dropbox.Api, Version=0.1.5633.24043, Culture=neutral, processorArchitecture=MSIL">
117+
<Reference Include="Dropbox.Api, Version=0.1.5645.36811, Culture=neutral, processorArchitecture=MSIL">
116118
<SpecificVersion>False</SpecificVersion>
117-
<HintPath>..\..\..\..\Dropbox.Api\bin\Debug\Dropbox.Api.dll</HintPath>
119+
<HintPath>..\..\..\packages\Dropbox.Api.1.0.1-beta\lib\portable-net45+sl50+win+wpa81+wp80\Dropbox.Api.dll</HintPath>
118120
</Reference>
121+
<Reference Include="Microsoft.Threading.Tasks, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
122+
<SpecificVersion>False</SpecificVersion>
123+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\wpa81\Microsoft.Threading.Tasks.dll</HintPath>
124+
</Reference>
125+
<Reference Include="Microsoft.Threading.Tasks.Extensions, Version=1.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
126+
<SpecificVersion>False</SpecificVersion>
127+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\wpa81\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
128+
</Reference>
129+
<Reference Include="System.Net.Http.Extensions">
130+
<HintPath>..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\wpa81\System.Net.Http.Extensions.dll</HintPath>
131+
</Reference>
132+
<Reference Include="System.Net.Http.Primitives">
133+
<HintPath>..\..\..\packages\Microsoft.Net.Http.2.2.29\lib\wpa81\System.Net.Http.Primitives.dll</HintPath>
134+
</Reference>
135+
</ItemGroup>
136+
<ItemGroup>
137+
<None Include="packages.config" />
119138
</ItemGroup>
120139
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
121140
<VisualStudioVersion>12.0</VisualStudioVersion>
@@ -125,6 +144,13 @@
125144
</PropertyGroup>
126145
<Import Project="..\UniversalDemo.Shared\UniversalDemo.Shared.projitems" Label="Shared" />
127146
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
147+
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
148+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
149+
<PropertyGroup>
150+
<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>
151+
</PropertyGroup>
152+
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
153+
</Target>
128154
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
129155
Other similar extension points exist, see Microsoft.Common.targets.
130156
<Target Name="BeforeBuild">
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Dropbox.Api" version="1.0.1-beta" targetFramework="wpa81" />
4+
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="wpa81" />
5+
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="wpa81" />
6+
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="wpa81" />
7+
</packages>

examples/packages/repositories.config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
<repositories>
33
<repository path="..\SimpleBlogDemo\packages.config" />
44
<repository path="..\SimpleTest\packages.config" />
5+
<repository path="..\UniversalDemo\UniversalDemo\UniversalDemo.Windows\packages.config" />
6+
<repository path="..\UniversalDemo\UniversalDemo\UniversalDemo.WindowsPhone\packages.config" />
57
</repositories>

0 commit comments

Comments
 (0)