-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.msbuild
26 lines (21 loc) · 1.18 KB
/
build.msbuild
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Import Project="Build.config" />
<Target Name="Clean">
<MSBuild Projects="$(ProjectToBuild)" Targets="Clean" />
<RemoveDir Directories="$(DeployFolder)" />
</Target>
<Target Name="Compile" DependsOnTargets="Clean">
<Exec Command="$(NuGet) restore -PackagesDirectory $(PackagesDirectory)" WorkingDirectory="$(SourceFolder)" />
<Delete Files="@(CleanUp)" />
<Copy SourceFiles="@(References)" DestinationFolder="lib" />
<MSBuild Projects="$(ProjectToBuild)" />
</Target>
<Target Name="Packages" DependsOnTargets="Compile">
<MakeDir Directories="$(DeployFolder)" />
<Exec Command="$(NuGet) pack Sitecore.Slack.IncomingWebhookForEvents/Sitecore.Slack.IncomingWebhookForEvents.csproj -Properties Configuration=Release -OutputDirectory .\$(DeployFolder) -Build -Symbols" WorkingDirectory="$(SourceFolder)" />
</Target>
<Target Name="Deploy" DependsOnTargets="Packages">
<Exec Command="$(NuGet) push .\$(DeployFolder)\Sitecore.Slack.IncomingWebhookForEvents.?.*.?.nupkg" WorkingDirectory="$(SourceFolder)" />
</Target>
</Project>