build.targets 1.1 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <NuPkgRootPath>$(MSBuildThisFileDirectory)..\..\</NuPkgRootPath>
  5. <WizardDxpTarget>$(NuPkgRootPath)tools\net.r_eg.DllExport.Wizard.targets</WizardDxpTarget>
  6. </PropertyGroup>
  7. <PropertyGroup>
  8. <wAction>Info</wAction>
  9. <wSlnFile Condition="'$(wSlnFile)' == ''">$(SolutionPath)</wSlnFile>
  10. <wRootPath Condition="'$(wRootPath)' == ''">$(SolutionDir)</wRootPath>
  11. <wPkgPath Condition="'$(wPkgPath)' == ''">$(NuPkgRootPath)</wPkgPath>
  12. </PropertyGroup>
  13. <Target Name="DllExportPkg" BeforeTargets="PrepareForBuild">
  14. <CallTarget Targets="DllExportWizard" Condition="'$(DllExportWizardExecuted)' != 'true'" />
  15. <Error Text="Please remove 'DllExport' nuget package to continue. Use custom installer via DllExport.bat - Details: https://github.com/3F/DllExport/issues/38" />
  16. </Target>
  17. <Import Project="$(WizardDxpTarget)" Condition="'$(DllExportWizardImported)' != 'true' And Exists('$(WizardDxpTarget)')" />
  18. </Project>