This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.proj
41 lines (34 loc) · 2.82 KB
/
build.proj
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
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" InitialTargets="_CheckRequirements" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildToolsVersion>2.0.0-beta</BuildToolsVersion>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">11.0</VisualStudioVersion>
<NuGetVerbosity Condition="'$(NuGetVerbosity)' == ''">normal</NuGetVerbosity>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\packages\MSBuildTasks.1.4.0.128\tools</MSBuildCommunityTasksPath>
</PropertyGroup>
<Import Project="$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Common.props" Condition="Exists('$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Common.props')" />
<ItemGroup>
<ProjectReference Include="$(MSBuildProjectDirectory)\src\Digillect.Xde\Digillect.Xde.csproj"/>
<ProjectReference Include="$(MSBuildProjectDirectory)\src\Digillect.Xde.MySql\Digillect.Xde.MySql.csproj"/>
<ProjectReference Include="$(MSBuildProjectDirectory)\src\Digillect.Xde.Oracle\Digillect.Xde.Oracle.csproj"/>
<ProjectReference Include="$(MSBuildProjectDirectory)\Digillect.Xde.proj">
<AdditionalProperties>BuildToolsVersion=$(BuildToolsVersion);NuGetExecutable=$(NuGetExecutable);NuGetVerbosity=$(NuGetVerbosity)</AdditionalProperties>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Common.targets" Condition="Exists('$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Common.targets')" />
<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets" Condition="Exists('$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets')" />
<Target Name="_CheckRequirements">
<Error Condition="!Exists('$(MSBuildProjectDirectory)\packages\Digillect.Build.Tools.$(BuildToolsVersion)\build\Digillect.Build.Common.props')" Text="This project requires the Digillect.Build.Tools $(BuildToolsVersion) package." />
<Error Condition="!Exists('$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.Targets')" Text="This project requires the MSBuildTasks package." />
</Target>
<Target Name="BeforeBuild">
<FileUpdate Condition="'$(BuildNumber)' != ''" Encoding="utf-8" Files="$(MSBuildProjectDirectory)\src\AssemblySharedInfo.cs" Regex='(BuildNumber\s*=\s*)"\d+"' ReplacementText='$1"$(BuildNumber)"' WarnOnNoUpdate="true" />
</Target>
<Target Name="AfterClean">
<ItemGroup>
<_DirectoriesToClean Include="$(MSBuildProjectDirectory)\target\" />
</ItemGroup>
<RemoveDir Directories="@(_DirectoriesToClean)" ContinueOnError="true" />
</Target>
</Project>