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
0 votes
0 answers
49 views

ServicePointManager not initialised when in CLR class library?

I've inherited a CLR class library (.NET Framework 4.7.2) that provides a function which queries table storage in Azure. The function, called from a native C++ executable, is currently failing because ...
Eleco Martin's user avatar
0 votes
0 answers
26 views

MAximDL plugin fails accessing filesystem

I want to write the x,y, coordinates of a dragRectangle to a certain line in a text file(help.txt) by executing a plugin dll. Compilation runs fine. Writing is executed by sub ChangeFile. The plugin ...
autoguider's user avatar
0 votes
0 answers
71 views

create dll for MaxImDL VB.Net - mainly solved

Found partial Solution: I ran Visual Studio 2019 as administrator. Then I copied Interop.MAxIm.dll to the program directory that contains Maxim_dl.exe. The plugin can now be loaded manually and adds ...
autoguider's user avatar
0 votes
1 answer
2k views

Failed to AOT compile MyLibrary.dll, the AOT compiler exited with code 1 (ProjectName)

I have a MAUI application (.NET 7) referencing a custom class library (.dll) with an EF Core infrastructure (.NET 6) which nicely compiles and deploys in Debug mode on all platforms. Unfortunately, ...
ImproveSoftware's user avatar
0 votes
1 answer
656 views

Where do I perform startup in a .NET class library?

Haven't done .NET for years, getting back into it. I would like to know where I perform startup in a class library I am developing. This class library will have several different HttpClients, and I ...
serlingpa's user avatar
  • 12.5k
3 votes
1 answer
3k views

Cannot See Class Library (.NET Core) in Visual Studio 2022 while adding/creating new class library projects

I have .NET Core 6 SDK, Runtime Installed in my System. Visual Studio Workload Components Installed: Web & Cloud: ASP.NET Web Development Azure Development Desktop & Mobile .NET Desktop ...
user avatar
2 votes
1 answer
877 views

.Net Maui Balzor App crashes during startup on local ios device

Currently I try to program a ios mobile app with .net maui. This app works in the ios simulator, android simulator and on the windows machine itself. But when I try this app with a local ios device ...
Stottis's user avatar
  • 33
0 votes
0 answers
59 views

C# Show Class Library from another Project

Here are the steps I have used to create the winforms Project OneB Using Visual Studio 2019 with Net 4.8 I created OneB Then I created a Windows Forms Class Library named CLP. Opened OneB and Added ...
Vector's user avatar
  • 3,193
0 votes
1 answer
447 views

.Net 6.0 Web SDK class library creation

We've got a class library we've built internally that, among other things, exposes some HTTP clients specifically for authorizing other requests (acquiring/refreshing tokens, etc.). Until now, it has ...
Matt Mills's user avatar
  • 8,752
0 votes
0 answers
86 views

Static Class returnig null in C# class library

I have a solution that has 3 projects. Using visual studio 2022 project 1: lib (console App) Class cAgvMgr - Manager class project 2 - Util(Class Library) Static Class named AgvMgvinterface Project 3 -...
Thomas Frink's user avatar
1 vote
3 answers
291 views

Custom dependency injection in a class library file

I am working on a project(asp.net mvc-5 with jQuery) in which whole validation is happening in front-end and we are executing APIs using $.ajax call, now as there are no validations on API level or ...
Ibrahim shaikh's user avatar
0 votes
1 answer
123 views

Asp.net c# Class library dlls right version not loading correctly

I created a class library and called id sharepointClassSample library. It has a reference to Microsoft.Sharepoint.Client.dll version 16.1.0.0 along other ones. I compiled the library and moved the ...
El Bayames's user avatar
0 votes
0 answers
125 views

How do I get the name of the project/assembly that called a class library from within the class library when a method logs an exception?

I'm not sure if this is possible, but I figured I'd ask before having to make dozens of changes to my code. Note that the class library is part of a nuget package and the project for it IS NOT ...
jason's user avatar
  • 2,239
0 votes
2 answers
199 views

Get custom configuration .cs file path in a class library project that is being referenced by a console application

I have a class library created with dot net core 3.1. There are two files which I am using for logging and reading appsetting.json file. For this I am using two custom class files respectively for ...
Kiran's user avatar
  • 51
2 votes
1 answer
171 views

Possible to increment DLL version automatically

I have a C#/VB .Net Class Library which is used in multiple projects. One of the issues we face is if a change is made to this Class Library it needs to be deployed to multiple projects. As you can ...
Computer's user avatar
  • 2,199

15 30 50 per page
1 2
3
4 5
69