|
| 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> |
0 commit comments