Skip to content

Commit 6739323

Browse files
author
Christy Henriksson
committed
Fix PackageRef dependencies
1 parent 2533703 commit 6739323

4 files changed

Lines changed: 28 additions & 33 deletions

File tree

build.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ Invoke-BuildStep 'Building solution' {
9393
-ev +BuildErrors
9494

9595
Invoke-BuildStep 'Creating artifacts' {
96-
$packageId = 'NuGetGallery.Core'+$PackageSuffix
97-
New-Package (Join-Path $PSScriptRoot "src\NuGetGallery.Core\NuGetGallery.Core.csproj") -Configuration $Configuration -Symbols -BuildNumber $BuildNumber -Version $SemanticVersion -PackageId $packageId `
98-
-ev +BuildErrors
99-
}
100-
96+
$packageId = 'NuGetGallery.Core'+$PackageSuffix
97+
New-ProjectPackage (Join-Path $PSScriptRoot "src\NuGetGallery.Core\NuGetGallery.Core.csproj") -Configuration $Configuration -Symbols -BuildNumber $BuildNumber -Version $SemanticVersion -PackageId $packageId `
98+
-ev +BuildErrors
99+
}
100+
101101
Trace-Log ('-' * 60)
102102

103103
## Calculating Build time

src/NuGetGallery.Core/NuGetGallery.Core.csproj

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
44
<PropertyGroup>
5+
<Description>Core support library for NuGet Gallery Frontend and Backend</Description>
56
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
67
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
78
<ProjectGuid>{097B2CDD-9623-4C34-93C2-D373D51F5B4E}</ProjectGuid>
@@ -12,6 +13,8 @@
1213
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
1314
<FileAlignment>512</FileAlignment>
1415
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
16+
<RuntimeIdentifier>win</RuntimeIdentifier>
17+
<NoWarn>$(NoWarn);NU5104</NoWarn>
1518
<NuGetPackageImportStamp>
1619
</NuGetPackageImportStamp>
1720
<BuildPackage>true</BuildPackage>
@@ -211,7 +214,6 @@
211214
</ItemGroup>
212215
<ItemGroup>
213216
<None Include="app.config" />
214-
<None Include="NuGetGallery.Core.nuspec" />
215217
</ItemGroup>
216218
<ItemGroup>
217219
<EmbeddedResource Include="CoreStrings.resx">
@@ -247,16 +249,17 @@
247249
<PackageReference Include="Newtonsoft.Json">
248250
<Version>9.0.1</Version>
249251
</PackageReference>
250-
<PackageReference Include="NuGet.Common">
251-
<Version>4.8.0-preview4.5287</Version>
252+
<PackageReference Include="Microsoft.Web.Xdt">
253+
<Version>2.1.1</Version>
252254
</PackageReference>
253-
<PackageReference Include="NuGet.Frameworks">
254-
<Version>4.8.0-preview4.5287</Version>
255+
<PackageReference Include="Microsoft.WindowsAzure.ConfigurationManager">
256+
<Version>3.1.0</Version>
255257
</PackageReference>
256-
<PackageReference Include="NuGet.Packaging">
257-
<Version>4.8.0-preview4.5287</Version>
258+
<PackageReference Include="NuGet.Build.Tasks.Pack">
259+
<Version>5.0.0-preview1.5429</Version>
260+
<PrivateAssets>all</PrivateAssets>
258261
</PackageReference>
259-
<PackageReference Include="NuGet.Packaging.Core">
262+
<PackageReference Include="NuGet.Packaging">
260263
<Version>4.8.0-preview4.5287</Version>
261264
</PackageReference>
262265
<PackageReference Include="NuGet.Services.Validation">
@@ -265,13 +268,22 @@
265268
<PackageReference Include="NuGet.Services.Validation.Issues">
266269
<Version>2.28.0-master-37018</Version>
267270
</PackageReference>
268-
<PackageReference Include="NuGet.Versioning">
269-
<Version>4.8.0-preview4.5287</Version>
270-
</PackageReference>
271271
<PackageReference Include="WindowsAzure.Storage">
272272
<Version>7.1.2</Version>
273273
</PackageReference>
274274
</ItemGroup>
275+
<Target Name="PopulateNuspec" BeforeTargets="GenerateNuspec">
276+
<PropertyGroup>
277+
<PackageId Condition="'$(PackageId)' == ''">$(MSBuildProjectName)</PackageId>
278+
<Title Condition="'$(Title)' == ''">$(PackageId)</Title>
279+
<Authors>.NET Foundation</Authors>
280+
<PackageLicenseUrl>https://github.com/NuGet/NuGetGallery/blob/master/LICENSE.txt</PackageLicenseUrl>
281+
<PackageProjectUrl>https://github.com/NuGet/NuGetGallery</PackageProjectUrl>
282+
<Copyright>© .NET Foundation. All rights reserved.</Copyright>
283+
<IncludeSymbols Condition="'$(IncludeSymbols)' == ''">true</IncludeSymbols>
284+
<NoPackageAnalysis Condition="'$(NoPackageAnalysis)' == ''">true</NoPackageAnalysis>
285+
</PropertyGroup>
286+
</Target>
275287
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
276288
<PropertyGroup>
277289
<SignPath>..\..\build</SignPath>

src/NuGetGallery.Core/NuGetGallery.Core.nuspec

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/NuGetGallery/NuGetGallery.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@
110110
<Reference Include="System.IO.Compression" />
111111
<Reference Include="System.Net" />
112112
<Reference Include="System.Net.Http" />
113-
<Reference Include="System.IO.Compression" />
114-
<Reference Include="System.Net" />
115-
<Reference Include="System.Net.Http" />
116113
<Reference Include="System.Net.Http.WebRequest" />
117114
<Reference Include="System.Runtime.Serialization" />
118115
<Reference Include="System.ServiceModel" />

0 commit comments

Comments
 (0)