Skip to content

Commit 1fc570e

Browse files
authored
Skip unit tests friend assembly designation on official builds (#3447)
1 parent 100209d commit 1fc570e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<PropertyGroup>
3434
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFramework)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
3535
</PropertyGroup>
36-
<ItemGroup>
36+
<ItemGroup Condition="$(CDP_BUILD_TYPE)!=Official">
3737
<InternalsVisibleTo Include="UnitTests" />
3838
</ItemGroup>
3939
<ItemGroup>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<PropertyGroup>
3232
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)\$(TargetFramework)','$(GeneratedSourceFileName)'))</TargetFrameworkMonikerAssemblyAttributesPath>
3333
</PropertyGroup>
34-
<ItemGroup>
34+
<ItemGroup Condition="$(CDP_BUILD_TYPE)!=Official">
3535
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
3636
<_Parameter1>UnitTests</_Parameter1>
3737
</AssemblyAttribute>

0 commit comments

Comments
 (0)