Skip to content

Commit 6d97b44

Browse files
authored
Fix dependency from EventLog to TraceSource ref (#56417)
* Fix dependency from EventLog to TraceSource ref This regressed with 663c40d. Reference projects should never reference source projects. This is one of the reasons why slngen creates different solution files now. * Update Microsoft.Extensions.DependencyInjection.Abstractions.csproj
1 parent 8ed7f57 commit 6d97b44

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/libraries/Microsoft.Extensions.DependencyInjection.Abstractions/ref/Microsoft.Extensions.DependencyInjection.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or
1212
$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETFramework'">
1313
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" />
14-
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\src\Microsoft.Bcl.AsyncInterfaces.csproj" />
14+
<ProjectReference Include="$(LibrariesProjectRoot)Microsoft.Bcl.AsyncInterfaces\ref\Microsoft.Bcl.AsyncInterfaces.csproj" />
1515
</ItemGroup>
1616
</Project>

src/libraries/System.Diagnostics.EventLog/ref/System.Diagnostics.EventLog.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Permissions\ref\System.Security.Permissions.csproj" />
1111
</ItemGroup>
1212
<ItemGroup Condition="'$(TargetFramework)' == '$(NetCoreAppCurrent)'">
13-
<ProjectReference Include="$(LibrariesProjectRoot)System.Diagnostics.TraceSource\src\System.Diagnostics.TraceSource.csproj" />
13+
<ProjectReference Include="$(LibrariesProjectRoot)System.Diagnostics.TraceSource\ref\System.Diagnostics.TraceSource.csproj" />
1414
</ItemGroup>
1515
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
1616
<Reference Include="System.ComponentModel.Primitives" />
@@ -19,4 +19,4 @@
1919
<Reference Include="System.Runtime" />
2020
<Reference Include="System.Runtime.InteropServices" />
2121
</ItemGroup>
22-
</Project>
22+
</Project>

0 commit comments

Comments
 (0)