Merge pull request #5812 from piotrpMSFT/piotrpMSFT/infra/redistPublishFx
Move copying sharedfx to before publish of redist
This commit is contained in:
commit
ab7cbab3bf
2 changed files with 11 additions and 9 deletions
|
@ -15,18 +15,9 @@
|
|||
GetNuGetPackagesArchive;" />
|
||||
|
||||
<Target Name="CompileCLI">
|
||||
<ItemGroup>
|
||||
<SharedFramework Remove="*" />
|
||||
<SharedFramework Include="$(SharedFrameworkPublishDirectory)/**/*" />
|
||||
</ItemGroup>
|
||||
|
||||
<RemoveDir Directories="$(StageDirectory)" />
|
||||
<MakeDir Directories="$(StageDirectory)"/>
|
||||
|
||||
<!-- CopySharedFramework -->
|
||||
<Copy SourceFiles="@(SharedFramework)"
|
||||
DestinationFiles="@(SharedFramework->'$(StageDirectory)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
|
||||
<!-- Publish DotNet -->
|
||||
<DotNetPublish ToolPath="$(Stage0Directory)"
|
||||
Configuration="$(Configuration)"
|
||||
|
|
|
@ -34,6 +34,17 @@
|
|||
<ProjectReference Include="..\tool_nuget\tool_nuget.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="PublishSharedFramework"
|
||||
BeforeTargets="Publish">
|
||||
<ItemGroup>
|
||||
<SharedFramework Remove="*" />
|
||||
<SharedFramework Include="$(SharedFrameworkPublishDirectory)/**/*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Copy SourceFiles="@(SharedFramework)"
|
||||
DestinationFiles="@(SharedFramework->'$(StageDirectory)/%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="GenerateCliRuntimeConfigurationFiles"
|
||||
AfterTargets="Publish">
|
||||
<RemoveAssetFromDepsPackages DepsFile="$(PublishDir)/$(TargetName).deps.json"
|
||||
|
|
Loading…
Reference in a new issue