Skip to content

Commit 525ea89

Browse files
authored
Include all pdb's for S.SM.Primitives so that package is deterministic and has compiler flags (#5683)
* Include all pdb's for S.SM.Primitives so that package is deterministic and has compiler flags * Add missing old Duplex and Security package types being type forwarded by Primitives to System.ServiceModel
1 parent 119cf97 commit 525ea89

File tree

7 files changed

+52
-1
lines changed

7 files changed

+52
-1
lines changed

eng/RuntimePackages.props

Whitespace-only changes.

eng/RuntimePackages.targets

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@
3939
<None Condition="Exists('netstandard.cs')" Include="netstandard.cs" />
4040
<None Condition="Exists('NetFxTypeForwards.cs')" Include="NetFxTypeForwards.cs" />
4141
</ItemGroup>
42-
42+
4343
<PropertyGroup>
4444
<!-- Placeholders don't need a dependency group. -->
4545
<NoWarn>$(NoWarn);NU5128;NU5131</NoWarn>
46+
<Deterministic>true</Deterministic>
47+
<DebugType>portable</DebugType>
4648
</PropertyGroup>
4749
<ItemGroup>
4850
<None Include="$(PlaceholderFile)"

src/System.ServiceModel.Duplex/src/System.ServiceModel.Duplex.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<IsShipping>$(Ship_WcfPackages)</IsShipping>
1010
<IsShippingPackage>false</IsShippingPackage>
1111
<IncludeSRCommonCode>false</IncludeSRCommonCode>
12+
<DebugType>portable</DebugType>
1213
</PropertyGroup>
1314

1415
<ItemGroup Condition="'$(TargetFramework)' != '$(NetFrameworkVersion)'">

src/System.ServiceModel.Primitives/src/NetFxTypeForwards.cs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,43 @@
193193
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.X509CertificateInitiatorClientCredential))]
194194
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.X509CertificateRecipientClientCredential))]
195195
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.X509ServiceCertificateAuthentication))]
196+
197+
// From old Duplex package
198+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.CallbackBehaviorAttribute))]
199+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.ConcurrencyMode))]
200+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.DuplexChannelFactory<>))]
201+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.DuplexClientBase<>))]
202+
203+
// From old Security package
204+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.DnsEndpointIdentity))]
205+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.MessageSecurityVersion))]
206+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.SpnEndpointIdentity))]
207+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.UpnEndpointIdentity))]
208+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.X509CertificateEndpointIdentity))]
209+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.ISecurityCapabilities))]
210+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.LocalClientSecuritySettings))]
211+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.SecurityBindingElement))]
212+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.SecurityHeaderLayout))]
213+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Channels.TransportSecurityBindingElement))]
214+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.SecurityKeyEntropyMode))]
215+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.BasicSecurityProfileVersion))]
216+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.IdentityVerifier))]
217+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.SecureConversationVersion))]
218+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.SecurityAlgorithmSuite))]
219+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.SecurityPolicyVersion))]
220+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.SecurityVersion))]
221+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.TrustVersion))]
222+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.BinarySecretSecurityToken))]
223+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.IssuedSecurityTokenParameters))]
224+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.SecureConversationSecurityTokenParameters))]
225+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.SecurityTokenParameters))]
226+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.ServiceModelSecurityTokenRequirement))]
227+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.SupportingTokenParameters))]
228+
[assembly: TypeForwardedTo(typeof(System.ServiceModel.Security.Tokens.UserNameSecurityTokenParameters))]
229+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Claims.ClaimSet))]
230+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Claims.Claim))]
231+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Policy.IAuthorizationPolicy))]
232+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Policy.IAuthorizationComponent))]
233+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Policy.AuthorizationContext))]
234+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Tokens.GenericXmlSecurityToken))]
235+
[assembly: TypeForwardedTo(typeof(System.IdentityModel.Tokens.GenericXmlSecurityKeyIdentifierClause))]

src/System.ServiceModel.Primitives/src/System.ServiceModel.Primitives.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,14 @@
7575
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificBuildOutput);AddRetiredPackageAssembliesToPackage</TargetsForTfmSpecificContentInPackage>
7676
</PropertyGroup>
7777
<Target Name="AddRetiredPackageAssembliesToPackage" AfterTargets="AssignTargetPaths">
78+
<ItemGroup>
79+
<RetiredPackagesAssemblies Update="@(RetiredPackagesAssemblies)">
80+
<PdbFilePath>%(RetiredPackagesAssemblies.RootDir)%(RetiredPackagesAssemblies.Directory)%(RetiredPackagesAssemblies.Filename).pdb</PdbFilePath>
81+
</RetiredPackagesAssemblies>
82+
</ItemGroup>
7883
<ItemGroup>
7984
<TfmSpecificPackageFile Include="@(RetiredPackagesAssemblies)" PackagePath="lib/$(TargetFramework)" />
85+
<TfmSpecificPackageFile Include="%(RetiredPackagesAssemblies.PdbFilePath)" PackagePath="lib/$(TargetFramework)" Condition="Exists('%(RetiredPackagesAssemblies.PdbFilePath)')" />
8086
</ItemGroup>
8187
</Target>
8288
</Project>

src/System.ServiceModel.Security/src/System.ServiceModel.Security.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<IsShipping>$(Ship_WcfPackages)</IsShipping>
1010
<IsShippingPackage>false</IsShippingPackage>
1111
<IncludeSRCommonCode>false</IncludeSRCommonCode>
12+
<DebugType>portable</DebugType>
1213
</PropertyGroup>
1314

1415
<ItemGroup Condition="'$(TargetFramework)' != '$(NetFrameworkVersion)'">

src/System.ServiceModel.Shim/System.ServiceModel.Shim.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<!-- The partial facade assembly's public key token must exactly match the contract to be filled. -->
1616
<StrongNameKeyId>ECMA</StrongNameKeyId>
1717
<MicrosoftTargetingPackNETFrameworkv472Package>Microsoft.TargetingPack.NETFramework.v4.7.2</MicrosoftTargetingPackNETFrameworkv472Package>
18+
<DebugType>portable</DebugType>
1819
</PropertyGroup>
1920
<ItemGroup>
2021
<PackageDownload Include="$(MicrosoftTargetingPackNETFrameworkv472Package)" Version="[$(MicrosoftTargetingPackNETFrameworkv472PackageVersion)]" />

0 commit comments

Comments
 (0)