Skip to content

Commit ea2a01b

Browse files
Fix auto import of proto files when gRPC JSON transcoding is a transitive reference (#52470)
Co-authored-by: James Newton-King <[email protected]>
1 parent 62a85bf commit ea2a01b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Grpc/JsonTranscoding/src/Microsoft.AspNetCore.Grpc.JsonTranscoding/Microsoft.AspNetCore.Grpc.JsonTranscoding.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@
3434
<Pack>true</Pack>
3535
<PackagePath>content</PackagePath>
3636
</None>
37+
<!-- The build file needs to be in build and buildTransitive. -->
38+
<!-- buildTransitive is required so the package reference will work when not directly referenced by the web app. -->
39+
<!-- See https://github.com/dotnet/aspnetcore/issues/52006 for more details. -->
3740
<None Include="build\*.targets">
3841
<Pack>true</Pack>
39-
<PackagePath>build</PackagePath>
42+
<PackagePath>build;buildTransitive</PackagePath>
4043
</None>
4144
</ItemGroup>
4245
</Project>

0 commit comments

Comments
 (0)