Skip to content

Commit f40bd2c

Browse files
committed
Revert "Remove ANCM shim and outofprocess handler from Runtime SiteExtension (#24884)"
This reverts commit 7f7528f.
1 parent 58b37d6 commit f40bd2c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/SiteExtensions/Runtime/Microsoft.AspNetCore.Runtime.SiteExtension.pkgproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@
3333
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
3434
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties>
3535
</ProjectReference>
36+
37+
<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\AspNetCore\AspNetCore.vcxproj" Platform="$(TargetArchitecture)" />
38+
<NativeProjectReference Include="$(RepoRoot)src\Servers\IIS\AspNetCoreModuleV2\OutOfProcessRequestHandler\OutOfProcessRequestHandler.vcxproj" HandlerPath="2.0.0" Platform="$(TargetArchitecture)" />
3639
</ItemGroup>
3740

3841
<Target Name="ResolveReferenceItemsForPackage" DependsOnTargets="ResolveReferences" BeforeTargets="_GetPackageFiles">
3942
<ItemGroup>
4043
<Content Include="$(DotNetUnpackFolder)\**\*.*" Exclude="$(DotNetUnpackFolder)\**\.*" Condition="$(DotNetAssetRootUrl) != ''" PackagePath="content\%(RecursiveDir)" />
44+
<Content Include="%(NativeContent.Identity)" PackagePath="content\ancm\%(NativeContent.HandlerPath)" />
4145
</ItemGroup>
4246
</Target>
4347

src/SiteExtensions/Runtime/applicationHost.xdt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<add name="DOTNET_ROOT" value="%XDT_EXTENSIONPATH%" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
1313
</environmentVariables>
1414
</runtime>
15+
16+
<globalModules>
17+
<add name="AspNetCoreModuleV2" image="%XDT_EXTENSIONPATH%\ancm\aspnetcorev2.dll" xdt:Locator="Match(name)" xdt:Transform="Replace" />
18+
</globalModules>
1519
</system.webServer>
1620

1721
<location>

0 commit comments

Comments
 (0)