-
Notifications
You must be signed in to change notification settings - Fork 228
/
Release.xml
29 lines (26 loc) · 1.78 KB
/
Release.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<SolutionName>$(SolutionName)</SolutionName>
<SolutionFile>$(SolutionName).sln</SolutionFile>
<ProjectName>$(ProjectName)</ProjectName>
<ProjectFile>$(ProjectPath)\$(ProjectName)</ProjectFile>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>True</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>DonotMerge</WDPMergeOption>
<ExcludeApp_Data>True</ExcludeApp_Data>
</PropertyGroup>
<Target Name="Build" DependsOnTargets="BuildPackage;CopyOutput" />
<Target Name="BuildPackage">
<MSBuild Projects="$(ProjectFile)" ContinueOnError="false" Targets="Rebuild" Properties="Configuration=$(Configuration);PrecompileBeforePublish=$(PrecompileBeforePublish);EnableUpdateable=$(EnableUpdateable);DebugSymbols=$(DebugSymbols);WDPMergeOption=$(WDPMergeOption);ExcludeApp_Data=$(ExcludeApp_Data)" />
<MSBuild Projects="$(ProjectFile)" ContinueOnError="false" Targets="Package" Properties="Configuration=$(Configuration);PrecompileBeforePublish=$(PrecompileBeforePublish);EnableUpdateable=$(EnableUpdateable);DebugSymbols=$(DebugSymbols);WDPMergeOption=$(WDPMergeOption);ExcludeApp_Data=$(ExcludeApp_Data)" />
</Target>
<Target Name="CopyOutput">
<ItemGroup>
<PackagedFiles Include="$(ProjectPath)\obj\$(Configuration)\Package\PackageTmp\**\*.*"/>
</ItemGroup>
<Copy SourceFiles="@(PackagedFiles)" DestinationFiles="@(PackagedFiles->'$(ReleasePath)\%(RecursiveDir)%(Filename)%(Extension)')"/>
</Target>
</Project>