Skip to content

Commit f4fcba7

Browse files
committed
Address Copilot review comments in PR 4259
1 parent 77e9130 commit f4fcba7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@
404404
the first step of this target.
405405
-->
406406
<PropertyGroup>
407-
<BuildSqlClientNotSupportedDependsOn Condition="'$(ReferenceType.ToLower())' == 'package'">PackAbstractions</BuildSqlClientNotSupportedDependsOn>
407+
<BuildSqlClientNotSupportedDependsOn Condition="'$(ReferenceType.ToLower())' == 'package'">PackAbstractions;PackSqlServer</BuildSqlClientNotSupportedDependsOn>
408408
</PropertyGroup>
409409
<Target Name="BuildSqlClientNotSupported" DependsOnTargets="$(BuildSqlClientNotSupportedDependsOn)">
410410
<PropertyGroup>

src/Microsoft.Data.SqlClient/tests/UnitTests/Microsoft.Data.SqlClient.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<ProjectReference Include="$(RepoRoot)src/Microsoft.SqlServer.Server/Microsoft.SqlServer.Server.csproj" />
4848
</ItemGroup>
4949

50-
<Target Name="ValidateReferenceType" BeforeTargets="Restore"
50+
<Target Name="ValidateReferenceType" BeforeTargets="Restore;PrepareForBuild"
5151
Condition="'$(ReferenceType)' == 'Package'">
5252
<Error Text="Microsoft.Data.SqlClient.UnitTests.csproj does not support ReferenceType=Package. Use project references for unit tests." />
5353
</Target>

0 commit comments

Comments
 (0)