Skip to content

Commit

Permalink
Revert "Remove ANCM shim and outofprocess handler from Runtime SiteEx… (
Browse files Browse the repository at this point in the history
#31042)

* Revert "Remove ANCM shim and outofprocess handler from Runtime SiteExtension (#24884)"

This reverts commit 7f7528f.

* Enable site extension build temporarily

* Enable build native

* Fixing site extension build

* No need to set

* Fixing up build

* Update .azure/pipelines/ci.yml

* Update ci.yml

* retry

* Update .azure/pipelines/ci.yml
  • Loading branch information
jkotalik authored Mar 20, 2021
1 parent 9f1012b commit cb32de3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Servers/IIS/build/assets.props
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
ProjectName="OutOfProcessRequestHandler.vcxproj"
PropetyName="AspNetCoreModuleV2OutOfProcessHandler"
OutDirName="OutOfProcessRequestHandler"
TempSubfolder="2.0.0/"
PackageSubPath="$(AspNetCoreModuleOutOfProcessVersion)\"
ProjectDirectory="$(MSBuildThisFileDirectory)..\AspNetCoreModuleV2\OutOfProcessRequestHandler"
Include="$(MSBuildThisFileDirectory)..\AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj"
Expand All @@ -139,6 +140,7 @@
ProjectName="OutOfProcessRequestHandler.vcxproj"
PropetyName="AspNetCoreModuleV2OutOfProcessHandler"
OutDirName="OutOfProcessRequestHandler"
TempSubfolder="2.0.0/"
PackageSubPath="$(AspNetCoreModuleOutOfProcessVersion)\"
ProjectDirectory="$(MSBuildThisFileDirectory)..\AspNetCoreModuleV2\OutOfProcessRequestHandler"
Include="$(MSBuildThisFileDirectory)..\AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
<NoSemVer20>true</NoSemVer20>
</PropertyGroup>

<Import Project="..\..\..\src\Servers\IIS\build\assets.props" />

<ItemGroup>
<Content Include="applicationHost.xdt" />
<Content Include="scmApplicationHost.xdt" />
Expand All @@ -33,11 +35,18 @@
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
</ProjectReference>

<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj" Platform="$(TargetArchitecture)" />
<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj" HandlerPath="2.0.0" Platform="$(TargetArchitecture)" />
</ItemGroup>

<Target Name="ResolveReferenceItemsForPackage" DependsOnTargets="ResolveReferences" BeforeTargets="_GetPackageFiles">
<ItemGroup>
<Content Include="$(DotNetUnpackFolder)\**\*.*" Exclude="$(DotNetUnpackFolder)\**\.*" Condition="$(DotNetAssetRootUrl) != ''" PackagePath="content\%(RecursiveDir)" />
<Content Include="%(ShimComponents.DllLocation)"
Pack="true"
Condition="'%(ShimComponents.Platform)' == '$(TargetArchitecture)'"
PackagePath="content\ancm\%(ShimComponents.TempSubfolder)" />
</ItemGroup>
</Target>

Expand Down
4 changes: 4 additions & 0 deletions src/SiteExtensions/Runtime/applicationHost.xdt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
<add name="DOTNET_ROOT" value="%XDT_EXTENSIONPATH%" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</environmentVariables>
</runtime>

<globalModules>
<add name="AspNetCoreModuleV2" image="%XDT_EXTENSIONPATH%\ancm\aspnetcorev2.dll" xdt:Locator="Match(name)" xdt:Transform="Replace" />
</globalModules>
</system.webServer>

<location>
Expand Down

0 comments on commit cb32de3

Please sign in to comment.