Skip to content

Commit

Permalink
Only import package versions in projects that restore toolset packages (
Browse files Browse the repository at this point in the history
dotnet#28065)

* Only import package versions in projects that restore toolset packages

* Add nuget.org feed
  • Loading branch information
tmat authored Jun 22, 2018
1 parent 9a07579 commit 0a35980
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
⚠ THIS IS A PERFORMANCE-CRITICAL LINE. DO NOT REMOVE. ⚠ -->
<add key="enabled" value="false" />
</packageRestore>
<packageSources>
<clear />
</packageSources>
</configuration>
1 change: 1 addition & 0 deletions build/Targets/Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions build/ToolsetPackages/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -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>
3 changes: 3 additions & 0 deletions build/ToolsetPackages/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -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>
1 change: 0 additions & 1 deletion build/ToolsetPackages/InternalToolset.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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)" />
Expand Down
4 changes: 1 addition & 3 deletions build/ToolsetPackages/RoslynToolset.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down

0 comments on commit 0a35980

Please sign in to comment.