92 lines
4.2 KiB
XML
92 lines
4.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<!-- Execute PopulateNuspec fairly late. -->
|
|
<GenerateNuspecDependsOn>$(GenerateNuspecDependsOn);PopulateNuspec</GenerateNuspecDependsOn>
|
|
|
|
<!-- Do not complain about lack of lib folder. -->
|
|
<NoPackageAnalysis>true</NoPackageAnalysis>
|
|
|
|
<AssemblyName>Microsoft.Extensions.ApiDescription.Tasks</AssemblyName>
|
|
<Description>MSBuild tasks and targets for code generation</Description>
|
|
<EnableApiCheck>false</EnableApiCheck>
|
|
<IncludeBuildOutput>false</IncludeBuildOutput>
|
|
<IncludeSource>false</IncludeSource>
|
|
<IncludeSymbols>false</IncludeSymbols>
|
|
<NuspecFile>$(MSBuildProjectName).nuspec</NuspecFile>
|
|
<PackageId>$(MSBuildProjectName)</PackageId>
|
|
<PackageTags>Build Tasks;MSBuild;Swagger;Open API;code generation; Web API client</PackageTags>
|
|
<RootNamespace>$(AssemblyName)</RootNamespace>
|
|
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Build.Utilities.Core"
|
|
Version="$(MicrosoftBuildUtilitiesCorePackageVersion)" />
|
|
<PackageReference Include="System.Net.Http"
|
|
Condition="'$(TargetFramework)' == 'net461'"
|
|
Version="$(SystemNetHttpPackageVersion)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup Condition="'$(TargetFramework)' != ''">
|
|
<SignedPackageFile Include="$(TargetPath)">
|
|
<Certificate>$(AssemblySigningCertName)</Certificate>
|
|
<PackagePath>tasks/$(TargetFramework)/$(TargetFileName)</PackagePath>
|
|
<StrongName>$(AssemblySigningStrongName)</StrongName>
|
|
</SignedPackageFile>
|
|
</ItemGroup>
|
|
|
|
<!-- Add other signed files in a single inner build, avoiding duplications in this multi-TFM project. -->
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
|
|
<SignedPackageFile Include="../dotnet-getdocument/bin/$(Configuration)/netcoreapp2.1/publish/dotnet-getdocument.dll">
|
|
<Certificate>$(AssemblySigningCertName)</Certificate>
|
|
<PackagePath>tools/dotnet-getdocument.dll</PackagePath>
|
|
<StrongName>$(AssemblySigningStrongName)</StrongName>
|
|
</SignedPackageFile>
|
|
<SignedPackageFile Include="../GetDocumentInsider/bin/$(Configuration)/net461/GetDocument.Insider.exe">
|
|
<Certificate>$(AssemblySigningCertName)</Certificate>
|
|
<PackagePath>tools/net461/GetDocument.Insider.exe</PackagePath>
|
|
<StrongName>$(AssemblySigningStrongName)</StrongName>
|
|
</SignedPackageFile>
|
|
<SignedPackageFile Include="../GetDocumentInsider/bin/x86/$(Configuration)/net461/GetDocument.Insider.exe">
|
|
<Certificate>$(AssemblySigningCertName)</Certificate>
|
|
<PackagePath>tools/net461-x86/GetDocument.Insider.exe</PackagePath>
|
|
<StrongName>$(AssemblySigningStrongName)</StrongName>
|
|
</SignedPackageFile>
|
|
<SignedPackageFile Include="../GetDocumentInsider/bin/$(Configuration)/netcoreapp2.0/GetDocument.Insider.dll">
|
|
<Certificate>$(AssemblySigningCertName)</Certificate>
|
|
<PackagePath>tools/netcoreapp2.0/GetDocument.Insider.exe</PackagePath>
|
|
<StrongName>$(AssemblySigningStrongName)</StrongName>
|
|
</SignedPackageFile>
|
|
|
|
<SignedPackageFile Include="../dotnet-getdocument/bin/$(Configuration)/netcoreapp2.1/publish/Newtonsoft.Json.dll">
|
|
<PackagePath>tools/Newtonsoft.Json.dll"</PackagePath>
|
|
<Certificate>$(AssemblySigning3rdPartyCertName)</Certificate>
|
|
</SignedPackageFile>
|
|
</ItemGroup>
|
|
|
|
<Target Name="PopulateNuspec">
|
|
<MSBuild Projects="../dotnet-getdocument/dotnet-getdocument.csproj"
|
|
BuildInParallel="$(BuildInParallel)"
|
|
RemoveProperties="RuntimeIdentifier;TargetFrameworks;TargetFramework"
|
|
Targets="Publish" />
|
|
|
|
<PropertyGroup>
|
|
<NuspecProperties>
|
|
id=$(PackageId);
|
|
authors=$(Authors);
|
|
configuration=$(Configuration);
|
|
copyright=$(Copyright);
|
|
description=$(PackageDescription);
|
|
iconUrl=$(PackageIconUrl);
|
|
licenseUrl=$(PackageLicenseUrl);
|
|
owners=$(Company);
|
|
projectUrl=$(PackageProjectUrl);
|
|
repositoryCommit=$(RepositoryCommit);
|
|
repositoryUrl=$(RepositoryUrl);
|
|
tags=$(PackageTags.Replace(';', ' '));
|
|
version=$(PackageVersion);
|
|
</NuspecProperties>
|
|
</PropertyGroup>
|
|
</Target>
|
|
</Project>
|