-
Notifications
You must be signed in to change notification settings - Fork 3
/
default.build
88 lines (79 loc) · 3.87 KB
/
default.build
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<project xmlns="http://nant.sourceforge.net/nightly/2011-05-08-0.91/nant.xsd"
name="ReSharper.NTriples" default="build">
<include buildfile="properties.include" />
<include buildfile="common-targets.include" />
<target name="restorePackages">
<exec program="src/ReSharper.NTriples/.nuget/nuget.exe"
commandline="restore src/ReSharper.NTriples/ReSharper.NTriples.sln" />
</target>
<target name="build" description="Builds the binaries for the current configuration" depends="restorePackages">
<echo message="Building version ${project.version}" />
<echo message="Building platform ${project.platform}" />
<call target="set-version" />
<msbuild project="src\${solution.name}\${solution.name}.sln" target="Build" verbosity="minimal">
<property name="Configuration" value="${project.config}" />
<property name="Platform" value="${project.platform}" />
</msbuild>
<msbuild project="src\${solution.name}\${solution.name}.sln" target="Build" verbosity="minimal">
<property name="Configuration" value="Release UnitTests" />
<property name="Platform" value="${project.platform}" />
</msbuild>
<property name="project.out" value="bin\${project.platform}\${project.config}" />
<mkdir dir="${dir.build}" failonerror="false" />
<!-- build output copy -->
<copy todir="${dir.build}" overwrite="true">
<fileset basedir="src\${solution.name}\${solution.name}.Installer\bin\${project.config}" failonempty="true">
<include name="*.msi" />
<include name="*.wixpdb" />
</fileset>
</copy>
<copy todir="${dir.build}" overwrite="true">
<fileset basedir="src\${solution.name}\${solution.name}\${project.out}" failonempty="true">
<include name="ReSharper.NTriples.dll" />
<include name="ReSharper.NTriples.pdb" />
</fileset>
</copy>
<copy todir="${dir.build}" overwrite="true">
<fileset basedir="src\${solution.name}\${solution.name}.Tests\${project.out}" failonempty="true">
<include name="ReSharper.NTriples.Tests.dll" />
<include name="ReSharper.NTriples.Tests.pdb" />
</fileset>
</copy>
</target>
<target name="clean">
<msbuild project="src\ReSharper.NTriples\ReSharper.NTriples.sln" target="Clean" verbosity="minimal">
<property name="Configuration" value="${project.config}" />
<property name="Platform" value="${project.platform}" />
</msbuild>
<delete failonerror="false" includeemptydirs="false">
<fileset basedir="${dir.build}">
<include name="**/*"/>
</fileset>
</delete>
</target>
<target name="set-version">
<update-assembly-info>
<fileset>
<include name="src/ReSharper.NTriples/ReSharper.NTriples/**/AssemblyInfo.*" />
</fileset>
<attributes>
<attribute name="AssemblyCompany" value="${company.fullname}" />
<attribute name="AssemblyProduct" value="${project.name}" />
<attribute name="AssemblyCopyright" value="${company.copyright}" />
<attribute name="AssemblyVersion" value="${project.version}" />
<attribute name="AssemblyFileVersion" value="${project.version}" />
<attribute name="AssemblyInformationalVersion" value="${project.version}" />
</attributes>
</update-assembly-info>
<copy file="src/ReSharper.NTriples/ReSharper.NTriples.Installer/Variables.wxi.template" tofile="src/ReSharper.NTriples/ReSharper.NTriples.Installer/Variables.wxi" overwrite="true">
<filterchain>
<replacetokens>
<token key="ProductVersionValue" value="${project.version}" />
<token key="ReSharperVersionValue" value="${resharper.version}" />
</replacetokens>
<tabstospaces />
</filterchain>
</copy>
</target>
</project>