Stop shipping a runtime.dev.json file
- #10958 - publish _both_ `dotnet-getdocument` and `GetDocumentInsider` before packing - simplify how Microsoft.Extensions.ApiDescription.Server gets published files for the tools nit: correct information in a comment
This commit is contained in:
parent
69a7037480
commit
0049c5899c
|
|
@ -39,11 +39,9 @@
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
If 'true' (the default), build projects referenced in @(OpenApiProjectReference) items before retrieving that
|
If 'true' (the default), build projects referenced in @(OpenApiProjectReference) items before retrieving that
|
||||||
project's Open API documents list (or generating code). Recommend setting this to 'false' when the referenced
|
project's Open API documents list (or generating code). If 'false', ensure the referenced projects build before
|
||||||
projects do not share target framework values (avoiding build errors and / or warnings).
|
this one in the solution or through other means. IDEs may be confused about the project dependency graph in this
|
||||||
|
case.
|
||||||
If 'false', ensure the referenced projects build before this one in the solution or through other means. IDEs may
|
|
||||||
be confused about the project dependency graph in this case.
|
|
||||||
-->
|
-->
|
||||||
<OpenApiBuildReferencedProjects
|
<OpenApiBuildReferencedProjects
|
||||||
Condition="'$(OpenApiBuildReferencedProjects)' == ''">true</OpenApiBuildReferencedProjects>
|
Condition="'$(OpenApiBuildReferencedProjects)' == ''">true</OpenApiBuildReferencedProjects>
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,13 @@
|
||||||
<IsShippingPackage>true</IsShippingPackage>
|
<IsShippingPackage>true</IsShippingPackage>
|
||||||
<VersionPrefix>$(ExperimentalVersionPrefix)</VersionPrefix>
|
<VersionPrefix>$(ExperimentalVersionPrefix)</VersionPrefix>
|
||||||
<DevelopmentDependency>true</DevelopmentDependency>
|
<DevelopmentDependency>true</DevelopmentDependency>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Publish the referenced projects when building .NET Core bits. This is not needed for full framework builds
|
||||||
|
because publish output matches what was built.
|
||||||
|
-->
|
||||||
|
<ProjectReferenceBuildTargets
|
||||||
|
Condition=" '$(TargetFramework)' == 'netcoreapp2.1' ">Build;Publish</ProjectReferenceBuildTargets>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -26,13 +33,6 @@
|
||||||
<NuspecProperty Include="configuration=$(Configuration)" />
|
<NuspecProperty Include="configuration=$(Configuration)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<Target Name="PublishGetDocument" BeforeTargets="GenerateNuspec">
|
|
||||||
<MSBuild Projects="../../dotnet-getdocument/src/dotnet-getdocument.csproj"
|
|
||||||
BuildInParallel="$(BuildInParallel)"
|
|
||||||
RemoveProperties="RuntimeIdentifier;TargetFrameworks;TargetFramework"
|
|
||||||
Targets="Publish" />
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
||||||
|
|
||||||
<Target Name="Compile" />
|
<Target Name="Compile" />
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@
|
||||||
<file src="build\*" target="build" />
|
<file src="build\*" target="build" />
|
||||||
<file src="buildMultiTargeting\*" target="buildMultiTargeting" />
|
<file src="buildMultiTargeting\*" target="buildMultiTargeting" />
|
||||||
<file src="$artifactsBinDir$\dotnet-getdocument\$configuration$\netcoreapp2.1\publish\*.*" target="tools" />
|
<file src="$artifactsBinDir$\dotnet-getdocument\$configuration$\netcoreapp2.1\publish\*.*" target="tools" />
|
||||||
<file src="$artifactsBinDir$\GetDocumentInsider\$configuration$\net461\GetDocument.Insider.*" target="tools\net461" />
|
<file src="$artifactsBinDir$\GetDocumentInsider\$configuration$\net461\*.*" target="tools\net461" />
|
||||||
<file src="$artifactsBinDir$\GetDocumentInsider\x86\$configuration$\net461\GetDocument.Insider.*" target="tools\net461-x86" />
|
<file src="$artifactsBinDir$\GetDocumentInsider\x86\$configuration$\net461\*.*" target="tools\net461-x86" />
|
||||||
<file src="$artifactsBinDir$\GetDocumentInsider\$configuration$\netcoreapp2.1\GetDocument.Insider.*" target="tools\netcoreapp2.1" />
|
<file src="$artifactsBinDir$\GetDocumentInsider\$configuration$\netcoreapp2.1\publish\*.*" target="tools\netcoreapp2.1" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue