class-library

Export Unmanaged Classes from a Visual C++ DLL?

When creating a DLL with Visual C++ 2008 I have a couple of choices. I can create a "Class Library", which I understand will actually give me a .Net Library that uses the CLI (managed) extenstion of C++. Since I don't want that, and I assumed that I need a static .LIB file to link into another Visual C++ windows executable project, I c...

Nant: How to structure svn:externals for building class libraries that reference 3rd party dll's.

I'm using subversion and nant (and visual studio IDE) I've been following the suggested project structure at http://blog.jpboodhoo.com/NAntStarterSeries.aspx which advocates self contained subversion directories where a developer can do a checkout and immediately build a project in a single step. My repo structure is like: /Repo /Ma...

How to put LINQ to SQL in a separate project?

How can I put the LINQ to SQL generated classes in a dedicated DAL project so that I can access it from various other projects in the same solution? I.e. so I can use one for Web, and one for Windows Forms? ...

How can I use external JARs in an Android project?

I have created an Android project and added an external JAR (hessian-4.0.1.jar) to my project. I then add the JAR to the buildpath and check it of in Order and Export. Order and Export is ignored it seams, and all classes from the external JAR is missing in runtime. Is there a trick to properly include the needed classes from an extern...

using a DLL in a .NET applications

i want to add a class library to my project in C# 2008 and that class library is a wrapper for a C++ library. i added the reference to the .NET wrapper and it says io.notfind exception. i copied C++ DLLs to my project and again it says file not find exception. what can i do to fix this? the original C++ libraries where 2 DLLS that has li...

.tel .NET class libray

Do you know any .NET class libraries for querying data in .tel domains? The query/lookup should use the data stored in DNS (a bit tricky) rather than the webservices. I looked at some of the sourcecode on the Telnic developer area but I can't make much sense of it. ...

Reference appears as exluded in Visual studio.

Hi, I have created my own class library. I added the dll from that class library into my web application project. Everything works fine. I can call the classes from that lib etc... However when I open my bin folder from VS 2008, then I do not see my dll. I can see it only when I click "show all files" icon from the solution explorer. ...

asp.net MVC - Can I reference views from a class library?

In an asp.net MVC application, is it possible to reference views from a class library in the same way that it's possible to reference a class library of server controls or user controls in Web Forms asp.net? I've seen this blog post: http://padcom13.blogspot.com/2009/04/splitting-aspnet-mvc-application-into.html, although the method des...

Java/Eclipse equivalent of Visual Studio Console app + Class Library solution

I'm a .Net developer, but for my current project I have to create some Java code. I did some Java coding in the past (I even learned OOP using Java), but am new to Eclipse, which I have to use. I have to create a few Java console applications that share common functionality. I want to bundle that common functionality into one library (J...

In VB, How do you force an inherited class to use an attribute on the class?

I'm trying to force an inherited class to use a custom attribute. I'm creating a class library where the user who wants to create an item will do so, but be forced to add an attribute (or visual studio will automatically add the default attribute) to their inherited class. Here is what I'm hoping to achieve: BaseClass.vb: <CustomA...

How I can use an app.config file with a comvisible class library?

I'm working on this ComVisible class library that uses a third party component.This component needs some settings to be added to the config file.Since the application that uses my dll is a VB 6 application I don't know where should I put the config file? is there anyway that we can load a config file at runtime? ...

Embedding a XAP file into a class library

This might be a bit tricky setup but... I have this Silverlight project that builds into a XAP, which is all fine. Next we have this set of class libraries we add to an existing application which then unfolds into small "applications" inside the existing one. The problem here is... I want my XAP to be embedded into the class library ...

Linq to XSD for Silverlight

It appears that the LINQ to XSD project has some dependencies on types that are not available in Silverlight, such as System.Xml.Schema.XmlSchemaType. Considering that, I know it would take a significant amount of work to get LINQ to XSD to work in a Silverlight project, but I am curious, has anyone modified the LINQ to XSD project (Micr...

Common and Utility Library Consolidation

Before I begin, similar questions but not exact: http://stackoverflow.com/questions/41405/working-with-common-utility-libraries, http://stackoverflow.com/questions/407739/what-to-include-in-a-utility-library. I have recently starting working with our company's internal C# libraries, which include Common.dll and Utilities.dll; pretty sta...

ASP.NET dll on .jsp page

Is it possible to build a .dll created from a class library in ASP.NET and use it's functionality on a .jsp page? I know how to create the .dll, but I am not very familiar with .jsp pages. If you could provide an example of the entire .jsp page, that would be great. Thanks! Edit: I guess what I'm trying to say is that I made a new pr...

VS 2008-- one web project, one class library project. Each referencing a third CL.

Hi all, I have a VS2008 solution with two projects in it. One is a web project, the other a class library project. The web project has a reference to the class library project's generated assembly. Each project in turn references an assembly (call it "mydll") that's built from a class library project located in another VS solution. ...

I can't see the extension methods of LINQ to SQL in Class Library

Hi Everyone, I created a Class Library named Repository and which includes LINQ To SQL file which stores a ORM of SQL Server Database, besides that I also created another Class Library named Services which has the reference of the Repository class library and I want to use the LINQ to SQL file locating in Repository in Services but I ca...

Can you bundle dlls together?

I have a class library project that i have made. Let's call it ClassA. In ClassA i need to access some tools that reside in dll (ToolsDLL.dll). In ClassA I have added ToolsDLL.dll to the project and selected the ToolsDLL.dll file to Copy To Output directory ALWAYS. So that library builds and compiles just fine and in the output directo...

How to Debug a Class Library in Visual Studio

I am working on a class library (dll) project in Visual Studio 2008; programming in C#. In order to test my dll I just created a second project that is a console application and in that project I can reference the first and run tests. Is there a simpler way of doing this? Can I just create another file within my class library project tha...

Configuration files from referenced class libraries in ASP.NET MVC

I have several class libraries within my MVC application which each have a Settings file with its own configuration file. With each configuration file being App.config, how are these aggregated into one configuration file? Should the settings be placed in web.config? Suggested best practice? ...