✨ Adds condition to PackageReference for Microsoft.AspNetCore.OpenApi
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup
|
<ItemGroup
|
||||||
Condition="@(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) > 0">
|
Condition="'$(UsingMicrosoftNETSdkWeb)' == 'True' AND @(PackageReference->WithMetadataValue('Identity','Microsoft.AspNetCore.OpenApi')->Count()) > 0">
|
||||||
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server">
|
<PackageReference Include="Microsoft.Extensions.ApiDescription.Server">
|
||||||
<PrivateAssets>all</PrivateAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
@@ -33,6 +33,14 @@
|
|||||||
Condition="Exists('$(OpenApiDocumentsDirectory)/$(MSBuildProjectName).json')" />
|
Condition="Exists('$(OpenApiDocumentsDirectory)/$(MSBuildProjectName).json')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="SetHierarchicalPackageOutputPath"
|
||||||
|
BeforeTargets="_GetAbsoluteOutputPathsForPack"
|
||||||
|
Condition="'$(ArtifactsPath)' != '' AND '$(PackageVersion)' != ''">
|
||||||
|
<PropertyGroup>
|
||||||
|
<PackageOutputPath>$(ArtifactsPath)/nuget/$(PackageId)/$(PackageVersion)</PackageOutputPath>
|
||||||
|
</PropertyGroup>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile">
|
<Target Name="AddInternalsVisibleTo" BeforeTargets="BeforeCompile">
|
||||||
<!--
|
<!--
|
||||||
Add an ItemGroup with tags in the following format:
|
Add an ItemGroup with tags in the following format:
|
||||||
|
|||||||
Reference in New Issue
Block a user