Comments (10)
Can you elaborate on your use case? Microdot is typically used all the way from the entry point of the service, and therefore isn't usually referenced by another signed assembly.
from microdot.
Sure thing. I have been working on a POC of our services contained within microdot. Based on your getting started project I created an Auth Service. Once I built the structure with mock endpoints everything was fine and dandy. However, as soon as I incorporated any of our (signed) internal assemblies (such as data access) I was no longer able to run the service due to the above-mentioned error. So to be clear Microdot is the container for existing service logic, that is dependent on core assemblies that are signed.
from microdot.
So your internal signed assemblies have no references to Microdot assemblies?
from microdot.
No, but I do have to tell my assemblies to expose internals to the grains and server project. Likely this is the issue.
from microdot.
From what I know signing is only required down-level, so if a signed assembly (like yours) was only compiled with references to other signed assemblies (such as the .NET Framework) then unsigned assemblies (like Microdot) can reference it without needing to be signed themselves. So I don't understand why you're getting that error.
Could you use an automatic signing tool for like this?
https://brutaldev.com/post/NET-Assembly-Strong-Name-Signer
Or perhaps use an unsigned version of your assemblies?
from microdot.
I will give it a go later today.
from microdot.
It's just that strong-named assemblies aren't very compatible with open-source, so we'd like to avoid them:
If you can simply unsign your own assemblies, it'll save you some trouble.
from microdot.
Adding this line of code to my database project cauases the problem.
[assembly: InternalsVisibleTo("SecurityService.Grains, PublicKey=" + SystemValues.PublicKey)]
I understand what your saying Allon, the nuget package does not appear to do the trick. Unfortunately, unsigning my assemblies is not an option. As I mentioned its a POC so I can find a way to work around this hiccup.
from microdot.
Have you managed to resolve the issue?
from microdot.
I marked it as closed as I can sign the assemblies myself rather than place the burden on this framework.
from microdot.
Related Issues (20)
- questions/discussions HOT 36
- .NET Core 2.0? HOT 14
- how to use consul in microdot? HOT 2
- Does it load balance? HOT 1
- Do you have a plan to add wiki pages? HOT 1
- About the value of ConsulEndPoint.HostName HOT 1
- Spelling Mistake in description HOT 1
- the best way HOT 4
- Lack of Documentation HOT 5
- how to publish on docker HOT 1
- Status on .NET Core HOT 3
- Help with inventory sample
- ServiceProxyProvider HOT 1
- Cannot build Microdot Solution HOT 1
- Is this project still maintained HOT 4
- [rl-assigned_teams-2] Violation against OSS Rules of Play
- [rl-assigned_teams-3] Violation against OSS Rules of Play
- [rl-reuse_tool-1] Violation against OSS Rules of Play
- Cannot build HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microdot.