runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Enable Serviceable attribute for assemblies and Nuget packages

Open gkhanna79 opened this issue 10 years ago • 13 comments

Details are in https://github.com/dotnet/corefx/issues/9072. We need to update:

  1. CoreCLR package to have the attribute
  2. Mscorlib and System.Private.CoreLib to have the Serviceable attribute.

@AlexGhiondea @weshaggard Is there anything else required?

CC @pgavlin @leecow

@schellap Can you please take a look at this asap?

gkhanna79 avatar Jun 06 '16 21:06 gkhanna79

@ericstj is there actual work to do here or was this handled by your previous change?

joshfree avatar Jun 08 '16 23:06 joshfree

Packages all have the attribute. @schellap can you double check that your IL has the assembly level attribute?

ericstj avatar Jun 09 '16 00:06 ericstj

Associated PRs:

https://github.com/dotnet/coreclr/pull/5575 https://github.com/dotnet/coreclr/pull/5547 https://github.com/dotnet/coreclr/pull/5584

gkhanna79 avatar Jun 09 '16 13:06 gkhanna79

can you double check that your IL has the assembly level attribute?

@ericstj Do you expect mscorlib facade and system.private.corelib to have the assembly level attribute? If so, @AlexGhiondea would need to make the relevant changes if they are not already done.

CC @weshaggard

gkhanna79 avatar Jun 09 '16 13:06 gkhanna79

.custom instance void [System.Private.CoreLib]System.Reflection.AssemblyMetadataAttribute::.ctor(string,
                                                                                                   string) = ( 01 00 00 00 00 00 ) 

Where is the serviceable attribute stored? This is what I see in mscorlib.dll in the packages.

schellap avatar Jun 09 '16 13:06 schellap

Here it is for System.Private.CoreLib.dll from runtime.win7-x64.Microsoft.NETCore.Runtime.CoreCLR.1.0.2-rc4-24208-03 same with RC3 packages as well.

  .custom instance void System.Reflection.AssemblyMetadataAttribute::.ctor(string,
                                                                           string) = ( 01 00 0B 53 65 72 76 69 63 65 61 62 6C 65 04 54   // ...Serviceable.T
                                                                                       72 75 65 00 00 )                                  // rue..

schellap avatar Jun 09 '16 13:06 schellap

My understanding is that assemblies, which need to be used on the Desktop, need to have these attributes. If so, then mscorlib facade and SPC.dll of CoreCLR should not be getting used on the Desktop (they are not PLibs), so servicing attribute on them should not be required.

Is that correct @ericstj and @weshaggard?

gkhanna79 avatar Jun 09 '16 14:06 gkhanna79

mscorlib.dll facade does NOT have the serviceable attribute. However, System.Private.CoreLib RC3 and RC4 have the attribute.

schellap avatar Jun 09 '16 14:06 schellap

@ericstj Is there any action item here?

gkhanna79 avatar Jun 09 '16 18:06 gkhanna79

Is that correct @ericstj and @weshaggard?

Yeah, if CoreCLR repo is not producing any assemblies which support deskop then you don't need the attribute.

ericstj avatar Jun 09 '16 18:06 ericstj

I dont believe there is any. @AlexGhiondea Can you confirm?

gkhanna79 avatar Jun 09 '16 19:06 gkhanna79

The only managed assemblies we produce are System.Private.CoreLib.dll and the mscorlib.dll facade which are not going to be consumed on Desktop.

AlexGhiondea avatar Jun 09 '16 19:06 AlexGhiondea

Closing...

schellap avatar Jun 09 '16 19:06 schellap