mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-12 08:48:30 +00:00
Extended target-file to support VS publishing
(somehow workarounded - MSBuild is weird ...)
This commit is contained in:
parent
c1b8fbc10b
commit
7a0a2778ba
@ -15,6 +15,13 @@
|
|||||||
<CueNETSDKFiles Condition="'$(MSBuildThisFileDirectory)' != '' And
|
<CueNETSDKFiles Condition="'$(MSBuildThisFileDirectory)' != '' And
|
||||||
HasTrailingSlash('$(MSBuildThisFileDirectory)')"
|
HasTrailingSlash('$(MSBuildThisFileDirectory)')"
|
||||||
Include="$(MSBuildThisFileDirectory)libs\**\*.dll" />
|
Include="$(MSBuildThisFileDirectory)libs\**\*.dll" />
|
||||||
|
|
||||||
|
<AdditionalPublishFilex86 Include="$(MSBuildThisFileDirectory)libs\x86\*.dll">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
</AdditionalPublishFilex86>
|
||||||
|
<AdditionalPublishFilex64 Include="$(MSBuildThisFileDirectory)libs\x64\*.dll">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
</AdditionalPublishFilex64>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -49,7 +56,7 @@
|
|||||||
NOTE: Copy "CUESDK*.dll" and all related files, for every
|
NOTE: Copy "CUESDK*.dll" and all related files, for every
|
||||||
architecture that we support, to the build output directory.
|
architecture that we support, to the build output directory.
|
||||||
-->
|
-->
|
||||||
<Message Text="Copying SDK files..." Importance="high" />
|
<Message Text="Copying SDK files..." Importance="high" />
|
||||||
<Copy SourceFiles="@(CueNETSDKFiles)"
|
<Copy SourceFiles="@(CueNETSDKFiles)"
|
||||||
DestinationFiles="@(CueNETSDKFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
DestinationFiles="@(CueNETSDKFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
</Target>
|
</Target>
|
||||||
@ -68,9 +75,9 @@
|
|||||||
NOTE: Delete "CUESDK*.dll" and all related files, for every
|
NOTE: Delete "CUESDK*.dll" and all related files, for every
|
||||||
architecture that we support, from the build output directory.
|
architecture that we support, from the build output directory.
|
||||||
-->
|
-->
|
||||||
<Message Text="this file $(MSBuildThisFileDirectory)" Importance="high"/>
|
<Message Text="this file $(MSBuildThisFileDirectory)" Importance="high"/>
|
||||||
<Message Text="Cleaning SDK files..." Importance="high" />
|
<Message Text="Cleaning SDK files..." Importance="high" />
|
||||||
|
|
||||||
<Delete Files="@(CueNETSDKFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
<Delete Files="@(CueNETSDKFiles -> '$(OutDir)%(RecursiveDir)%(Filename)%(Extension)')" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
@ -80,7 +87,7 @@
|
|||||||
|
|
||||||
<Target Name="CollectCueNETSDKFiles"
|
<Target Name="CollectCueNETSDKFiles"
|
||||||
Condition="'$(CollectCueNETSDKFiles)' != 'false'">
|
Condition="'$(CollectCueNETSDKFiles)' != 'false'">
|
||||||
<Message Text="Collecting SDK files..." Importance="high" />
|
<Message Text="Collecting SDK files..." Importance="high" />
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<FilesForPackagingFromProject Include="@(CueNETSDKFiles)">
|
<FilesForPackagingFromProject Include="@(CueNETSDKFiles)">
|
||||||
<DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
|
<DestinationRelativePath>bin\%(RecursiveDir)%(Filename)%(Extension)</DestinationRelativePath>
|
||||||
@ -88,6 +95,22 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
******************************************************************************
|
||||||
|
-->
|
||||||
|
|
||||||
|
<Target Name="BeforePublish">
|
||||||
|
<Touch Files="@(IntermediateAssembly)" />
|
||||||
|
</Target>
|
||||||
|
<Target Name="BeforeBuild">
|
||||||
|
<CreateItem Include="@(AdditionalPublishFilex86)" AdditionalMetadata="TargetPath=x86\%(FileName)%(Extension);IsDataFile=false">
|
||||||
|
<Output TaskParameter="Include" ItemName="_DeploymentManifestFiles" />
|
||||||
|
</CreateItem>
|
||||||
|
<CreateItem Include="@(AdditionalPublishFilex64)" AdditionalMetadata="TargetPath=x64\%(FileName)%(Extension);IsDataFile=false">
|
||||||
|
<Output TaskParameter="Include" ItemName="_DeploymentManifestFiles" />
|
||||||
|
</CreateItem>
|
||||||
|
</Target>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
** Build Properties **
|
** Build Properties **
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user