Fix incremental build (tested from the command line)
This commit is contained in:
Родитель
767b87ef60
Коммит
de0c7e250b
|
@ -19,21 +19,33 @@
|
|||
<PackageReference Include="Microsoft.VCRTForwarders.140" Version="1.0.0-rc" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyAllProjectReferencesOutputs"
|
||||
BeforeTargets="PrepareForBuild"
|
||||
Inputs="@(ProjectReference)"
|
||||
Outputs="$(IntDir)\AppUWP.payload')">
|
||||
|
||||
<Target Name="_GetUWPAppPayload">
|
||||
<CreateItem Include="@(ProjectReference)" Condition="Exists('%(RelativeDir)\Package.appxmanifest')">
|
||||
<Output ItemName="_AppxProject" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
||||
<MSBuild Projects="@(_AppxProject)"
|
||||
Properties="Configuration=$(Configuration);Platform=$(Platform)"
|
||||
Targets="Build;GetPackagingOutputs">
|
||||
<Output TaskParameter="TargetOutputs" ItemName="_AppxBuildOutputPaths" />
|
||||
</MSBuild>
|
||||
|
||||
<CreateItem Include="%(_AppxBuildOutputPaths.Identity)"
|
||||
Condition="'%(_AppxBuildOutputPaths.TargetPath)'!=''"
|
||||
AdditionalMetadata="FinalTargetPath=$(OutDir)%(_AppxBuildOutputPaths.TargetPath);TargetPath=%(_AppxBuildOutputPaths.TargetPath)">
|
||||
<Output ItemName="_AppxInputs" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
||||
<CreateItem Include="%(_AppxBuildOutputPaths.RelativeDir)AppxManifest.xml" Condition="Exists('%(_AppxBuildOutputPaths.RelativeDir)AppxManifest.xml')">
|
||||
<Output ItemName="AppxManifest" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
||||
</Target>
|
||||
|
||||
<Target Name="CopyAllProjectReferencesOutputs"
|
||||
DependsOnTargets="_GetUWPAppPayload;ResolveReferences"
|
||||
Inputs="@(_AppxInputs)"
|
||||
Outputs="@(_AppxInputs->'%(FinalTargetPath)')">
|
||||
|
||||
<CreateItem Include="%(_AppxBuildOutputPaths.Identity)" Condition="'%(_AppxBuildOutputPaths.TargetPath)'!=''" AdditionalMetadata="Link=%(_AppxBuildOutputPaths.TargetPath)">
|
||||
<Output ItemName="_AppxBuildOutputs" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
@ -45,10 +57,6 @@
|
|||
<Output ItemName="Content" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
||||
<CreateItem Include="%(_AppxBuildOutputPaths.RelativeDir)AppxManifest.xml" Condition="Exists('%(_AppxBuildOutputPaths.RelativeDir)AppxManifest.xml')">
|
||||
<Output ItemName="AppxManifest" TaskParameter="Include"/>
|
||||
</CreateItem>
|
||||
|
||||
<WriteLinesToFile
|
||||
File="$(IntDir)\AppUWP.payload"
|
||||
Lines="@(_AppxBuildOutputPaths)"
|
||||
|
@ -160,7 +168,11 @@
|
|||
</Task>
|
||||
</UsingTask>
|
||||
|
||||
<Target Name="CreateWinRTRegistration" BeforeTargets="PrepareForBuild" DependsOnTargets="CopyAllProjectReferencesOutputs">
|
||||
<Target Name="CreateWinRTRegistration"
|
||||
AfterTargets="ResolveReferences"
|
||||
DependsOnTargets="CopyAllProjectReferencesOutputs"
|
||||
Inputs="@(AppxManifest)"
|
||||
Outputs="$(IntDir)Manifests\app.manifest">
|
||||
<MakeDir Directories="$(IntDir)\Manifests\" />
|
||||
<GenerateWinRTManifestFromAppx AppxManifest="@(AppxManifest)" DestinationFolder="$(IntDir)\Manifests\" />
|
||||
<CreateItem Include="$(IntDir)Manifests\*.manifest">
|
||||
|
|
Загрузка…
Ссылка в новой задаче