Skip to main content
The 2024 Developer Survey results are live! See the results

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.

class-library
2 votes
1 answer
1k views

Get instance of $CI in Codeigniter's Exception library

I just want to run $CI =& get_instance() in Exception library of Codeigniter, but it's not running there. While other Classes in the Library folder are able to create the instance, the Exception ...
0 votes
0 answers
24 views

I want to encrypt my Localdatabase and my application involves xamarin.forms,xamarin.mac,and a classlibrary. I am using package sqlite-net-sqlcipher

STRUCTURE: I am using xamarin.forms and Cocoa app(xamarin.mac) in integration with it. My xamarin.forms deals with all the UI, and the Cocoa app(xamarin.mac) does interaction with all the mac API's. I ...
13 votes
9 answers
18k views

how to find java classes?

I am new to programming, I was wondering if there is a way to find the java classes I need for a particular thing other than asking people for them on forums? I have seen the APIs on sun website but ...
0 votes
0 answers
38 views

Send an email from SQL Server using CLR Assembly (microsoft modern authentication)

I have created a class library project to send an email using Azure.Identity, Microsoft.Graph. after that, I complied into DLL when I tried to create Assembly in SQL Server it threw error Assembly '...
0 votes
2 answers
1k views

C# DLL called from Python

I recently created a dll using a C# "Class Library" Project in Visual Studio. This project simply takes in input two integers and returns their sum; if I try to call this dll from a C# ...
0 votes
1 answer
67 views

How to register DI Services in .net core class library?

I want to add some services in my class library project and I found some ways on Google for this https://mcguirev10.com/2018/01/31/net-core-class-library-dependency-injection.html. However, I don't ...
5 votes
4 answers
5k views

Best practices to turn a .NET class library into a multithreaded .NET class library

I have some C# class libraries, that were designed without taking into account things like concurrency, multiple threads, locks, etc... The code is very well structured, it is easily expandable, but ...
0 votes
2 answers
470 views

C# NUnit testing using class library

