Permalink
Browse files

Only import package versions in projects that restore toolset packages (

#28065)

* Only import package versions in projects that restore toolset packages

* Add nuget.org feed
  • Loading branch information...
tmat committed Jun 22, 2018
1 parent 9a07579 commit 0a35980a31fa6ac6badaf6fe38035cb1c863d63b
View
@@ -8,4 +8,7 @@
⚠ THIS IS A PERFORMANCE-CRITICAL LINE. DO NOT REMOVE. ⚠ -->
<add key="enabled" value="false" />
</packageRestore>
<packageSources>
<clear />
</packageSources>
</configuration>
@@ -256,6 +256,7 @@
<PropertyGroup>
<RestoreSources>
$(RestoreSources);
https://api.nuget.org/v3/index.json;
https://dotnet.myget.org/F/dotnet-coreclr/api/v3/index.json;
https://dotnet.myget.org/F/dotnet-core/api/v3/index.json;
https://dotnet.myget.org/F/dotnet-corefxtestdata/api/v3/index.json;
@@ -0,0 +1,4 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project>
<Import Project="..\Targets\Packages.props" />
</Project>
@@ -0,0 +1,3 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project>
</Project>
@@ -3,7 +3,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net46</TargetFramework>
<NonShipping>true</NonShipping>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.DotNet.IBCMerge" Version="$(MicrosoftDotNetIBCMerge)" />
@@ -2,9 +2,7 @@
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(RoslynPortableTargetFrameworks)</TargetFrameworks>
<NonShipping>true</NonShipping>
<OutputType>Library</OutputType>
<TargetFrameworks>net46;netcoreapp2.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Net.Sdk" Version="$(MicrosoftNetSdkVersion)" ExcludeAssets="all" />

0 comments on commit 0a35980

Please sign in to comment.