Skip to content

Commit 338de47

Browse files
authored
Automatically set 'PrivateAssets=All' for .Sources references (#7539)
When a `<Reference>` is named `*.Sources`, set PrivateAssets=All (exclude from generated nuspec) and IncludeAssets=ContentFiles (only consume content files, not .dll's)
1 parent cddbc2e commit 338de47

File tree

35 files changed

+52
-47
lines changed

35 files changed

+52
-47
lines changed

eng/targets/ResolveReferences.targets

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,17 @@
4848
<UseProjectReferences Condition=" '$(UseProjectReferences)' == '' ">false</UseProjectReferences>
4949
</PropertyGroup>
5050

51+
<ItemDefinitionGroup>
52+
<Reference>
53+
<IsSharedSource></IsSharedSource>
54+
</Reference>
55+
</ItemDefinitionGroup>
56+
5157
<ItemGroup>
58+
<Reference Update="@(Reference)">
59+
<IsSharedSource Condition="'%(IsSharedSource)' == '' AND $([System.String]::new('%(Identity)').EndsWith('.Sources'))">true</IsSharedSource>
60+
</Reference>
61+
5262
<!-- Packages which are implicitly defined by the .NET Core SDK. -->
5363
<_ImplicitPackageReference Include="@(PackageReference->WithMetadataValue('IsImplicitlyDefined', 'true'))" />
5464
<!-- Capture a list of references which were set explicitly in the project. -->
@@ -67,7 +77,8 @@
6777
@(AspNetCoreAppReference);
6878
@(AspNetCoreAppReferenceAndPackage);
6979
@(ExternalAspNetCoreAppReference);
70-
@(_CompilationOnlyReference)" />
80+
@(_CompilationOnlyReference);
81+
@(Reference->WithMetadataValue('IsSharedSource', 'true'))" />
7182
<!-- TODO: remove Newtonsoft.Json from this list once https://github.com/aspnet/AspNetCore/issues/4260 is resolved -->
7283

7384
<!--
@@ -87,12 +98,6 @@
8798
<Reference Remove="@(Reference)" />
8899
</ItemGroup>
89100

90-
<ItemDefinitionGroup>
91-
<Reference>
92-
<SharedSources>false</SharedSources>
93-
</Reference>
94-
</ItemDefinitionGroup>
95-
96101
<!--
97102
This target resolves remaining Referene items to Packages, if possible. If not, they are left as Reference items fo the SDK to resolve.
98103
This target helps ensure projects within the shared framework do no unintentionally add new references,
@@ -104,7 +109,7 @@
104109
<Error Condition="@(_InvalidReferenceToSharedFxOnlyAssembly->Count()) != 0"
105110
Text="Cannot reference &quot;%(_InvalidReferenceToSharedFxOnlyAssembly.Identity)&quot; directly because it is part of the shared framework and this project is not. Use &lt;FrameworkReference Include=&quot;Microsoft.AspNetCore.App&quot; /&gt; instead." />
106111

107-
<Error Condition="@(_InvalidReferenceToNonSharedFxAssembly->Count()) != 0 AND '%(_InvalidReferenceToNonSharedFxAssembly.SharedSources)' != 'true'"
112+
<Error Condition="@(_InvalidReferenceToNonSharedFxAssembly->Count()) != 0"
108113
Text="Cannot reference &quot;%(_InvalidReferenceToNonSharedFxAssembly.Identity)&quot;. This dependency is not in the shared framework. See docs/SharedFramework.md for instructions on how to modify what is in the shared framework." />
109114
</Target>
110115

@@ -119,8 +124,8 @@
119124

120125
<!-- Ensure only content asset are consumed from .Sources packages -->
121126
<Reference>
122-
<IncludeAssets Condition="'%(SharedSources)' == 'true'">ContentFiles</IncludeAssets>
123-
<PrivateAssets Condition="'%(SharedSources)' == 'true'">All</PrivateAssets>
127+
<IncludeAssets Condition="'%(IsSharedSource)' == 'true'">ContentFiles</IncludeAssets>
128+
<PrivateAssets Condition="'%(IsSharedSource)' == 'true'">All</PrivateAssets>
124129
</Reference>
125130

126131
<!-- Identify if any references were present in the last release of this package, but have been removed. -->

src/Components/Blazor/Build/src/Microsoft.AspNetCore.Blazor.Build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ItemGroup>
4040
<ProjectReference Condition="'$(BuildNodeJS)' != 'false'" Include="$(RepositoryRoot)src\Components\Browser.JS\src\Microsoft.AspNetCore.Components.Browser.JS.npmproj" ReferenceOutputAssembly="false" />
4141
<Reference Include="Microsoft.AspNetCore.Components" />
42-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
42+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
4343
<Reference Include="Microsoft.Extensions.FileProviders.Composite" />
4444
<Reference Include="Microsoft.Extensions.FileProviders.Physical" />
4545
<Reference Include="Mono.Cecil" />

src/Components/Blazor/Cli/src/Microsoft.AspNetCore.Blazor.Cli.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<Reference Include="Microsoft.AspNetCore.Components.Server" />
1818
<Reference Include="Microsoft.AspNetCore.ResponseCompression" />
1919
<Reference Include="Microsoft.AspNetCore" />
20-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
20+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2121
</ItemGroup>
2222

2323
<!--

src/Components/Components/perf/Microsoft.AspNetCore.Components.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ItemGroup>
1111
<Reference Include="BenchmarkDotNet" />
1212
<Reference Include="Microsoft.AspNetCore.Components" />
13-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
13+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
1414
</ItemGroup>
1515

1616
</Project>

src/Hosting/Hosting/src/Microsoft.AspNetCore.Hosting.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<Reference Include="Microsoft.Extensions.Hosting.Abstractions" />
2727
<Reference Include="Microsoft.Extensions.Logging" />
2828
<Reference Include="Microsoft.Extensions.Options" />
29-
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" SharedSources="true" />
29+
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" />
3030
</ItemGroup>
3131

3232
</Project>

src/Hosting/TestHost/src/Microsoft.AspNetCore.TestHost.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<ItemGroup>
1313
<Reference Include="Microsoft.AspNetCore.Hosting" />
14-
<Reference Include="Microsoft.Extensions.HostFactoryResolver.Sources" PrivateAssets="All" />
14+
<Reference Include="Microsoft.Extensions.HostFactoryResolver.Sources" />
1515
<Reference Include="System.IO.Pipelines" />
1616
</ItemGroup>
1717

src/Http/Http.Abstractions/src/Microsoft.AspNetCore.Http.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Microsoft.AspNetCore.Http.HttpResponse</Description>
2121

2222
<ItemGroup>
2323
<Reference Include="Microsoft.AspNetCore.Http.Features" />
24-
<Reference Include="Microsoft.Extensions.ActivatorUtilities.Sources" SharedSources="true" />
24+
<Reference Include="Microsoft.Extensions.ActivatorUtilities.Sources" />
2525
<Reference Include="System.Text.Encodings.Web" />
2626
</ItemGroup>
2727

src/Http/Http/perf/Microsoft.AspNetCore.Http.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<Reference Include="BenchmarkDotNet" />
1414
<Reference Include="Microsoft.AspNetCore.Http" />
15-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
15+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
1616
</ItemGroup>
1717

1818
</Project>

src/Http/Routing/perf/Microsoft.AspNetCore.Routing.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
<ItemGroup>
3939
<Reference Include="BenchmarkDotNet" />
40-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
40+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
4141
<Reference Include="Microsoft.AspNetCore.Http" />
4242
<Reference Include="Microsoft.AspNetCore.Routing" />
4343
<Reference Include="Microsoft.Extensions.DependencyInjection" />

src/Http/Routing/src/Microsoft.AspNetCore.Routing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Microsoft.AspNetCore.Routing.RouteCollection</Description>
2828
<ItemGroup>
2929
<Reference Include="Microsoft.AspNetCore.Http.Extensions" />
3030
<Reference Include="Microsoft.AspNetCore.Routing.Abstractions" />
31-
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" SharedSources="true" />
31+
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" />
3232
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
3333
<Reference Include="Microsoft.Extensions.ObjectPool" />
3434
<Reference Include="Microsoft.Extensions.Options" />

src/Http/Routing/tools/Swaggatherer/Swaggatherer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<ItemGroup>
1010
<Reference Include="Newtonsoft.Json" />
1111
<Reference Include="Microsoft.AspNetCore.Routing" />
12-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
12+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
1313
</ItemGroup>
1414

1515
</Project>

src/Middleware/Diagnostics/src/Microsoft.AspNetCore.Diagnostics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<Reference Include="Microsoft.Extensions.FileProviders.Physical" />
2525
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
2626
<Reference Include="Microsoft.Extensions.Options" />
27-
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" SharedSources="true" />
27+
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" />
2828
</ItemGroup>
2929

3030
</Project>

src/Middleware/ResponseCompression/perf/Microsoft.AspNetCore.ResponseCompression.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<ItemGroup>
99
<Reference Include="BenchmarkDotNet" />
1010
<Reference Include="Microsoft.AspNetCore.Http" />
11-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
11+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
1212
<Reference Include="Microsoft.AspNetCore.ResponseCompression" />
1313
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1414
</ItemGroup>

src/Mvc/src/Microsoft.AspNetCore.Mvc.Abstractions/Microsoft.AspNetCore.Mvc.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Microsoft.AspNetCore.Mvc.IActionResult</Description>
2121
</ItemGroup>
2222

2323
<ItemGroup Label="Sources packages">
24-
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" SharedSources="true" />
24+
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" />
2525
</ItemGroup>
2626

2727
</Project>

src/Mvc/src/Microsoft.AspNetCore.Mvc.Core/Microsoft.AspNetCore.Mvc.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Microsoft.AspNetCore.Mvc.RouteAttribute</Description>
4444
</ItemGroup>
4545

4646
<ItemGroup Label="Sources packages">
47-
<Reference Include="Microsoft.Extensions.ParameterDefaultValue.Sources" SharedSources="true" />
48-
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" SharedSources="true" />
49-
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" SharedSources="true" />
47+
<Reference Include="Microsoft.Extensions.ParameterDefaultValue.Sources" />
48+
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" />
49+
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" />
5050
</ItemGroup>
5151

5252
</Project>

src/Mvc/src/Microsoft.AspNetCore.Mvc.Testing/Microsoft.AspNetCore.Mvc.Testing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<Reference Include="Microsoft.AspNetCore.TestHost" />
1414
<Reference Include="Microsoft.AspNetCore.Mvc.Core" />
15-
<Reference Include="Microsoft.Extensions.HostFactoryResolver.Sources" PrivateAssets="All" />
15+
<Reference Include="Microsoft.Extensions.HostFactoryResolver.Sources" />
1616
<Reference Include="Microsoft.Extensions.Hosting" />
1717
</ItemGroup>
1818

src/ProjectTemplates/test/ProjectTemplates.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<Reference Include="AngleSharp" />
23-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
23+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2424
<Reference Include="Selenium.Support" />
2525
<Reference Include="Selenium.WebDriver.MicrosoftDriver" />
2626
<Reference Include="Selenium.WebDriver" />

src/Razor/Razor/src/Microsoft.AspNetCore.Razor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper</Description>
2020

2121
<ItemGroup>
2222
<Reference Include="Microsoft.AspNetCore.Html.Abstractions" />
23-
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" SharedSources="true" />
23+
<Reference Include="Microsoft.Extensions.HashCodeCombiner.Sources" />
2424
</ItemGroup>
2525

2626
</Project>

src/Security/benchmarks/Microsoft.AspNetCore.Security.Performance/Microsoft.AspNetCore.Security.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<Reference Include="Microsoft.AspNetCore.Authorization.Policy" />
1414
<Reference Include="BenchmarkDotNet" />
15-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
15+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
1616
<Reference Include="Microsoft.AspNetCore.Http" />
1717
<Reference Include="Microsoft.Extensions.DependencyInjection" />
1818
<Reference Include="Microsoft.Extensions.Logging" />

src/Servers/Connections.Abstractions/src/Microsoft.AspNetCore.Connections.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<Reference Include="Microsoft.AspNetCore.Http.Features" />
15-
<Reference Include="Microsoft.Extensions.ActivatorUtilities.Sources" SharedSources="true" />
15+
<Reference Include="Microsoft.Extensions.ActivatorUtilities.Sources" />
1616
<Reference Include="System.IO.Pipelines" />
1717
</ItemGroup>
1818

src/Servers/IIS/IIS/benchmarks/IIS.Performance/IIS.Performance.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<ItemGroup>
4141
<Reference Include="BenchmarkDotNet" />
42-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
42+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
4343
<Reference Include="Microsoft.AspNetCore.Server.IISIntegration" />
4444
</ItemGroup>
4545

src/Servers/Kestrel/perf/Kestrel.Performance/Microsoft.AspNetCore.Server.Kestrel.Performance.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
<Compile Include="$(KestrelSharedSourceRoot)test\TestHttp1Connection.cs" />
1515
<Compile Include="$(KestrelSharedSourceRoot)test\TestKestrelTrace.cs" />
1616
</ItemGroup>
17-
17+
1818
<ItemGroup>
1919
<Reference Include="BenchmarkDotNet" />
20-
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" PrivateAssets="All" />
20+
<Reference Include="Microsoft.AspNetCore.BenchmarkRunner.Sources" />
2121
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Core" />
2222
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv" />
2323
<Reference Include="Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets" />

src/Servers/Kestrel/test/InMemory.FunctionalTests/InMemory.FunctionalTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<ItemGroup>
1818
<Reference Include="Microsoft.AspNetCore.Http.Abstractions" />
1919
<Reference Include="Microsoft.AspNetCore.Server.Kestrel" />
20-
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" PrivateAssets="All" />
20+
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" />
2121
<Reference Include="Newtonsoft.Json" />
2222
</ItemGroup>
2323

src/Shared/test/Shared.Tests/Microsoft.AspNetCore.Shared.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<Reference Include="FSharp.Core" />
2121
<Reference Include="System.Reflection.Metadata" />
2222
<Reference Include="System.Threading.Tasks.Extensions" />
23-
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" PrivateAssets="All" />
23+
<Reference Include="Microsoft.Extensions.TypeNameHelper.Sources" />
2424
</ItemGroup>
2525

2626
<ItemGroup>

src/SignalR/common/Http.Connections.Common/src/Microsoft.AspNetCore.Http.Connections.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
</ItemGroup>
2222

2323
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'" >
24-
<Reference Include="Microsoft.Bcl.Json.Sources" SharedSources="true" />
24+
<Reference Include="Microsoft.Bcl.Json.Sources" />
2525
<Reference Include="System.Buffers" />
2626
</ItemGroup>
2727

src/SignalR/common/Http.Connections/src/Microsoft.AspNetCore.Http.Connections.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<Reference Include="Microsoft.AspNetCore.Http" />
2929
<Reference Include="Microsoft.AspNetCore.Routing" />
3030
<Reference Include="Microsoft.AspNetCore.WebSockets" />
31-
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" SharedSources="true" />
31+
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" />
3232
<Reference Include="Newtonsoft.Json" />
3333
<Reference Include="System.Security.Principal.Windows" />
3434
</ItemGroup>

src/SignalR/common/SignalR.Common/src/Microsoft.AspNetCore.SignalR.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</ItemGroup>
2727

2828
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
29-
<Reference Include="Microsoft.Bcl.Json.Sources" SharedSources="true" />
29+
<Reference Include="Microsoft.Bcl.Json.Sources" />
3030
<Reference Include="System.Buffers" />
3131
</ItemGroup>
3232

src/SignalR/common/testassets/Tests.Utils/Microsoft.AspNetCore.SignalR.Tests.Utils.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<Reference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" />
2020
<Reference Include="Microsoft.AspNetCore.Testing" />
2121
<Reference Include="Microsoft.Extensions.Logging.Testing" />
22-
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" PrivateAssets="All" />
22+
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" />
2323
</ItemGroup>
2424

2525
</Project>

src/SignalR/perf/Microbenchmarks/Microsoft.AspNetCore.SignalR.Microbenchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<Reference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" />
2929
<Reference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" />
3030
<Reference Include="Microsoft.Extensions.DependencyInjection" />
31-
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" PrivateAssets="All" />
31+
<Reference Include="Microsoft.Extensions.ValueStopwatch.Sources" />
3232
<Reference Include="Moq" />
3333
<Reference Include="System.Reactive.Linq" />
3434
<Reference Include="System.Threading.Channels" />

src/SignalR/perf/benchmarkapps/Crankier/Crankier.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<ItemGroup>
1010
<Reference Include="Microsoft.AspNetCore.SignalR.Client" />
11-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
11+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
1212
<Reference Include="Newtonsoft.Json" />
1313
</ItemGroup>
1414

src/SignalR/samples/ClientSample/ClientSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Reference Include="Microsoft.AspNetCore.SignalR.Client" />
1414
<Reference Include="Microsoft.Extensions.Logging.Console" />
1515
<Reference Include="Microsoft.Extensions.Logging" />
16-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
16+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
1717
</ItemGroup>
1818

1919
</Project>

src/Tools/dotnet-dev-certs/src/dotnet-dev-certs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
22+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2323
<Reference Include="System.Security.Cryptography.Cng" />
2424
</ItemGroup>
2525

src/Tools/dotnet-sql-cache/src/dotnet-sql-cache.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</ItemGroup>
1818

1919
<ItemGroup>
20-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
20+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2121
<Reference Include="System.Data.SqlClient" />
2222
</ItemGroup>
2323

src/Tools/dotnet-user-secrets/src/dotnet-user-secrets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
23+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2424
<Reference Include="Microsoft.Extensions.Configuration.UserSecrets" />
2525
</ItemGroup>
2626

src/Tools/dotnet-watch/src/dotnet-watch.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</ItemGroup>
2121

2222
<ItemGroup>
23-
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" PrivateAssets="All" />
23+
<Reference Include="Microsoft.Extensions.CommandLineUtils.Sources" />
2424
</ItemGroup>
2525

2626
</Project>

0 commit comments

Comments
 (0)