Advertisement
FrayxRulez

Untitled

May 26th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.78 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3.  
  4.   <Target Name="PlatformCheck" BeforeTargets="InjectReference"
  5.    Condition=" ( ('$(Platform)' != 'x86') AND ('$(Platform)' != 'ARM') )">
  6.     <Error  Text="$(MSBuildThisFileName) does not work correctly on '$(Platform)' platform. You need to specify platform (x86 or ARM)." />
  7.   </Target>
  8.  
  9.   <Target Name="InjectReference" BeforeTargets="ResolveAssemblyReferences">
  10.  
  11.     <ItemGroup Condition=" '$(Platform)' == 'x86' or '$(Platform)' == 'ARM'">
  12.       <Reference Include="Nome lib senza estensione">
  13.         <HintPath>$(MSBuildThisFileDirectory)$(Platform)\Nome lib con estensione</HintPath>
  14.       </Reference>
  15.     </ItemGroup>
  16.  
  17.   </Target>
  18. </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement