Import.targets 2.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <!-- Non-Portable Library build -->
  4. <Import
  5. Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"
  6. Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildPlatform)' == 'DESKTOPCLR' " />
  7. <!-- Silverlight ONLY (i.e., not phone) -->
  8. <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildPlatform)' == 'SILVERLIGHT' AND !('$(BuildFlavor)' == 'SILVERLIGHTM7') " />
  9. <!-- Windows Phone 7.1 (Silverlight for Phone) -->
  10. <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'SILVERLIGHTM7' " />
  11. <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildFlavor)' == 'SILVERLIGHTM7' " />
  12. <!-- <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\Microsoft.Xna.GameStudio.targets" Condition=" '$(TargetFrameworkIdentifier)' != '.NETPortable' And '$(BuildPlatform)' == 'XNA' "/>
  13. -->
  14. <!-- Portable Library Build -->
  15. <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" Condition=" '$(TargetFrameworkIdentifier)' == '.NETPortable' " />
  16. <!-- If "Sign" is set and assembly should be signed, generate a .sign file-->
  17. <Target Name="AfterBuild"
  18. Condition=" '$(ProductSignAssembly)' == 'true' AND '$(Sign)' == 'Sign' ">
  19. <WriteLinesToFile
  20. File="$(OutDir)\$(TargetFileName).sign"
  21. Overwrite="true"
  22. Lines="Auto-generated file, indicates the corresponding binary file needs to be signed." />
  23. </Target>
  24. </Project>