Skip to content

Commit 6fb69e4

Browse files
authored
Merge branch 'main' into copilot/fix-mcp-stdio-iserror-propagation
2 parents 23c7799 + 4d92d12 commit 6fb69e4

1 file changed

Lines changed: 23 additions & 3 deletions

File tree

src/Core/Azure.DataApiBuilder.Core.csproj

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2121
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2222
<NoWarn>NU1603</NoWarn>
23+
24+
<!-- Run custom target during pack to add dependency files into the package. -->
25+
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);IncludeInternalDependenciesInPackage</TargetsForTfmSpecificContentInPackage>
2326
</PropertyGroup>
2427

2528
<ItemGroup>
@@ -53,9 +56,15 @@
5356
</PropertyGroup>
5457

5558
<ItemGroup>
56-
<ProjectReference Include="..\Auth\Azure.DataApiBuilder.Auth.csproj" />
57-
<ProjectReference Include="..\Config\Azure.DataApiBuilder.Config.csproj" />
58-
<ProjectReference Include="..\Service.GraphQLBuilder\Azure.DataApiBuilder.Service.GraphQLBuilder.csproj" />
59+
<ProjectReference Include="..\Auth\Azure.DataApiBuilder.Auth.csproj">
60+
<PrivateAssets Condition="'$(PrivatizeAssets)' == 'true'">all</PrivateAssets>
61+
</ProjectReference>
62+
<ProjectReference Include="..\Config\Azure.DataApiBuilder.Config.csproj">
63+
<PrivateAssets Condition="'$(PrivatizeAssets)' == 'true'">all</PrivateAssets>
64+
</ProjectReference>
65+
<ProjectReference Include="..\Service.GraphQLBuilder\Azure.DataApiBuilder.Service.GraphQLBuilder.csproj">
66+
<PrivateAssets Condition="'$(PrivatizeAssets)' == 'true'">all</PrivateAssets>
67+
</ProjectReference>
5968
</ItemGroup>
6069

6170
<ItemGroup>
@@ -65,4 +74,15 @@
6574
<None Include="..\..\nuget_core\NOTICE.txt" Pack="true" PackagePath="\" Condition="Exists('..\..\nuget_core\NOTICE.txt')" />
6675
</ItemGroup>
6776

77+
<Target Name="IncludeInternalDependenciesInPackage">
78+
<ItemGroup>
79+
<_InternalAssembly Include="$(OutputPath)Azure.DataApiBuilder.Auth.dll" />
80+
<_InternalAssembly Include="$(OutputPath)Azure.DataApiBuilder.Config.dll" />
81+
<_InternalAssembly Include="$(OutputPath)Azure.DataApiBuilder.Service.GraphQLBuilder.dll" />
82+
<_InternalAssembly Include="$(OutputPath)Azure.DataApiBuilder.Product.dll" />
83+
84+
<TfmSpecificPackageFile Include="@(_InternalAssembly)" PackagePath="lib/$(TargetFramework)" />
85+
</ItemGroup>
86+
</Target>
87+
6888
</Project>

0 commit comments

Comments
 (0)