Repository navigation
Expand file tree
/
Copy pathScreenCaptureWrapper.msbuild
More file actions
65 lines (51 loc) · 2.37 KB
/
Copy pathScreenCaptureWrapper.msbuild
File metadata and controls
65 lines (51 loc) · 2.37 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Clean;Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\.build</MSBuildCommunityTasksPath>
<OutputDir>$(MSBuildProjectDirectory)\build</OutputDir>
<ScreenCaptureWrapperVersion>0.0.2</ScreenCaptureWrapperVersion>
</PropertyGroup>
<ItemGroup>
<DocFiles Include="LICENSE.txt" />
<DocFiles Include="README.md" />
<DocFiles Include="NEWS.txt" />
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\.build\MSBuild.Community.Tasks.Targets"/>
<Target Name="Clean">
<RemoveDir Directories="$(OutputDir)" />
</Target>
<Target Name="Version">
<Time>
<Output TaskParameter="Year" PropertyName="Year" />
</Time>
<Message Text="Version: $(ScreenCaptureWrapperVersion)"/>
<Attrib Files="$(MSBuildProjectDirectory)\GlobalAssemblyInfo.cs" ReadOnly="False" />
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MSBuildProjectDirectory)\GlobalAssemblyInfo.cs"
GenerateClass="true"
AssemblyCompany="http://sunnyone.org"
AssemblyProduct="ScreenCaptureWrapper"
AssemblyCopyright="Copyright © sunnyone 2015-$(Year)"
AssemblyVersion="$(ScreenCaptureWrapperVersion).0"
AssemblyFileVersion="$(ScreenCaptureWrapperVersion).0"
AssemblyInformationalVersion="$(ScreenCaptureWrapperVersion).0" />
</Target>
<Target Name="Build" DependsOnTargets="Clean">
<MSBuild Targets="Build" Projects="$(MSBuildProjectDirectory)\ScreenCaptureWrapper\ScreenCaptureWrapper.csproj"
Properties="Configuration=Release;OutputPath=$(OutputDir)\ScreenCaptureWrapper" />
<ItemGroup>
<PdbFiles Include="$(OutputDir)\ScreenCaptureWrapper\*.pdb" />
</ItemGroup>
<Delete Files="@(PdbFiles)" />
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(OutputDir)\ScreenCaptureWrapper" />
</Target>
<Target Name="Package" DependsOnTargets="Clean;Archive" />
<Target Name="Archive" DependsOnTargets="Build">
<ItemGroup>
<Files Include="$(OutputDir)\ScreenCaptureWrapper\**\*" />
</ItemGroup>
<Zip Files="@(Files)"
WorkingDirectory="$(OutputDir)"
ZipFileName="$(OutputDir)\ScreenCaptureWrapper-$(ScreenCaptureWrapperVersion).zip" />
</Target>
</Project>