Skip to content

Commit b0570cd

Browse files
authored
Merge pull request #706 from jimmylewis/fixWarnings
Fix warnings related to NuGet packages
2 parents 53e784f + 2e2b7f2 commit b0570cd

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

azure-pipelines/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ steps:
1111
- script: dotnet --info
1212
displayName: Show dotnet SDK info
1313

14-
- task: DotNetCoreCLI@2
15-
displayName: Restore
14+
- task: NuGetAuthenticate@1
15+
displayName: 'Authenticate with NuGet'
16+
17+
- task: PowerShell@2
18+
displayName: 'dotnet restore'
1619
inputs:
17-
command: restore
18-
verbosityRestore: normal # detailed, normal, minimal
19-
projects: LibraryManager.sln
20-
feedsToUse: config
21-
nugetConfigPath: nuget.config
20+
targetType: 'inline'
21+
script: 'dotnet restore --nologo'
2222

2323
- task: MSBuild@1
2424
inputs:

nuget.config

+14
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,18 @@
66
<add key="dotnet-myget-legacy" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/myget-legacy/nuget/v3/index.json" />
77
<add key="vs" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/nuget/v3/index.json" />
88
</packageSources>
9+
10+
<packageSourceMapping>
11+
<packageSource key="dotnet-public">
12+
<package pattern="*" />
13+
</packageSource>
14+
<packageSource key="dotnet-myget-legacy">
15+
<package pattern="Microsoft.Extensions.CommandLineUtils.Sources" />
16+
</packageSource>
17+
<packageSource key="vs">
18+
<package pattern="Microsoft.Test.Apex.VisualStudio" />
19+
<package pattern="Microsoft.VisualStudio.Internal.MicroBuild" />
20+
<package pattern="Microsoft.WebTools.Languages.*" />
21+
</packageSource>
22+
</packageSourceMapping>
923
</configuration>

test/LibraryManager.IntegrationTest/Microsoft.Web.LibraryManager.IntegrationTest.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<PackageReference Include="Microsoft.WebTools.Languages.Json.VS" />
1010
<PackageReference Include="MSTest.TestAdapter" />
1111
<PackageReference Include="MSTest.TestFramework" />
12-
<PackageReference Include="Nerdbank.GitVersioning" />
1312
</ItemGroup>
1413
<ItemGroup>
1514
<Compile Remove="TestSolution\**\*" />

0 commit comments

Comments
 (0)