Skip to content

Commit 801b195

Browse files
committed
Fix msbuild package references
1 parent 9ba4090 commit 801b195

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

eng/targets/BuildTask.props

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
2+
<Project>
3+
4+
<!--
5+
Included in projects that define msbuild tasks.
6+
-->
7+
8+
<ItemGroup>
9+
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="Runtime" />
10+
<PackageReference Include="Microsoft.Build.Tasks.Core" ExcludeAssets="Runtime" />
11+
<PackageReference Include="System.Memory" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
12+
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
13+
</ItemGroup>
14+
</Project>

src/Compilers/Core/MSBuildTask/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. -->
22
<Project>
33
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
4+
<Import Project="$(RepositoryEngineeringDir)targets\BuildTask.props" />
45

56
<PropertyGroup>
67
<DefaultLanguage>en-US</DefaultLanguage>

src/Compilers/Core/MSBuildTask/Directory.Build.targets

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
33
<Project>
44
<ItemGroup>
5-
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="Runtime" />
6-
<PackageReference Include="Microsoft.Build.Tasks.Core" ExcludeAssets="Runtime" />
7-
<PackageReference Include="System.Memory" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
8-
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Condition="'$(TargetFrameworkIdentifier)' != '.NETCoreApp'" />
95
<CompilerVersionTargetsFile Include="$(IntermediateOutputPath)Microsoft.Managed.Core.CurrentVersions.targets" />
106
</ItemGroup>
117
<Target Name="GenerateCompilerVersionTargets" BeforeTargets="AssignTargetPaths" DependsOnTargets="GenerateCompilerVersionTargetsFile">

src/Tools/SemanticSearch/BuildTask/SemanticSearch.BuildTask.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@
55
<AutoGenerateAssemblyVersion>true</AutoGenerateAssemblyVersion>
66
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
77
</PropertyGroup>
8-
<ItemGroup>
9-
<PackageReference Include="Microsoft.Build.Framework" Version="$(RefOnlyMicrosoftBuildFrameworkVersion)" />
10-
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(RefOnlyMicrosoftBuildTasksCoreVersion)" />
11-
</ItemGroup>
128
<ItemGroup>
139
<ProjectReference Include="..\..\..\Compilers\Core\Portable\Microsoft.CodeAnalysis.csproj" Private="true" />
1410
<ProjectReference Include="..\..\..\Compilers\CSharp\Portable\Microsoft.CodeAnalysis.CSharp.csproj" Private="true" />
1511
</ItemGroup>
1612
<ItemGroup>
1713
<InternalsVisibleTo Include="SemanticSearch.BuildTask.UnitTests" />
1814
</ItemGroup>
15+
16+
<Import Project="$(RepositoryEngineeringDir)targets\BuildTask.props" />
1917
<Import Project="..\..\..\Dependencies\Contracts\Microsoft.CodeAnalysis.Contracts.projitems" Label="Shared" />
2018
</Project>

0 commit comments

Comments
 (0)