Skip to content

Commit d41df90

Browse files
committed
Copy ObjectPool.dll to output folder
1 parent f22b494 commit d41df90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Razor/src/Microsoft.VisualStudioCode.RazorExtension/Microsoft.VisualStudioCode.RazorExtension.csproj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- Below package references are covered by the binaries shipped by roslyn and do not need to be packaged-->
2323
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
2424
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" />
25-
<PackageReference Include="Microsoft.Extensions.ObjectPool" />
25+
<PackageReference Include="Microsoft.Extensions.ObjectPool" GeneratePathProperty="true" />
2626
<PackageReference Include="Microsoft.Extensions.Logging" />
2727
<PackageReference Include="Microsoft.CodeAnalysis.ExternalAccess.Razor.Features" />
2828
</ItemGroup>
@@ -42,6 +42,11 @@
4242
<InternalsVisibleTo Include="Microsoft.VisualStudioCode.RazorExtension.Test" Key="$(RazorKey)" />
4343
</ItemGroup>
4444

45+
<ItemGroup>
46+
<!-- Need to make sure ObjectPool is in the bin folder for local development scenarios -->
47+
<None Include="$(PkgMicrosoft_Extensions_ObjectPool)\lib\net8.0\Microsoft.Extensions.ObjectPool.dll" CopyToOutputDirectory="PreserveNewest" Visible="false" />
48+
</ItemGroup>
49+
4550
<Target Name="PackPublishContent" DependsOnTargets="Publish">
4651
<ItemGroup>
4752
<Content Include="$(TargetPath)" Pack="true" PackagePath="content" CopyToOutputDirectory="PreserveNewest" />

0 commit comments

Comments
 (0)