Enable Serviceable attribute for assemblies and Nuget packages
Details are in https://github.com/dotnet/corefx/issues/9072. We need to update:
- CoreCLR package to have the attribute
- 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?
@ericstj is there actual work to do here or was this handled by your previous change?
Packages all have the attribute. @schellap can you double check that your IL has the assembly level attribute?
Associated PRs:
https://github.com/dotnet/coreclr/pull/5575 https://github.com/dotnet/coreclr/pull/5547 https://github.com/dotnet/coreclr/pull/5584
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
.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.
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..
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?
mscorlib.dll facade does NOT have the serviceable attribute. However, System.Private.CoreLib RC3 and RC4 have the attribute.
@ericstj Is there any action item here?
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.
I dont believe there is any. @AlexGhiondea Can you confirm?
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.
Closing...