-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.proj
36 lines (30 loc) · 2.15 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
<Project ToolsVersion="4.0" DefaultTargets="Compile" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ArtifactDirectory Condition="'$(ArtifactDirectory)'==''"></ArtifactDirectory>
<ProjectRoot Condition="'$(ProjectRoot)'==''">.\</ProjectRoot>
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
</PropertyGroup>
<Target Name="Init">
<Message Text=" ===========Initialising build===========" Importance="High" />
<RemoveDir Directories="$(ArtifactDirectory)" Condition="Exists($(ArtifactDirectory))" ContinueOnError="false"/>
<MakeDir Directories="$(ArtifactDirectory)" Condition="!Exists($(ArtifactDirectory))"/>
</Target>
<Target Name="BuildTestResourceFile">
<Message Text=" ===========Preparing language resource files===========" Importance="High" />
<CreateItem Include='$(ProjectRoot)'>
<Output ItemName='ProjectRootPath' TaskParameter='Include' />
</CreateItem>
<Message Text="Parsing Language.resx" Importance="High" />
<Exec Command="build\PsuedoizerConsole.exe "%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC3.Example\NuSpec\Content\Resources\Language.resx" "%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC3.Example\NuSpec\Content\Resources\Language.pl.resx"" />
<Exec Command="build\PsuedoizerConsole.exe "%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC4.Example\NuSpec\Content\Resources\Language.resx" "%(ProjectRootPath.FullPath)\src\Code52.i18n.MVC4.Example\NuSpec\Content\Resources\Language.pl.resx"" />
</Target>
<Target Name="Compile">
<Message Text=" ===========Compiling code===========" Importance="High" />
<MSBuild Projects="./src/Code52.i18n.sln" Properties="Configuration=$(Configuration)" />
</Target>
<Target Name="CompileSample">
<Message Text=" ===========Compiling code===========" Importance="High" />
<MSBuild Projects="./src/Code52.i18n.sln" Properties="Configuration=$(Configuration)" />
<CallTarget Targets="BuildTestResourceFile" Condition="'$(Configuration)'=='Debug'" />
</Target>
</Project>