-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathbuild.xml
More file actions
36 lines (30 loc) · 1.47 KB
/
build.xml
File metadata and controls
36 lines (30 loc) · 1.47 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="DoItAll" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\tools\msbuild\MSBuildCommunityTasks\</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"/>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Any CPU</Platform>
<MajorVersion>1</MajorVersion>
<MinorVersion>0</MinorVersion>
<!-- This gets set by the build server -->
<BuildVersion>0</BuildVersion>
<FullVersion>$(MajorVersion).$(MinorVersion).$(BuildVersion)</FullVersion>
</PropertyGroup>
<Target Name="UpdateVersion" >
<Message Text="Updating version to $(FullVersion)" />
<!-- Update assembly version number using build number -->
<FileUpdate
Files="$(MSBuildProjectDirectory)\src\AMEE-in-Revit.Addin\Properties\AssemblyInfo.cs"
Regex="AssemblyVersion\(".*"\)"
ReplacementText="AssemblyVersion("$(FullVersion)")" />
</Target>
<Target Name="Build" DependsOnTargets="UpdateVersion" >
<MSBuild Projects="$(MSBuildProjectDirectory)\src\AMEE-in-Revit.sln" Targets="Rebuild"
Properties="Configuration=$(Configuration)" />
</Target>
<Target Name="DoItAll" DependsOnTargets="Build" >
</Target>
</Project>