Skip to content

[SBRP] Add netcoreapp3.0 to 4.7.0 System.Security.Permissions #2438

@MichaelSimons

Description

@MichaelSimons

This is needed for the following runtime error:

  /repos/tarball1/src/runtime.c300b096419523024f2b807ec9db3c2d91df0298/artifacts/source-build/self/package-cache/microsoft.dotnet.cilstrip.sources/6.0.0-beta.21430.1/contentFiles/cs/netstandard2.0/Mono.Cecil/SecurityDeclaration.cs(54,10): error CS0433: The type 'PermissionSet' exists in both 'System.Security.Permissions, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/repos/tarball1/src/runtime.c300b096419523024f2b807ec9db3c2d91df0298/artifacts/source-build/self/src/src/tasks/ILStripTask/ILStrip.csproj]
  /repos/tarball1/src/runtime.c300b096419523024f2b807ec9db3c2d91df0298/artifacts/source-build/self/package-cache/microsoft.dotnet.cilstrip.sources/6.0.0-beta.21430.1/contentFiles/cs/netstandard2.0/Mono.Cecil/SecurityDeclaration.cs(42,3): error CS0433: The type 'PermissionSet' exists in both 'System.Security.Permissions, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' [/repos/tarball1/src/runtime.c300b096419523024f2b807ec9db3c2d91df0298/artifacts/source-build/self/src/src/tasks/ILStripTask/ILStrip.csproj]

The PermissionSet class was moved from System.Security.Permissions.dll to System.Runtime.dll. The two referenced assemblies are not coherent.

When building in the tarball the following assemblies are used:
/reference:/repos/tarball1/src/runtime.c300b096419523024f2b807ec9db3c2d91df0298/artifacts/source-build/self/package-cache/system.security.permissions/4.7.0/ref/netstandard2.0/System.Security.Permissions.dll
/reference:/repos/tarball1/.dotnet/packs/Microsoft.NETCore.App.Ref/6.0.0-rc.2.21423.6/ref/net6.0/System.Runtime.dll

When building the runtime repo outside of source-build, a netcoreapp3.0 version of System.Security.Permissions.dll is used.

A workaround for the ILStrip.csproj is to exclude it from source-build since it does not appear to be required.

Metadata

Metadata

Assignees

Labels

area-prebuiltsReducing the number of prebuilt packages in the tarball

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions