Skip to main content

All Questions

Tagged with
0 votes
1 answer
56 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 ...
shah Taymur's user avatar
-1 votes
1 answer
139 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# ...
Roshan K S's user avatar
0 votes
0 answers
65 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 ...
alexxchela's user avatar
2 votes
1 answer
494 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 ...
user avatar
0 votes
0 answers
21 views

NU1102 Unable to find package Communications.Interface with version (>= 6.0.0)

I have a .net class library called Communications.Interface, this is the .csproj of this project : <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework&...
Faouzeya's user avatar
  • 301
0 votes
1 answer
186 views

Reference to System.Windows.Forms in .net7.0 class library project

I need to add a reference to System.Windows.Forms in class library project written in .net7.0 that will be distributed in NuGet for my young students. How can this be done? The class that I want to ...
Eikey's user avatar
  • 29
-1 votes
1 answer
657 views

C# Run Class Library

I am building a C# project in Jetbrains Rider. When the project is finished, I want to include it in another project by building a dll and adding the dll to the project. To generate a dll, I need to ...
Zeek Joseph's user avatar
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
1 answer
653 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
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
-1 votes
1 answer
514 views

Quartz .net 6 : Execute method does not work

Exetuce method in Ijob is not triggered. class library code: public static async void Start() { try { using (var dbContext = new SqlDbContext()) ...
Batu han's user avatar
0 votes
2 answers
160 views

Can I use the same function in different ASP.NET pages?

protected void DropDownMainProduct_SelectedIndexChanged(object sender, EventArgs e) { string mainProductCode = DropDownMainProduct.SelectedValue; if (mainProductCode == "0") { ...
user avatar
0 votes
1 answer
421 views

Unable to build a multi-targeting .NET library for net20 and net35 after switching to Visual Studio 2022

Recently I've moved to using Visual Studio 2022, while uninstalling my previous IDE (Visual Studio 2019). I work on a class library project which uses the multi-targeting feature of the new SDK-style ....
stackh34p's user avatar
  • 8,959
14 votes
1 answer
5k views

What's the difference between a MAUI class library and a normal class library?

As far as I can tell a MAUI Class Library is a class library in .NET 6, where you can inject platform specific code. But is there really any other difference between a MAUI library and a .NET 6 ...
GottaLovePizzas's user avatar
0 votes
1 answer
806 views

How to reference .Net 6.0 project from WinUI 3 project?

I have a .NET 6.0 C# class library project that contains platform-independent code (let's call this BusinessLogic). In my same solution, I would like to create a project for a WinUI 3 app that ...
Michael Kintscher they-them's user avatar

15 30 50 per page
1
2 3 4 5
14