-
Notifications
You must be signed in to change notification settings - Fork 358
/
Copy pathMicrosoft.DotNet.Arcade.Sdk.csproj
100 lines (86 loc) · 5.1 KB
/
Microsoft.DotNet.Arcade.Sdk.csproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. -->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;$(TargetFrameworkForNETSDK)</TargetFrameworks>
<TargetFrameworks Condition="'$(DotNetBuildFromSource)' == 'true'">$(TargetFrameworkForNETSDK)</TargetFrameworks>
<LangVersion>preview</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ExcludeFromSourceBuild>false</ExcludeFromSourceBuild>
<IsPackable>true</IsPackable>
<!-- Generate package during Build, rather than Pack, so that it can be used during Test. -->
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Description>Common toolset for repositories</Description>
<PackageTags>Arcade Build Repository Toolset MSBuild SDK</PackageTags>
<DevelopmentDependency>true</DevelopmentDependency>
<PackageType>MSBuildSdk</PackageType>
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<EnableGeneratedPackageContent>false</EnableGeneratedPackageContent>
<_GeneratedVersionFilePath>$(IntermediateOutputPath)DefaultVersions.Generated.props</_GeneratedVersionFilePath>
<NoWarn>3021;NU5105;SYSLIB0013</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build" Version="$(MicrosoftBuildVersion)" />
<PackageReference Include="Microsoft.Build.Tasks.Core" Version="$(MicrosoftBuildTasksCoreVersion)" />
<PackageReference Include="NuGet.Versioning" Version="$(NuGetVersioningVersion)" />
<PackageReference Include="System.Net.Http" Version="$(SystemNetHttpVersion)" />
<PackageReference Include="System.Collections.Immutable" Version="$(SystemCollectionsImmutableVersion)" />
<PackageReference Include="System.Reflection.Metadata" Version="$(SystemReflectionMetadataVersion)" />
</ItemGroup>
<!-- Required for compiling "InstallDotNetCore.cs" -->
<ItemGroup Condition="'$(DotNetBuildFromSource)' != 'true'">
<PackageReference Include="System.Text.Json" Version="$(SystemTextJsonVersion)" PrivateAssets="All" />
<PackageReference Include="System.Buffers" Version="$(SystemBuffersVersion)" />
<PackageReference Include="System.Memory" Version="$(SystemMemoryVersion)" />
<PackageReference Include="System.Numerics.Vectors" Version="$(SystemNumericsVectorsVersion)" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="$(SystemRuntimeCompilerServicesUnsafeVersion)" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionVersion)" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Microsoft.DotNet.Arcade.Sdk.Tests" />
</ItemGroup>
<ItemGroup>
<None Include="sdk/Sdk.props;sdk/Sdk.targets" Pack="true">
<PackagePath>sdk/%(Filename)%(Extension)</PackagePath>
</None>
<None Include="tools/**/*.*" Pack="true">
<PackagePath>tools/%(RecursiveDir)%(Filename)%(Extension)</PackagePath>
</None>
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Include="$(_GeneratedVersionFilePath)" Pack="true">
<PackagePath>tools\DefaultVersions.Generated.props</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<Compile Include="..\Common\Internal\AssemblyResolution.cs" Link="src\AssemblyResolution.cs" />
<Compile Remove="src\InstallDotNetCore.cs" Condition="'$(DotNetBuildFromSource)' == 'true'" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Common\Microsoft.Arcade.Common\Microsoft.Arcade.Common.csproj" />
<ProjectReference Include="..\Microsoft.DotNet.ArcadeLogging\Microsoft.DotNet.ArcadeLogging.csproj" />
</ItemGroup>
<Target Name="_GenerateSdkVersionFile" Inputs="$(MSBuildAllProjects)" Outputs="$(_GeneratedVersionFilePath)" BeforeTargets="GenerateNuSpec">
<PropertyGroup>
<_SdkVersionPropsContent>
<![CDATA[<!-- Generated by $(MSBuildThisFile) -->
<Project>
<PropertyGroup>
<ArcadeSdkVersion>$(PackageVersion)</ArcadeSdkVersion>
<MicrosoftNetCompilersToolsetVersion>$(MicrosoftNetCompilersToolsetVersion)</MicrosoftNetCompilersToolsetVersion>
<MicrosoftNetILLinkTasksVersion>$(MicrosoftNetILLinkTasksVersion)</MicrosoftNetILLinkTasksVersion>
<MicrosoftSourceLinkVersion>$(MicrosoftSourceLinkVersion)</MicrosoftSourceLinkVersion>
<MicrosoftDiaSymReaderPdb2PdbVersion>$(MicrosoftDiaSymReaderPdb2PdbVersion)</MicrosoftDiaSymReaderPdb2PdbVersion>
<MicrosoftDotNetXliffTasksVersion>$(MicrosoftDotNetXliffTasksVersion)</MicrosoftDotNetXliffTasksVersion>
<MicrosoftDotNetMaestroTasksVersion>$(MicrosoftDotNetMaestroTasksVersion)</MicrosoftDotNetMaestroTasksVersion>
<MicrosoftSymbolUploaderBuildTaskVersion>$(MicrosoftSymbolUploaderBuildTaskVersion)</MicrosoftSymbolUploaderBuildTaskVersion>
</PropertyGroup>
</Project>]]>
</_SdkVersionPropsContent>
</PropertyGroup>
<WriteLinesToFile File="$(_GeneratedVersionFilePath)" Lines="$(_SdkVersionPropsContent)" Overwrite="true" />
<ItemGroup>
<FileWrites Include="$(_GeneratedVersionFilePath)" />
</ItemGroup>
</Target>
<Import Project="$(RepoRoot)eng\BuildTask.targets" />
</Project>