Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit d66394cf authored by David AMO GONZALEZ's avatar David AMO GONZALEZ
Browse files

feat(build): create package during release build

parent 150f3b90
No related branches found
No related tags found
1 merge request!3Implement VECTO input for v2.7
......@@ -18,6 +18,8 @@ build/
bld/
[Bb]in/
[Oo]bj/
[Dd]eploy/
[Pp]ackage/
# Roslyn cache directories
*.ide/
......
<Project DefaultTargets = "Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<Target Name="Packaging" AfterTargets="Build" Condition="('$(Configuration)'=='Release')">
<Message Text="Packaging in $(Configuration) Configuration $(VersionPrefix)" Importance="high" />
<PropertyGroup>
<Version>3.3.0</Version>
<CurrentDate>$([System.DateTime]::Now.ToString(yyy_MM_dd))</CurrentDate>
<DeployPath>$(SolutionDir)Deploy\$(CurrentDate)_VECTO-AirDrag-$(Version)\</DeployPath>
<PackagePath>$(SolutionDir)Package</PackagePath>
</PropertyGroup>
<RemoveDir Directories="$(SolutionDir)Deploy" Condition="Exists('$(SolutionDir)Deploy')"/>
<RemoveDir Directories="$(PackagePath)" Condition="Exists('$(PackagePath)')"/>
<MakeDir Directories="$(DeployPath)"/>
<MakeDir Directories="$(PackagePath)"/>
<ItemGroup Condition="'$(Configuration)'=='Release'">
<AirDragDemoData Include="$(SolutionDir)DemoData\*"/>
<AirDragDocFiles Include="$(SolutionDir)Docs\*.pdf"/>
<AirDragMetaFiles Include="$(SolutionDir)BUILD.md"/>
<AirDragMetaFiles Include="$(SolutionDir)CHANGES.md"/>
<AirDragMetaFiles Include="$(SolutionDir)COPYING.txt"/>
<AirDragMetaFiles Include="$(SolutionDir)README.md"/>
<AirDragExecFiles Include="$(SolutionDir)CSE\bin\Release\AirDrag.exe"/>
<AirDragExecFiles Include="$(SolutionDir)CSE\bin\Release\Newtonsoft.Json.dll"/>
<AirDragExecFiles Include="$(SolutionDir)CSE\bin\Release\Newtonsoft.Json.Schema.dll"/>
<AirDragExecFiles Include="$(SolutionDir)CSE\bin\Release\VectoCommon.dll"/>
<AirDragExecFiles Include="$(SolutionDir)CSE\bin\Release\VectoHashing.dll"/>
</ItemGroup>
<Copy SourceFiles="@(AirDragDemoData)" DestinationFolder="$(DeployPath)\DemoData"/>
<Copy SourceFiles="@(AirDragDocFiles)" DestinationFolder="$(DeployPath)\Docs"/>
<Copy SourceFiles="@(AirDragMetaFiles)" DestinationFolder="$(DeployPath)"/>
<Copy SourceFiles="@(AirDragExecFiles)" DestinationFolder="$(DeployPath)"/>
<PropertyGroup>
<DestinationZip>$(PackagePath)\$(CurrentDate)-VECTO-AirDrag-$(Version).zip</DestinationZip>
</PropertyGroup>
<ZipDirectory SourceDirectory="$(SolutionDir)Deploy\" DestinationFile="$(DestinationZip)" Overwrite="true"/>
</Target>
</Project>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment