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,033
questions
0
votes
1
answer
394
views
I created class library in .net6.0 and added my ViewComponent.I want to access my viewcomponent Default page in asp.net core mvc application
Hi I created my classlib and added my viewcomponents to that library and I added DLL file of my class library to asp.net mvc application I can able to use class and models but I don't know how to ...
0
votes
1
answer
193
views
Custom Attribute For Class Library Classes and Functions in C#
I'm developing 3rd party API connector bridge in class library NOT in ASP.NET.
User Levels
API has 3 user levels, lets say:
UserGoer
UserDoer
UserMaker
Service Restriction
Each API operation can ...
2
votes
4
answers
1k
views
develop shared library alongside another project without having them be in the same solution
Let's say I have a c# project Foo and a classlibrary called Bar
I'm wanting to develop Bar alongside Foo which will use Bar as a shared library. I'd like to keep these Foo and Bar in their own git ...
-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())
...
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")
{
...
0
votes
0
answers
286
views
C# - Errors with dependencies in class library
So, i'm pretty new to Class Library.
I was asked to develop a C# class library that should be used by a third-party software, i first created it with .NET 6.0, everything worked fine but the third ...
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 ....
-2
votes
2
answers
2k
views
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&...
0
votes
0
answers
49
views
How to format dynamically generated HTML?
I'm generating large dynamically HTML that is saved in some .html file. Now the file looks like this:
<html lang="en">
<head>
<meta charset="utf-8">
<...
-2
votes
2
answers
63
views
Getting always a zero when I execute - c# [closed]
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
{
...
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 ...
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 ...
0
votes
0
answers
144
views
Returning string from class library using Nuget package "NetCoreServer"
I am writing a Windows Form application (TCP Client) using the Nuget package "NetCoreServer".
I have implemented the methods specified in the example "TcpChatClient", see: ...
2
votes
0
answers
145
views
Microsoft Windows WebView2 in FormsControlLibrary
I've tried using the "new" WebView2 Control inside of a custom UserControlLibrary in order to get a .dll out of it.
I've used it inside of a normal Forms App where it works flawlessly.
Just ...
0
votes
1
answer
149
views
WPF - Use static resource in multiple windows [duplicate]
I have an application with many Windows, and I want to use the same templates and styles in all of these windows.
Warning: This is NOT a "WPF Application", it's a "class library" ...