|
3 | 3 | <PropertyGroup> |
4 | 4 | <CecilDirectory>$(MSBuildThisFileDirectory)\..\..\external\cecil</CecilDirectory> |
5 | 5 | <CecilPreparedFlag>prepared.flag</CecilPreparedFlag> |
6 | | - <OutputPath Condition="'$(OutputPath)' == ''">bin\$(Configuration)</OutputPath> |
| 6 | + <OutputPath Condition=" '$(OutputPath)' == '' ">..\..\bin\$(Configuration)</OutputPath> |
7 | 7 | <CecilOutputPath>$([System.IO.Path]::GetFullPath ('$(OutputPath)'))</CecilOutputPath> |
8 | 8 | <CecilAssemblies>$(OutputPath)\Xamarin.Android.Cecil.dll;$(OutputPath)\Xamarin.Android.Cecil.Mdb.dll</CecilAssemblies> |
9 | 9 | </PropertyGroup> |
|
17 | 17 | <Target Name="BuildCecil" |
18 | 18 | Inputs="$(CecilPreparedFlag)" |
19 | 19 | Outputs="$(CecilAssemblies)" DependsOnTargets="PrepareCecil"> |
20 | | - <Exec Command="cd $(CecilDirectory); patch -Ep1 < $(MSBuildThisFileDirectory)\assembly-rename.patch" /> |
| 20 | + <Exec |
| 21 | + Command="patch -Ep1 < "$(MSBuildThisFileDirectory)\assembly-rename.patch"" |
| 22 | + WorkingDirectory="$(CecilDirectory)" |
| 23 | + /> |
21 | 24 | <MSBuild |
22 | | - Projects="$(CecilDirectory)\Mono.Cecil.csproj;$(CecilDirectory)\symbols\mdb\Mono.Cecil.Mdb.csproj" |
23 | | - Targets="Clean;Build" |
24 | | - StopOnFirstFailure="true" |
25 | | - Properties="Configuration=net_4_0_Debug;OutputPath=$(CecilOutputPath);BuildingSolutionFile=false" /> |
26 | | - <Exec Command="cd $(CecilDirectory); patch -REp1 < $(MSBuildThisFileDirectory)\assembly-rename.patch" /> |
| 25 | + Projects="$(CecilDirectory)\Mono.Cecil.csproj;$(CecilDirectory)\symbols\mdb\Mono.Cecil.Mdb.csproj" |
| 26 | + Targets="Clean;Build" |
| 27 | + StopOnFirstFailure="True" |
| 28 | + Properties="Configuration=net_4_0_Debug;OutputPath=$(CecilOutputPath);BuildingSolutionFile=false" /> |
| 29 | + <Exec |
| 30 | + Command="patch -REp1 < "$(MSBuildThisFileDirectory)\assembly-rename.patch"" |
| 31 | + WorkingDirectory="$(CecilDirectory)" |
| 32 | + /> |
27 | 33 | <Touch Files="$(CecilAssemblies)" /> |
28 | 34 | </Target> |
29 | 35 | <Target Name="Build" DependsOnTargets="BuildCecil" Returns="$(CecilOutputPath)\$(AssemblyName).dll"> |
30 | 36 | <MakeDir Directories="obj\$(Configuration)" /> |
31 | 37 | </Target> |
32 | 38 | <Target Name="AfterClean"> |
33 | 39 | <Delete Files="$(CecilPreparedFlag)" /> |
34 | | - <RemoveDir Directories="bin" /> |
35 | 40 | </Target> |
36 | 41 | </Project> |
0 commit comments