I am new NUnit and am having trouble accessing methods from my main project in my test project. Specifically the MyMath class. main class public class MyMath { public int Add(int a, int b) { ...
0 votes
0 answers
63 views

Load Class library dll in powershell

I have made a C# Class Library that has some NuGet packages installed in it, like Azure.Core. When the library has been compiled, I get my library as a MyLibrary.dll which is all fine. The only files ...
42 votes
15 answers
54k views

Java Array sort: Quick way to get a sorted list of indices of an array

The problem: Consider the following floats[]: d[i] = 1.7 -0.3 2.1 0.5 What I want is an array of int[] that represents the order of the original array with indices. s[i] = 1 3 0 ...
0 votes
1 answer
69 views

How to debug a Library using Windows Store App

Is it posible to debug a Portable Class Library in Visual Studio 2013 using a Windows Store App? So far, I had to close the current solution containing the library then I had to open another (...
18 votes
7 answers
21k views

How can I make a .NET class library read its own configuration file?

I have a .NET class library that provides a set of helper functions that are used by several Web Services. This class library must store a single setting, specifically, a connection string, which need ...
0 votes
1 answer
90 views

.NET Framework 4.5.2-based Console application compatibility problems with .NET 6-based Class Library project

Here is the info associated with the development environment: I have a Console project created using: Microsoft Visual Studio 2019 Enterprise .NET Framework 4.5.2 C# 5.0 I have a Class Library ...
0 votes
0 answers
20 views

Mah apps resource not found in a wpf class library

My application is using a wpf library (uilib.vcproj) which itself uses another ( corelib.vcproj). In coreLib a resource dictionary (MahAppsMetroStyles.xaml) exist whic define mah app style and it s in ...
0 votes
3 answers
3k views

How do I add a class library here in Microsoft Visual Studio Code?

enter image description here I don't know how to add a class library here, how does it turn into this? enter image description here I am really lost right now since our prof did not teach much about ...
-1 votes
1 answer
157 views

How to create a class library (c#) in visual studio code using .net 4.7 version

I am trying to create a class library from visual studio code, as i cannot use visual studio because of some organizational limits. So when i tried to create the class library i was able to use the c# ...
0 votes
1 answer
166 views

How can I log to a specific file path with log4j2 in a library?

I have a Java Library (SDK) that will be consumed as a JAR in other applications. I'm using log4j2 and SLF4J to log right now, but when my library is consumed by the other application (also using ...
0 votes
2 answers
2k views

How do I remove NuGet "association" with the project in Visual Studio?

NuGet was used to manage packages for one of the class library projects in Visual Studio 2015. Now, NuGet is not needed to manage the packages for this project anymore and I also need to remove ...
9 votes
3 answers
22k views

Log4Net Error: Failed to find configuration section 'log4net' in the application's .config file

I currently use a class library to store a class that handles logging using log4net. This class is used in other projects. I've read a lot of other questions and answers, but I haven't been able to ...
0 votes
1 answer
160 views

Error adding a WinUI 3 class library reference to a WinUI 3 blank app

First I create a blank Visual Studio Solution, then a add a WinUI3 class library(dll) project and then i add a WinUI3 blank app project. In this stage both the project compile without errors Now I go ...
0 votes
1 answer
174 views

How can I horribly twist a C# project to read its class library's app.config files

So let me start off by saying "I know this isn't a best practice" and that I do not want to add the information from the app.config files to the web.config file... I've got a project that is ...
0 votes
1 answer
95 views

How to send data between Class Library and Winforms (both are different projects)

I'm currently working on a scenario where I am developing an activity for UiPath. The class library is a project setting where I am creating this activity. Specifically, for this activity, I am using ...
0 votes
1 answer
211 views

What's wrong with my Class Library? 'Fatal Execution Engine Error'

I am trying to make an Plug In for Navisworks manage that will rename a batch of selected clashes with a prefix or suffix. I am running this on Visual Studio. using Autodesk.Navisworks.Api; using ...
0 votes
0 answers
56 views

Class library is not found while building the ASP.NET Core 7 Web API with Github Actions

I wrote this dotnet.yml to build my application and push the docker image to docker hub, placed in the root of my project under the folder .github/workflows/. name: .NET Docker CI/CD on: push: ...
0 votes
0 answers
67 views

Error on BlazorWebView and Class Library with Winform

I have a class library (CL) project which has a class I register to COM. This CL has a project reference to a Razor Class Library which has some components I want to show on a Windows Forms dialog ...
2 votes
1 answer
505 views

Source Generators for class library project in c#

Is this possible to generate code with Source Generator in c# into class library project? I would like this auto-generated code to be packed into Nuget package then. When I try to build a project made ...
0 votes
1 answer
461 views

Blazor WebAssembly stuck on Loading... when configuring dependency injection for a class library

So I built a class library that I will use for various different projects in the future. Now when I want to implement it and set the options in my Program.cs file, my blazor app gets stuck on the ...
1 vote
2 answers
583 views

How to get the Type of a class in Main Project through a class in Class Library Project

I have a class library project which is attached to a main project and in this class library project I have a class named SQSQueueScheduler.cs under this class I have written the below code Contacts ...
0 votes
0 answers
21 views

Blazor a Class Library reference in the WebAssembly client is failing to connect .NET 6

I have a folder called Services; it is in fact in program.cs and a simple GET localStorage operation works fine. Now I am adding another function in the same file (Cache). This function needs to Set ...
0 votes
0 answers
126 views

Shared class library - MAUI and ASP.NET Core

Is it possible to share a class library between a .NET MAUI app and an ASP.NET Core app? I have an API and MAUI api that share the same model which I would like to put into a class library but I can't ...

15 30 50 per page
1
2 3 4 5
35