|
|
@ -7,17 +7,18 @@ |
|
|
|
<MakeDir Directories="@(WorkingDirectories)" /> |
|
|
|
<MakeDir Directories="@(WorkingDirectories)" /> |
|
|
|
</Target> |
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
<Target Name="_Compile" DependsOnTargets="_Clean"> |
|
|
|
<Target Name="_Compile" DependsOnTargets="_Clean"> |
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration)" BuildInParallel="true" /> |
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration)" BuildInParallel="true" Condition=" '$(BuildTools)' == '' " /> |
|
|
|
</Target> |
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration);TargetFrameworkVersion=v2.0" Condition=" '$(BuildTools)' == 'v3.5' " /> |
|
|
|
|
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
<Target Name="_GenerateSource"> |
|
|
|
<Target Name="_CompileGeneratedSource" DependsOnTargets="_CopyGeneratedSource"> |
|
|
|
<PropertyGroup> |
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration)" BuildInParallel="true" Condition=" '$(BuildTools)' == '' " /> |
|
|
|
<ProtosList>@(Protos)</ProtosList> |
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration);TargetFrameworkVersion=v2.0" Condition=" '$(BuildTools)' == 'v3.5' " /> |
|
|
|
<Args>$(ProtosList.Replace(`;`,` `))</Args> |
|
|
|
</Target> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Exec Command="$(ProtocExePath) --proto_path=$(ProtosDirectory) --descriptor_set_out=compiled.pb $(Args)" WorkingDirectory="$(BuildTempDirectory)" /> |
|
|
|
<Target Name="_GenerateSource"> |
|
|
|
|
|
|
|
<Exec Command="$(ProtocExePath) --proto_path=$(ProtosDirectory) --descriptor_set_out=compiled.pb @(Protos->'%(RelativeDir)%(Filename)%(Extension)', ' ')" WorkingDirectory="$(BuildTempDirectory)" /> |
|
|
|
<Exec Command="$(ProtogenExePath) compiled.pb" WorkingDirectory="$(BuildTempDirectory)" /> |
|
|
|
<Exec Command="$(ProtogenExePath) compiled.pb" WorkingDirectory="$(BuildTempDirectory)" /> |
|
|
|
</Target> |
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
@ -25,10 +26,6 @@ |
|
|
|
<Copy SourceFiles="%(GeneratedSource.Identity)" DestinationFiles="%(GeneratedSource.TargetDirectory)\%(GeneratedSource.Filename)%(GeneratedSource.Extension)" /> |
|
|
|
<Copy SourceFiles="%(GeneratedSource.Identity)" DestinationFiles="%(GeneratedSource.TargetDirectory)\%(GeneratedSource.Filename)%(GeneratedSource.Extension)" /> |
|
|
|
</Target> |
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
<Target Name="_CompileGeneratedSource" DependsOnTargets="_CopyGeneratedSource"> |
|
|
|
|
|
|
|
<MSBuild Projects="$(SolutionFile)" Properties="Configuration=$(BuildConfiguration)" BuildInParallel="true" /> |
|
|
|
|
|
|
|
</Target> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Target Name="_Test" DependsOnTargets="_CompileGeneratedSource" Condition="$(BuildConfiguration)=='Debug' or $(BuildConfiguration)=='Release'"> |
|
|
|
<Target Name="_Test" DependsOnTargets="_CompileGeneratedSource" Condition="$(BuildConfiguration)=='Debug' or $(BuildConfiguration)=='Release'"> |
|
|
|
<Exec Command=""$(NUnitExePath)" %(TestContainer.Identity) /xml:$(BuildTempDirectory)\..\%(TestContainer.Filename).$(BuildConfiguration).xml" /> |
|
|
|
<Exec Command=""$(NUnitExePath)" %(TestContainer.Identity) /xml:$(BuildTempDirectory)\..\%(TestContainer.Filename).$(BuildConfiguration).xml" /> |
|
|
|
</Target> |
|
|
|
</Target> |
|
|
|