soziapath
System.Private.ServiceModel not found
I've been using a library for opcua and haven't had any problems until now, didn't change anything in dependencies, but suddenly, I get the error during runtime that the System.Private.ServiceModel is not found. When I add a reference to the exact same version as the one that the error message is indicating, it is telling me that there is a conflict:
I honestly have no idea what the problem is, I've had a similiar problem before with System.IO.Ports, but that somehow dissapeared at some point.
When I do a clean build without the reference to System.Private.ServiceModel, I also don't get the dll in the output directory, despite it being referenced by the other package, and if I look at older releases, the dll was always present.
This has been bugging me for a whole day and the only workaround is to manually copy the dll or add the dll to the project (which in my opinion is ugly as hell)
Hope somebody might know what the problem could be. Thanks in advance.
98 replies
❔ Roslyn compilation error (dynamic keyword)
Hello everyone,
I'm pretty new to C# and had to start using it due to my new job. In the project i'm working on we use quite a lot of autogenerated code that is compiled using roslyn. So I decided to look at it some more and try using it in a couple example projects. But I've encountered a problem compiling code in roslyn that uses dynamic objects.
The following code gives the compile error:
And the error message is:
10 replies