Directory.Build.props 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Project>
  2. <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory)..\, Directory.Build.props))\Directory.Build.props" />
  3. <PropertyGroup>
  4. <!-- Build number used by ANCM msis -->
  5. <_TwoDigitYear>$([MSBuild]::Subtract($([System.DateTime]::UtcNow.Year), 2000))</_TwoDigitYear>
  6. <_ThreeDigitDayOfYear>$([System.DateTime]::UtcNow.DayOfYear.ToString().PadLeft(3, '0'))</_ThreeDigitDayOfYear>
  7. <!-- Properties used by IIS-Common and IIS-Setup for libs/dlls -->
  8. <BUILD_MAJOR>$(_TwoDigitYear)$(_ThreeDigitDayOfYear)</BUILD_MAJOR>
  9. <BLDVERMAJOR>$(PRODUCT_MAJOR)</BLDVERMAJOR>
  10. <BLDVERMINOR>$(PRODUCT_MINOR)</BLDVERMINOR>
  11. <BLDNUMMAJOR>$(BUILD_MAJOR)</BLDNUMMAJOR>
  12. <BLDNUMMINOR>$(BUILD_MINOR)</BLDNUMMINOR>
  13. <!-- ANCM msi version is prepended with a 1 due to previous msi versions starting with 8.x.x.0 -->
  14. <ANCMFolderVersion>1$(AspNetCoreMajorMinorVersion).$(BUILD_MAJOR)</ANCMFolderVersion>
  15. <ANCMMsiVersion>$(ANCMFolderVersion).0</ANCMMsiVersion>
  16. <!-- The handler version in the M.A.AspNetCoreV2 nuget package. Today, this is hard coded to 2.0.0
  17. The actual handler folder version is dependent on the ANCMMsiVersion -->
  18. <ANCMOutOfProcessNugetPackageHandlerVersion>2.0.0</ANCMOutOfProcessNugetPackageHandlerVersion>
  19. <!-- Location of main folders-->
  20. <AspNetCoreSetupRoot>$(RepoRoot)src\Installers\Windows\AspNetCoreModule-Setup\</AspNetCoreSetupRoot>
  21. <IIS-Setup>$(AspNetCoreSetupRoot)IIS-Setup\</IIS-Setup>
  22. <IIS-Common>$(IIS-Setup)IIS-Common\</IIS-Common>
  23. <ANCMBuildDirectory>$(AspNetCoreSetupRoot)build\</ANCMBuildDirectory>
  24. <!-- Variables used by ANCM wxs projects. -->
  25. <_ServerIISBasePath>$(RepoRoot)\src\Servers\IIS\</_ServerIISBasePath>
  26. <DefineConstants>BLDVERMAJOR=$(BLDVERMAJOR);BLDVERMINOR=$(BLDVERMINOR);BLDNUMMAJOR=$(BLDNUMMAJOR);BLDNUMMINOR=$(BLDNUMMINOR);$(DefineConstants)</DefineConstants>
  27. <DefineConstants>ANCMMsiVersion=$(ANCMMsiVersion);ANCMFolderVersion=$(ANCMFolderVersion);ANCMOutOfProcessNugetPackageHandlerVersion=$(ANCMOutOfProcessNugetPackageHandlerVersion);$(DefineConstants)</DefineConstants>
  28. <DefineConstants>
  29. AspNetCoreSchemaPath=$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\aspnetcore_schema_v2.xml;
  30. AspNetCoreMofPath=$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\ancm.mof;
  31. $(DefineConstants)
  32. </DefineConstants>
  33. </PropertyGroup>
  34. <ItemGroup>
  35. <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj">
  36. <Name>AspNetCoreV2</Name>
  37. <Private>True</Private>
  38. <DoNotHarvest>True</DoNotHarvest>
  39. <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
  40. <SetPlatform>Platform=x64</SetPlatform>
  41. </ProjectReference>
  42. <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj">
  43. <Name>AspNetCoreV2Handler</Name>
  44. <Private>True</Private>
  45. <DoNotHarvest>True</DoNotHarvest>
  46. <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
  47. <SetPlatform>Platform=x64</SetPlatform>
  48. </ProjectReference>
  49. <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj">
  50. <Name>AspNetCoreV2WoW64</Name>
  51. <Private>True</Private>
  52. <DoNotHarvest>True</DoNotHarvest>
  53. <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
  54. <SetPlatform>Platform=Win32</SetPlatform>
  55. </ProjectReference>
  56. <ProjectReference Include="$(_ServerIISBasePath)AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj">
  57. <Name>AspNetCoreV2HandlerWoW64</Name>
  58. <Private>True</Private>
  59. <DoNotHarvest>True</DoNotHarvest>
  60. <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
  61. <SetPlatform>Platform=Win32</SetPlatform>
  62. </ProjectReference>
  63. </ItemGroup>
  64. </Project>