Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

AllowPartiallyTrustedCallers attribute missed after merge #28

Open
RusKnyaz opened this issue Oct 17, 2017 · 1 comment
Open

AllowPartiallyTrustedCallers attribute missed after merge #28

RusKnyaz opened this issue Oct 17, 2017 · 1 comment

Comments

@RusKnyaz
Copy link

Assemblies initialiy compiled with [assembly: AllowPartiallyTrustedCallers] lost this attribute after merge.
Steps to reproduce:

  1. Create new class library project (targetFramework: 3.5)
  2. Add line "[assembly: AllowPartiallyTrustedCallers]" to AssembliInfo.cs
  3. Call ILMerge by "Ilmerge /out:out.dll ClassLibrary1.dll /targetplatform:v2" command
  4. open out.dll in ILSpy or Reflector or any other tool
    Observed: there is no 'AllowPartiallyTrustedCallers' assembly attribute
    Expected: AllowPartiallyTrustedCallers attribute should be specified for the assembly (like in original ClassLibrary1.dll).
@cwellsx
Copy link

cwellsx commented Dec 12, 2017

I found the source code which implements this restriction (it's easy to find), and posted on StackOverflow to ask why this restriction was introduced into the code -- Why does ILMerge delete security-related attributes?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants