-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAgoda.Builds.Metrics.csproj
49 lines (46 loc) · 2.21 KB
/
Agoda.Builds.Metrics.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net472</TargetFrameworks>
<!-- Suppresses the warnings about the package not having assemblies in lib/*/.dll.-->
<NoPackageAnalysis>true</NoPackageAnalysis>
<!-- Change the default location where NuGet will put the build output -->
<BuildOutputTargetFolder>tasks</BuildOutputTargetFolder>
<!-- Include all referenced assemblies in the package -->
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Build.Framework" Version="15.1.1012" />
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="15.1.1012" />
<PackageReference Include="System.Net.Http" />
<PackageReference Include="System.Text.Json" />
<PackageReference Update="System.Diagnostics.Process" Version="4.3.0" />
<PackageReference Update="System.Net.Http" Version="4.3.4" />
<PackageReference Update="System.Text.Json" Version="4.7.2" />
<!-- marks all packages as 'local only' so they don't end up in the nuspec -->
<PackageReference Update="@(PackageReference)" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<None Include="build\**" Pack="True" PackagePath="build\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Agoda.DevFeedback.Common\Agoda.DevFeedback.Common.csproj" />
</ItemGroup>
<!--
Copy dependencies into the tools/$(TargetFramework)/ package folders.
MSBuild does not resolve task runtime dependencies from PackageReference
-->
<Target Name="PackTaskDependencies" BeforeTargets="GenerateNuspec">
<!--
The include needs to happen after output has been copied to build output folder
but before NuGet generates a nuspec.
-->
<ItemGroup>
<_PackageFiles Include="bin\$(Configuration)\*\*.dll;bin\$(Configuration)\*\*.deps;bin\$(Configuration)\*\lib\*\*.*">
<PackagePath>tasks\%(RecursiveDir)</PackagePath>
<Visible>false</Visible>
<BuildAction>Content</BuildAction>
</_PackageFiles>
</ItemGroup>
</Target>
</Project>