forked from Nelibur/Nelibur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Root.msbuild
52 lines (45 loc) · 2.54 KB
/
Root.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
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
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5" InitialTargets="CheckPrerequisites" DefaultTargets="Rebuild;Rebuild40">
<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\Tools\MSBuildTasks\tools</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets"
Condition="Exists('$(MSBuildCommunityTasksPath)')"/>
<Target Name="CheckPrerequisites">
<Error Condition="!Exists('$(MSBuildCommunityTasksPath)')"
Text="Execute 'restore.cmd' to obtain required nuget packages" />
<Warning Condition="'$(BUILD_NUMBER)' == '' OR '$(BuildVersion)' == '$(DefaultBuildVersion)'"
Text="Specify property BuildVersion or BUILD_NUMBER" />
</Target>
<PropertyGroup>
<ProductInfo>Nelibur Framework</ProductInfo>
<CopyrightInfo>Copyright © Sergey Morenko. Since 2014</CopyrightInfo>
<TradeMarkInfo>Nelibur Framework</TradeMarkInfo>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<AssemblyInformationalVersion Condition="'$(BUILD_NUMBER)' == ''">Compiled By $(USERNAME)</AssemblyInformationalVersion>
<BuildVersion Condition="'$(BuildVersion)' == ''">$(BUILD_NUMBER)</BuildVersion>
<DefaultBuildVersion>0.0.0.0</DefaultBuildVersion>
<BuildVersion Condition="'$(BuildVersion)' == ''">$(DefaultBuildVersion)</BuildVersion>
</PropertyGroup>
<ItemGroup>
<Solutions Include="Solution.sln"/>
</ItemGroup>
<Target Name = "Rebuild" DependsOnTargets="Version">
<MSBuild Projects="@(Solutions)" Properties="Platform=Any CPU;Configuration=$(Configuration)" Targets="Build"/>
</Target>
<Target Name = "Rebuild40" DependsOnTargets="Rebuild">
<MSBuild Projects="@(Solutions)" Properties="Platform=Any CPU;Configuration=Release 4.0" Targets="Build"/>
</Target>
<Target Name="Version">
<AssemblyInfo CodeLanguage="CS"
OutputFile="$(MSBuildProjectDirectory)\GlobalAssemblyInfo.cs"
AssemblyProduct="$(ProductInfo)"
AssemblyCompany="$(CompanyInfo)"
AssemblyCopyright="$(CopyrightInfo)"
AssemblyTrademark="$(TrademarkInfo)"
AssemblyConfiguration="$(Configuration)"
AssemblyVersion="$(BuildVersion)"
AssemblyFileVersion="$(BuildVersion)"
AssemblyInformationalVersion="$(AssemblyInformationalVersion)" />
</Target>
</Project>