50 строки
2.5 KiB
XML
50 строки
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="14.0" DefaultTargets="RebuildAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="properties\service_fabric_common.props" />
|
|
<Import Project="properties\service_fabric_managed.targets" />
|
|
<Import Project="properties\service_fabric_nuget.targets" />
|
|
|
|
|
|
<PropertyGroup>
|
|
<CurrentDir>$(MSBuildThisFileDirectory)</CurrentDir>
|
|
</PropertyGroup>
|
|
|
|
<!--Targets which can be invoked from Build.ps1-->
|
|
<!--Targets which can be invoked from Build.ps1-->
|
|
<Target Name="RebuildAll" DependsOnTargets="BuildCode;GeneratePackages">
|
|
<Message Text="SUCCESS! Generated binaries and packages are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
|
|
</Target>
|
|
|
|
<Target Name="BuildAll" DependsOnTargets="RestorePackagesProd;RestorePackagesTest;BuildProd;BuildTest;CopyProdBinaries;GenerateNugetPackages_Prod">
|
|
<Message Text="SUCCESS! Generated binaries and packages are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
|
|
</Target>
|
|
|
|
<!-- Builds code, this target doesn't generates nuget packages. -->
|
|
<Target Name="BuildCode" DependsOnTargets="RestorePackagesProd;RestorePackagesTest;CleanAll;BuildProd;BuildTest;CopyProdBinaries">
|
|
<Message Text="SUCCESS! Generated binaries are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
|
|
</Target>
|
|
|
|
<!-- Generates nuget packages from the build, this target doesn't builds code, build must have been done before invoking this target.
|
|
This allows signing of binaires after build and consuming them in nuget packages. -->
|
|
<Target Name="GeneratePackages" DependsOnTargets="GenerateNugetPackages_Prod">
|
|
<Message Text="SUCCESS! Generated packages are dropped at $(CurrentDir)drop\$(Configuration)" Importance="High"/>
|
|
</Target>
|
|
|
|
<!--Targets for cleaning product and test code. -->
|
|
<!--
|
|
This target can be used to clean all of the projects before you build them.
|
|
It will also delete any dll & exe files located in the the DestinationFolder folder.
|
|
-->
|
|
<Target Name="CleanAll">
|
|
<Message Text="Cleaning drop folder ..."/>
|
|
<!-- Delete any files this process may have created from a previous execution -->
|
|
<CreateItem Include="$(CurrentDir)\drop\**\*">
|
|
<Output ItemName="GeneratedFiles" TaskParameter="Include"/>
|
|
</CreateItem>
|
|
<Delete Files="@(GeneratedFiles)"/>
|
|
<RemoveDir Directories="$(CurrentDir)\drop"/>
|
|
|
|
<Message Text="Cleaning all projects ..."/>
|
|
<CallTarget Targets="CleanProd;CleanTest" />
|
|
</Target>
|
|
</Project> |