net.r_eg.DllExport.Wizard.targets 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- https://github.com/3F/DllExport -->
  3. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  4. <PropertyGroup>
  5. <DllExportWizardImported>true</DllExportWizardImported>
  6. </PropertyGroup>
  7. <Target Name="DllExportWizard">
  8. <PropertyGroup>
  9. <wSlnDir Condition="'$(wSlnDir)' == ''">.\</wSlnDir>
  10. <wPkgPath Condition="'$(wPkgPath)' == ''">packages\DllExport</wPkgPath>
  11. <wMetaLib Condition="'$(wMetaLib)' == ''">tools\raw\lib\net20\DllExport.dll</wMetaLib>
  12. <wDxpTarget Condition="'$(wDxpTarget)' == ''">tools\net.r_eg.DllExport.targets</wDxpTarget>
  13. <wAction Condition="'$(wAction)' == ''">Restore</wAction> <!-- Action by default. enum `ActionType`. -->
  14. </PropertyGroup>
  15. <PropertyGroup Label="Optional">
  16. <!-- SlnFile: Optional predefined .sln file to process via the restore operations etc. -->
  17. <wSlnFile Condition="'$(wSlnFile)' == ''"></wSlnFile> <!-- will be used the first found .sln file if it's empty -->
  18. <wRootPath Condition="'$(wRootPath)' == ''"></wRootPath> <!-- Optional root path of user paths. Affects on wSlnFile, wSlnDir, wPkgPath -->
  19. <wStoragePath Condition="'$(wStoragePath)' == ''"></wStoragePath> <!-- Optional path to external storage if used. -->
  20. <wStorage Condition="'$(wStorage)' == ''">Default</wStorage> <!-- Where to store configuration data. enum `CfgStorageType`. -->
  21. <wMgrArgs Condition="'$(wMgrArgs)' == ''"></wMgrArgs>
  22. </PropertyGroup>
  23. <PropertyGroup Label="Debug">
  24. <!-- MsgGuiLevel:
  25. Will show messages via GUI dlg for selected level (any positive number) and above.
  26. Levels: 0 - 5 (see Message.Level)
  27. '4' = means 4 (Error) + 5 (Fatal) levels.
  28. Any negative number disables this.
  29. It affects only for messages to GUI.
  30. -->
  31. <MsgGuiLevel Condition="'$(MsgGuiLevel)' == ''">-1</MsgGuiLevel>
  32. </PropertyGroup>
  33. <DllExportCfgTask
  34. RootPath="$(wRootPath)"
  35. SlnDir="$(wSlnDir)"
  36. SlnFile="$(wSlnFile)"
  37. PkgPath="$(wPkgPath)"
  38. MetaLib="$(wMetaLib)"
  39. MgrArgs="$(wMgrArgs)"
  40. DxpTarget="$(wDxpTarget)"
  41. StoragePath="$(wStoragePath)"
  42. Storage="$(wStorage)"
  43. Action="$(wAction)"
  44. MsgGuiLevel="$(MsgGuiLevel)"
  45. />
  46. <PropertyGroup>
  47. <DllExportWizardExecuted>true</DllExportWizardExecuted>
  48. </PropertyGroup>
  49. </Target>
  50. <UsingTask TaskName="net.r_eg.DllExport.Wizard.DllExportCfgTask" AssemblyFile="net.r_eg.DllExport.Wizard.dll" />
  51. <Target Name="Build" DependsOnTargets="DllExportWizard" />
  52. </Project>