Skip to content

Commit 175dcb9

Browse files
authored
Fix some dependencies and added TargetFrameworkAttribute (#5111)
Fixes #5091
1 parent 04ee51e commit 175dcb9

File tree

7 files changed

+7
-284
lines changed

7 files changed

+7
-284
lines changed

eng/Versioning.props

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
<PropertyGroup>
1414
<!-- Disable some standard properties for building our projects -->
15-
<!-- [todo:arcade] Disabling these because our shipped assemblies didn't include these attributes, not sure if we care or not. -->
16-
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
15+
<GenerateTargetFrameworkAttribute>true</GenerateTargetFrameworkAttribute>
1716
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
1817
<!-- [todo:arcade] This attribute exists in our previously shipped S.P.SM assembly but not in all the Facade assemblies. For now removing accross all assemblies. -->
1918
<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>

eng/Versions.props

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@
3131
</PropertyGroup>
3232
<!-- CoreFx dependencies -->
3333
<PropertyGroup>
34-
<MicrosoftPrivateCoreFxNETCoreAppPackageVersion>4.5.0-rtm</MicrosoftPrivateCoreFxNETCoreAppPackageVersion>
3534
<SystemReflectionDispatchProxyPackageVersion>4.7.1</SystemReflectionDispatchProxyPackageVersion>
3635
<SystemSecurityPrincipalWindowsPackageVersion>5.0.0</SystemSecurityPrincipalWindowsPackageVersion>
3736
<SystemSecurityCryptographyXmlPackageVersion>6.0.1</SystemSecurityCryptographyXmlPackageVersion>
38-
<SystemNumericsVectorsPackageVersion>4.5.0</SystemNumericsVectorsPackageVersion>
39-
<MicrosoftPrivateCoreFxUAPPackageVersion>4.7.0-preview4.19164.7</MicrosoftPrivateCoreFxUAPPackageVersion>
37+
<MicrosoftExtensionsObjectPoolVersion>6.0.16</MicrosoftExtensionsObjectPoolVersion>
4038
</PropertyGroup>
4139
<!-- Additional dependencies -->
4240
<PropertyGroup>

src/System.ServiceModel.NetFramingBase/src/System.ServiceModel.NetFramingBase.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsPackageVersion)" />
23-
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" /> <!-- TODO: Parameterize version of Tasks.Extensions, nb, not needed if dropping netstandard2.0 -->
2423
</ItemGroup>
2524

2625
<!--The default source produced by the Arcade SDK does not work with the checked-in source file SR.cs (class/namespace/filename)-->

src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.Ref.csproj

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,18 @@
22
<PropertyGroup>
33
<AssemblyVersion>$(WcfAssemblyVersion)</AssemblyVersion>
44
<StrongNameKeyId>Microsoft</StrongNameKeyId>
5-
<TargetFrameworks>net6.0;net461</TargetFrameworks>
5+
<TargetFrameworks>net6.0</TargetFrameworks>
66
<AssemblyName>System.ServiceModel.Primitives</AssemblyName>
77
<RootNamespace>System.ServiceModel</RootNamespace>
88
<CLSCompliant>true</CLSCompliant>
99
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
10-
<!--<IsPartialFacadeAssembly Condition="'$(TargetFramework)' == 'net461'">true</IsPartialFacadeAssembly>-->
1110
</PropertyGroup>
1211

13-
14-
<ItemGroup Condition="'$(TargetFramework)' != 'net461'">
15-
<PackageReference Include="System.Security.Principal.Windows" Version="$(SystemSecurityPrincipalWindowsPackageVersion)" />
16-
</ItemGroup>
17-
18-
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
19-
<Reference Include="System" />
20-
<Reference Include="System.IdentityModel" />
21-
<Reference Include="System.ServiceModel" />
22-
</ItemGroup>
23-
24-
<ItemGroup Condition="'$(TargetFramework)' != 'net461'">
12+
<ItemGroup>
2513
<Compile Include="System.ServiceModel.Primitives.cs" />
2614
<Compile Include="System.ServiceModel.Security.cs" />
2715
<Compile Include="System.ServiceModel.Primitives.Netcoreapp.cs" />
2816
<Compile Include="System.ServiceModel.Duplex.cs" />
2917
<None Include="System.ServiceModel.Primitives.netframework.cs" />
3018
</ItemGroup>
31-
32-
<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
33-
<None Include="System.ServiceModel.Primitives.cs" />
34-
<None Include="System.ServiceModel.Security.cs" />
35-
<None Include="System.ServiceModel.Primitives.Netcoreapp.cs" />
36-
<None Include="System.ServiceModel.Duplex.cs" />
37-
<Compile Include="System.ServiceModel.Primitives.netframework.cs" />
38-
</ItemGroup>
3919
</Project>

0 commit comments

Comments
 (0)