Skip to main content

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
1 vote
4 answers
102 views

How to clean up repetetive elements in a C# method?

I'm currently working on a .NET Core 3.1 application. I need to refactor a code smell to reduce method complexity - in my method there are lots of repetitive elements. All properties in my class are ...
Bender.'s user avatar
  • 71
0 votes
0 answers
602 views

How .DLL can access Connection string in .NET Core application?

I have one .Net Core Application, let's say somethingSite in which I have included one Class Library Project, let's say CommonActivity. In this Class Library project, I have referenced two DLLs, 1. ...
Mustakim Khalifa's user avatar
0 votes
1 answer
297 views

how to make UWP class library to support WindowsAppSdk apps

I have developed a UWP class library , and it is already used in various projects. Now I want to make this UWP class library to support WindowsAppSdk apps too. When I try to refer UWP Library in ...
Noorul's user avatar
  • 913
2 votes
0 answers
381 views

How to limit the number of requests in a certain period in the class library?

I have created a class library which having certain methods that get and post the API request to a third party (Hub-Spot) so Hub Spot API has some limitations as follows ***15 requests per second and ...
sarang lad's user avatar
2 votes
1 answer
540 views

How to inject one DotNet Core 3.1 Class library project into another DotNet Core 3.1 Class library project

I want to inject an interface(s) of my DAL project (Core 3.1 Class Library) into my Bll Core 3.1 Project. From reading, it seems I need to use the activator Utility? Is this the case or am I wrong in ...
Neal Rogers's user avatar
2 votes
1 answer
2k views

No service for type ' Microsoft.AspNetCore.Components.WebAssembly.Authentication.BaseAddressAuthorizationMessageHandler' Error

I am currently working on a project that consists of sub-projects such as WebApp, API, and Client class library. (The project structure is shown below). Project Solution Structure Although the project ...
Atakan's user avatar
  • 21
0 votes
0 answers
432 views

Why my class library is looking for specific version of the Microsoft.Bcl.AsyncInterfaces?

I have a class library in .NetFramework 4.8 for Redis which has nuget package: stackexchange.redis 2.1.58. This is the website(Link) which clearly states that library is dependent on Microsoft.Bcl....
Psychonaut007's user avatar
0 votes
0 answers
1k views

visual studio won't produce single file for class library

Whenever I build a console application in visual studio 2022 I can select "Produce single file" in publish settings and it will produce a single .exe file without any aditional .dll files. I ...
bartje's user avatar
  • 1
1 vote
2 answers
821 views

Embedding WebView2 Runtimes in .NET Framework Class Library With Fody Weavers

We have a class library (consumable by third-party apps not under our control, and deployed as a single file dll with embedded references) that previously used the WebBrowser control. That was a very ...
SteveCinq's user avatar
  • 1,954
0 votes
0 answers
284 views

Can't execute non static method from DLL using powershell

I'm currently trying to execute methods from a C# Class library .dll with a powershell script. This is the one and only class of my library: namespace DLLCalculator { public class Calculator { ...
GoldNova's user avatar
  • 345
0 votes
1 answer
626 views

How do I access the "importer" classes in a Class Library? (.NET MAUI/C#)

I have developed a .NET MAUI app for my company. To do so, I created some "Core" classes in the project that helped me develop the project. For example, I created a "Navigation" ...
VC JS's user avatar
  • 95
2 votes
1 answer
3k views

AutoMapper .net 6.0 not in service

I downloaded automapper to a separate class library. I want to use this automapper in web api. I want to add automapper to services in program.cs, but it gives the following error. Severity Code ...
Batu han's user avatar
0 votes
1 answer
207 views

Using Google.Cloud.Firestore in a .NET Class Library

I have a Class Library built in .NET Standard 2.1 that references Google.Cloud.Firestore installed with NuGet. The project compiles without issue. However, the output DLL does not contain Firestore ...
Austin Kugler's user avatar
0 votes
1 answer
131 views

Automatically write a code snippet for a specific method of my library

I'm writing a custom library and some interfaces in c# and it will be reused by other developers. Some of the methods of my library always require certain lines to work so I'd like to automatically ...
LexFerrinson's user avatar
0 votes
1 answer
90 views

Reference class libraries

A class library named KMS is referenced to another class library named KMS_.Data in my project. Following is code from KMS.csproj XML file: <ItemGroup> <ProjectReference Include="..\...
atch's user avatar
  • 9

15 30 50 per page
1
3 4
5
6 7
69