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.

A collection of classes combined into a unit maybe distributed by a third party. It may have dependencies to further libraries.

Frameworks usually use this quite a lot.

1024 questions
-1
votes
3 answers

timezone converter in c#

How do I write a timezone converter library in c#? or is there an existing timezone class I could use? I will need the timezone database and be able to use it to calculate/convert from one UTC timezone to another timezone.
001
  • 62,807
  • 94
  • 230
  • 350
-1
votes
1 answer

share class library to other solution but readonly asp.net

hi i have to 2 solutions this is the first one(ProjectB) my goal is to reference the ProjectB.Core to my other solution (ProjectA) but it needs to be read only or visible false i successfully referenced it using add existing project but i can edit…
-1
votes
1 answer

Empty DLL, Class library C#

I have created a class library to be used in a other project (which is not a .Net project), i have built the solution the dll file was generated, but when i try to explor my dll using dllexp i foud that it's empty. My class is declared public as…
cascadox
  • 893
  • 4
  • 14
  • 32
-1
votes
2 answers

Open window in C# class library project

I am still new and learning C# as I go. My question is generic, so let me know if I can be more specific in any way. I am moreover looking for guidance/examples to go off of or even a simple solution to build from. I have a class library that is…
SeanDon
  • 83
  • 1
  • 12
-1
votes
1 answer

C# Class returns null object

I have a class library, and I'm debugging it with a console app. This works perfectly. The class is intended to be used with an existing Windows service on a server. I don't have a great deal of access to the server. I update the service to…
Randy Hall
  • 7,716
  • 16
  • 73
  • 151
-1
votes
2 answers

Resharper mark red using statement to use class library in asp.net core

I created class library, created Web Application project, then add reference to the class library in the Web Application project as explained here, but can't add "using" for it. (the namespace of customer.cs is also "CDemoLib") (when i added "using…
arielorvits
  • 5,235
  • 8
  • 36
  • 61
-1
votes
1 answer

ASP.NET : How to Manage State in Class Library?

I have an ASP.NET MVC 6 application with a few class libraries (.NET 4.6.1). Now I want to pass the values between the asp.net application and the class libraries. For example I want to access UserId (that is inside a session) from the class…
Ali Borjian
  • 941
  • 10
  • 18
-1
votes
1 answer

Can you use the Typewriter Visual Studio plugin in a Windows Class Library?

There is a Visual Studio plugin called Typewriter that helps produce TypeScript files from C# files. I am doing this so I can have similar model classes on the front end of a web application as well as the back end. The back end portion needs to…
-1
votes
1 answer

c# create program using function to generate multiplication table using [Class Library] and test the function with different scenarios [NUnit]

Hi I need a little help creating a simple program that will Generate multiplication table (using for-loop) by using Class Library from VS C#. I have here below the incomplete code for the for-loop but I got lost coz it's a bit different than…
Josh
  • 29
  • 1
  • 8
-1
votes
1 answer

The type or namespace name 'Office' does not exist in the namespace 'Microsoft'

I am getting this error message using Microsoft.Office.Interop.Word namespace in C#. All references have been added but still getting this issue.
Arslan Bhatti
  • 193
  • 1
  • 2
  • 12
-1
votes
1 answer

Could not load file or assembly 'ParserBuilder'

When I run my .exe file its showing below mentioned error in console. so any idea how to solve it.ParserBuilder is my class Library. Here is the error : System.IO.FileNotFoundException: Could not load file or assembly 'ParserBuilder',…
stest
  • 25
  • 6
-1
votes
1 answer

How to call a .aspx page from class library?

I have an .aspx page in a project. There is another class library project in the same solution which runs as a batch. I want to call this aspx page from this class library, get its html page, convert it to pdf and save it on the drive. what is the…
user1860689
  • 31
  • 1
  • 4
-1
votes
1 answer

C# Class Library

I want to develop a class library in C# whose methods I would call in a hierarchical way, like this: using MyProduct.Common; protected void Page_Load(object sender, EventArgs e) { Utils myUtils = new Utils(); int res =…
paezinc
  • 339
  • 1
  • 3
  • 13
-1
votes
1 answer

How to access the methods in .lib file in Win 32 console application

I am trying to access the .lib file using visual studio 2012. below are the steps I followed Created a class library, and included header(.hpp) and .lib file Header file :- extern "C" unsigned int GetKey(); Class library public: static …
-1
votes
2 answers

Plugin - Using Task class in .Net 4.0 workaround

I'm writing a plugin for in-app purchases for my unity game which needs to use the .Net 3.5 framework. So going from the docs ref: unity WP8 plugin-docs It states: "...implement identical non-private methods/fields/properties as in the real DLL" So…
Lee Brindley
  • 6,242
  • 5
  • 41
  • 62