forked from NuGet/NuGet.Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNuGet.Build.Tasks.Console.csproj
74 lines (63 loc) · 3.62 KB
/
NuGet.Build.Tasks.Console.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
<Project>
<PropertyGroup>
<RequiresSigningXplatAPIs>true</RequiresSigningXplatAPIs>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'README.md'))\build\common.props" />
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFrameworks Condition=" '$(IsVsixBuild)' != 'true' ">$(TargetFrameworksExe)</TargetFrameworks>
<TargetFramework Condition=" '$(IsVsixBuild)' == 'true' ">$(NETFXTargetFramework)</TargetFramework>
<OutputType>Exe</OutputType>
<Shipping>true</Shipping>
<PackProject>true</PackProject>
<SkipShared>true</SkipShared>
<Description>NuGet Build tasks for MSBuild and dotnet restore. Contains restore logic using the MSBuild static graph functionality.</Description>
<NoWarn>$(NoWarn);CS1591;NU5100;NU5128;NU5104</NoWarn>
<XPLATProject>true</XPLATProject>
<IncludeBuildOutput>false</IncludeBuildOutput>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);PackBuildOutputs</TargetsForTfmSpecificContentInPackage>
<EnableDefaultNoneItems>false</EnableDefaultNoneItems>
<ServerGarbageCollection>true</ServerGarbageCollection>
<GenerateDocumentationFile>false</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\NuGet.Build.Tasks\NuGet.Build.Tasks.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Tasks.Core" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Build.Utilities.Core" ExcludeAssets="Runtime" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == '$(NETFXTargetFramework)' ">
<Reference Include="Microsoft.Build.Utilities.v4.0" Aliases="MicrosoftBuildUtilitiesv4" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" Condition=" '$(TargetFramework)' == '$(NETFXTargetFramework)' " />
</ItemGroup>
<ItemGroup>
<Content Include="..\NuGet.Build.Tasks\NuGet.RestoreEx.targets">
<Link>%(Filename)%(Extension)</Link>
<PackagePath>runtimes\any\native</PackagePath>
<Pack>true</Pack>
</Content>
</ItemGroup>
<ItemGroup Condition="$(DefineConstants.Contains(SIGNED_BUILD))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>NuGet.Build.Tasks.Console.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<ItemGroup Condition="!$(DefineConstants.Contains(SIGNED_BUILD))">
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>NuGet.Build.Tasks.Console.Test</_Parameter1>
</AssemblyAttribute>
</ItemGroup>
<Target Name="PackBuildOutputs">
<ItemGroup>
<TfmSpecificPackageFile Include="$(TargetPath)" PackagePath="contentFiles\any\$(TargetFramework)\" PackageCopyToOutput="true" />
<TfmSpecificPackageFile Include="$(ProjectRuntimeConfigFilePath)" Condition=" '$(IsCore)' == 'true' " PackagePath="contentFiles\any\$(TargetFramework)\" PackageCopyToOutput="true" />
</ItemGroup>
</Target>
<Import Project="$(BuildCommonDirectory)common.targets" />
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
</Project>