All Questions
Tagged with class-library .net
46
questions with no upvoted or accepted answers
4
votes
1
answer
6k
views
System.Runtime.Remoting.RemotingException: Requested Service not found
I have the following code in my Web.Config in a remoting project which is having a reference to a dll of another class library. The class library has the following class inside it:
public class ...
3
votes
0
answers
4k
views
How can I import Class Library and it's dependencies?
I've created a Class Library and it has 2 NuGet dependencies. When I build the library, the .dll is generated and I can successfully reference it on other project using the "Add Reference" option on ...
3
votes
1
answer
109
views
Creating embed resource for explorer
I am trying to embed some icons on my DLL, but somthing is not correct.
Using .NET4 and VS 2010 and Windows7 x64
I have this satellite DLL (Class Library). I Add the Resource file and the my icons.
...
2
votes
0
answers
850
views
.net Standard 2.0 class library produce error when adding reference
Created a .net Standard 2.0 class library, and then used it in a console application created by targetting .netframework 4.6.1 and dot net core 2.1. when running web application the blow exception ...
2
votes
1
answer
104
views
Class Library shared between an UWP app and a Bot Framework chatbot
I want to create a Class Library .dll that I want to include in my UWP app and my Bot Framework chatbot, that includes newtonsoft json dependencies. From what I can see this is just not possible. If I ...
2
votes
1
answer
3k
views
Adding Service Reference to WCF does not always create .datasource files
In some projects when I add a service reference to a WCF service, it creates datasource files for classes shared in a common class library, however in others the datasources are not created. The ...
2
votes
0
answers
327
views
Excel add-in with service reference in class library fails to connect
I have created an Excel 2010 VSTO Add-in in visual studio (c#). The add-in uses a class library that has a service reference to a wcf service. The same wcf-service is also referenced in the add-in ...
2
votes
0
answers
117
views
Add project reference , work only before build
i got a winforms application and 2 lib projects
i'm adding project reference to the winform project for both lib projects
with one of the lib projects i got a strange problem.
I'm adding Project ...
1
vote
0
answers
106
views
Creating .NET/.NET Core/.NET Standard C# Class Library on the fly for testing purpose
I'm developing a tool that updates some C# (Class Library) projects' properties programmatically.
At the moment unit tests are based on projects that already exist in a solution path, but, for ...
1
vote
1
answer
1k
views
Autofac resolve within class library
I have a web forms application (myWebForms)
I have a class library project (myClassLibrary) that has a class called "myClass"
WebForms references myClassLibrary
I have added Autofac references to ...
1
vote
2
answers
2k
views
Class Library .NET Standard and mscorlib.dll
I created new project: Class Library .NET Standard 1.4 where I want to use 'Thread' class.
I need to add _Thread reference to a mscorlib.dll. Later I can't compile project, because I have error ...
1
vote
1
answer
2k
views
Access asp net core application connection string from another project
I have a ASP NET CORE project, where I have a connection string and my dbcontext is in a .net 4.52 class library project. I would like to know how to access the connection string from the asp net core ...
1
vote
0
answers
138
views
How to separate concepts within one .NET class library
I like how concepts can be separated when solution is split into multiple class libraries. For example:
System.IO.csproj, Stream class
System.IO.Net.csproj, NetworkStream class
...
1
vote
1
answer
472
views
Nuget packages not restoring correctly when Copying and including .NET projects from one solution to another
I have a need to copy a .NET project / class library from one solution to another.
Does a copy/paste and subsequent inclusion of the project in the new solution suffice?
Or are there any caveats?
(...
1
vote
0
answers
279
views
Mixed mode assembly issue in a class library
I have a common problem with a unique twist. I am running VS2010 and using a cluster of 3rd party DLLs that must have been compiled in a previous framework. Of course I get the following error:
...