Skip to content

Commit f95d1a7

Browse files
committed
Reorganize into separate assembly.
1 parent 940d860 commit f95d1a7

File tree

9 files changed

+57
-1
lines changed

9 files changed

+57
-1
lines changed

dir.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<PackageReportDataFile>$(PackageReportDir)prebuilt-usage.xml</PackageReportDataFile>
7373
<PoisonReportDataFile>$(PackageReportDir)poison-usage.xml</PoisonReportDataFile>
7474
<PoisonMarkerFile>.prebuilt.xml</PoisonMarkerFile>
75-
<SourceBuiltPoisonReportDataFile>$(PackageReportDir)poison-source-built-usage.xml</SourceBuiltPoisonReportDataFile>
75+
<SourceBuiltPoisonReportDataFile>$(PackageReportDir)poison-source-built-usage.xml</PackageReportDataFile>
7676
<SourceBuiltPoisonMarkerFile>.source-built.xml</SourceBuiltPoisonMarkerFile>
7777
<ProjectAssetsJsonArchiveFile>$(PackageReportDir)all-project-assets-json-files.zip</ProjectAssetsJsonArchiveFile>
7878
<ProdConManifestFile>$(PackageReportDir)prodcon-build.xml</ProdConManifestFile>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<!-- We use dotnet-cli to build BuildTasks, so we need to disable BuildTools Roslyn properties. -->
4+
<DisableBuildToolsRoslynVersion>true</DisableBuildToolsRoslynVersion>
5+
</PropertyGroup>
6+
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))/dir.props" />
7+
<PropertyGroup>
8+
<TargetFramework>netstandard1.5</TargetFramework>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
10+
<CoreSetupPlatformAbstractionsPath>$(SubmoduleDirectory)core-setup/src/managed/Microsoft.DotNet.PlatformAbstractions/</CoreSetupPlatformAbstractionsPath>
11+
<OutputPath>$(MSBuildThisFileDirectory)bin/$(Configuration)</OutputPath>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)Platform.cs" />
16+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)RuntimeEnvironment.cs" />
17+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)Native/NativeMethods.Darwin.cs" />
18+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)Native/NativeMethods.Unix.cs" />
19+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)Native/NativeMethods.Windows.cs" />
20+
<Compile Include="$(CoreSetupPlatformAbstractionsPath)Native/PlatformApis.cs" />
21+
</ItemGroup>
22+
23+
<ItemGroup>
24+
<PackageReference Include="Microsoft.Build">
25+
<Version>15.6.82</Version>
26+
</PackageReference>
27+
<PackageReference Include="Microsoft.Build.Utilities.Core">
28+
<Version>15.6.82</Version>
29+
</PackageReference>
30+
<PackageReference Include="Mono.Cecil" Version="0.10.0" />
31+
<PackageReference Include="System.ValueTuple">
32+
<Version>4.4.0</Version>
33+
</PackageReference>
34+
</ItemGroup>
35+
36+
<!--
37+
Use some assemblies from the SDK, instead of package references. This ensures they match what's
38+
found when the task is loaded by the SDK's MSBuild.
39+
-->
40+
<PropertyGroup>
41+
<!-- Read SDK_VERSION if not passed in. Enables Visual Studio builds. -->
42+
<SDK_VERSION Condition="'$(SDK_VERSION)' == ''">$([System.IO.File]::ReadAllText('$(ProjectDir)DotnetCLIVersion.txt').Trim())</SDK_VERSION>
43+
<SdkReferenceDir>$(ToolsDir)dotnetcli/sdk/$(SDK_VERSION)/</SdkReferenceDir>
44+
</PropertyGroup>
45+
46+
<ItemGroup>
47+
<SdkAssembly Include="$(SdkReferenceDir)Newtonsoft.Json.dll" />
48+
<SdkAssembly Include="$(SdkReferenceDir)NuGet.*.dll" />
49+
</ItemGroup>
50+
51+
<ItemGroup>
52+
<Reference Include="@(SdkAssembly -> '%(FileName)')">
53+
<HintPath>$(SdkReferenceDir)%(Identity).dll</HintPath>
54+
</Reference>
55+
</ItemGroup>
56+
</Project>

tools-local/tasks/Microsoft.DotNet.SourceBuild.Tasks.LeakDetection/_._

Whitespace-only changes.

0 commit comments

Comments
 (0)