Questions tagged [class-library]

A collection of classes combined into a unit maybe distributed by a third party. It may have dependencies to further libraries.

A collection of classes combined into a unit maybe distributed by a third party. It may have dependencies to further libraries.

Frameworks usually use this quite a lot.

1024 questions
-1
votes
2 answers

Forcing WCF to pay attention to app.config settings in a class library

Let me start out by saying that I'm aware that the way a class library is supposed to get its configuration is from the referencing project's configuration. In my case, the referencing project is an MVC web application. Whilst this usually makes…
Jez
  • 27,951
  • 32
  • 136
  • 233
-1
votes
1 answer

Control Assembly add reference

Suppose that i have a ".dll" file genereared from a class library and i want this class library to be referenced by certain projects that i have but if someone else wants to reference that class library to his own projects he won't be able to do…
-1
votes
2 answers

DLL file usage not allowed to others in C#

I have a solution consisting of about 10 important DLL files which are developed inside the same solution, when I release this solution, all the DLL files (public classes and functions inside) are open and usable to all others. How can I make the…
Moh
  • 1,887
  • 3
  • 18
  • 29
-2
votes
2 answers

Creating classical Properties.Settings in .Net 6.0 (Core) "Class Library" projects

Created a new "WPF Application" .NET 6.0 project There creating classical Application Settings was easy in project->properties->Settings->"Create or open application settings" Observed: the project gets a new folder "Properties" which has a yellow…
Stefan Wuebbe
  • 2,109
  • 5
  • 17
  • 28
-2
votes
2 answers

Getting always a zero when I execute - c#

So I'm doing something stupid in my class solution because I am expecting a number but I get a zero. The code is as follows: class Spel { private int _nummer1; public int Nummer1 { get { return _nummer1; } set { _nummer1…
Tuur
  • 3
  • 2
-2
votes
1 answer

Creating a Table from a list of objects c#

I have Class of people that look like this: class Person { public string firstName { get; } public string lastName { get; } public int age { get; set; } public Person(string firstName,string lastName, int age) { …
egg33
  • 99
  • 5
-2
votes
1 answer

What is the best way to add class library in C# project?

I have a project and I have created a custom class library for this project. Now, my problem is I know how I can add a reference of the custom library and add its .dll. But, whenever I'll try to make any change in the library, I'll make changes and…
Charu
  • 40
  • 4
-2
votes
1 answer

Duplicated Namespace is created on dll

I'm creating a class library in VS2019 (VB.NET). In the project properties, I used this root namespace: Customer.App.Classlibrary When I'm compiling and using this library in another project, I need to import it as Import…
-2
votes
2 answers

Stack overflow exception with no recursion

I'm having trouble with a stack overflow exception but I can't tell what's causing the exception to be thrown. I'm using a class library that contains all the methods and objects I need and running it from a console application. Any help would be…
-2
votes
2 answers

Windows Service calling helper class inside class library

Good morning. I'm stuck trying to figure out how can I call a function inside a helper class from another part of the same helper class? The helper class I have is trying to use an SMTP Sending Helper class. Before I get too far into coding, I want…
bbcompent1
  • 494
  • 1
  • 10
  • 25
-2
votes
1 answer

FUNCTION not returning required value

I have created a class library which generates a number everytime i use it in any other Windows application and the number gets updated everytime i use it. public int Generate_num(string P_PRM_TYPE) { try { int v_last_no = 0; …
A.Tiwari
  • 1
  • 3
-2
votes
1 answer

How can i make a pictureBox move around with the use of Buttons?

I have placed my Picture Box in the center of my Form, but I don't know how to make it move with the use of buttons. I need to use a Class Library in the process, so my guess is that using if structure is out of the question?
Exios Lucros
  • 1
  • 1
  • 1
-2
votes
2 answers

How I can use my classlibary in my ASP.NET Application?

I have a problem with my own classlibary "tarasov_lib.dll". I have a ASP.NET Application and I make a reference to my tarasov_lib.dll and if I test the webapp local it works fine but i make a websetup and install the application in my IIS on a other…
Tarasov
  • 3,625
  • 19
  • 68
  • 128
-3
votes
2 answers

Hide Class Library Enums from applications

I am using a Public Enum in a Class Library that is used within different classes within the library. I don't want it exposed to any applications that use the Class Library. I tried changing it to Private, but it says it has to reside within a Class…
stigzler
  • 793
  • 2
  • 12
  • 29
-3
votes
1 answer

Adding dll to an azure function app project developing locally

I'm developing an Azure Function App locally using Azure SDK & local runtime. Along with the function App, I created a new project(class library) within the same solution because I want to share some common code between functions in same Function…
Sushruth
  • 155
  • 2
  • 11
1 2 3
68
69