Closed unchannam-xx closed 6 years ago
Hi,
Yes, it's normal. Some Types are marked as internal for code security. If you want to recompile the code you need :
Your own key to sign the different assemblies (aka mykey.pfx).
You must generate a public key for these assemblies, you can fin explainations inside assemblyInfo.cs This is required to use the InternalsVisibleTo attribute To Generate PubliKey
1.
sn -k FriendAssemblies.snk
Or
sn -k FriendAssemblies.pfx
2. sn -p FriendAssemblies.snk FriendAssemblies.publickey Or sn -p FriendAssemblies.pfx FriendAssemblies.publickey
3. sn -tp FriendAssemblies.publickey
[assembly: InternalsVisibleTo("Neos.IdentityServer.MultiFactor, PublicKey=0024000004800000940000000602000000240000525341310004000001000100136c66e4526621536817a4316e736760a2c6511c4ad8944be23e694c66bf6d91632687c3d52912d1dcb33bbf8970966dc85872649dbd11d6e326f8801f5748c162a9e0a0f0e5a5ccc05d9f5e40d75330a6fb3950dd4304c77f453b9cbbc36919de99e2b88aef1ba71bc5d4dc9d81243cd9f5fc6ede161ae639fd60e20bb264c0")]
[assembly: InternalsVisibleTo("Neos.IdentityServer.MultiFactor.Administration, PublicKey=0024000004800000940000000602000000240000525341310004000001000100136c66e4526621536817a4316e736760a2c6511c4ad8944be23e694c66bf6d91632687c3d52912d1dcb33bbf8970966dc85872649dbd11d6e326f8801f5748c162a9e0a0f0e5a5ccc05d9f5e40d75330a6fb3950dd4304c77f453b9cbbc36919de99e2b88aef1ba71bc5d4dc9d81243cd9f5fc6ede161ae639fd60e20bb264c0"}]
I tried to compile the source code in vs2017 but failed. Did I miss something? Thanks.
Environment: VS2017 .net framework 4.6.2 Windows Server 2016 and ADFS a self-signed cert (Neos.IdentityServer.pfx).