Problem: Class Library

M

Matthew

Hello,

I am using Visual C# .net Standard and want to create a
Class Library. However I am having some difficulty. I
am following the directions to do so from Deitel's "C#
How to Program" in Chapter 8.16 in which it says, "From
the FILE menu, choose option NEW, follewed by PROJECT...
In the NEW PROJECT dialog, ensure that C# PROJECTS is
selected in the PROJECT TYPES section and click CLASS
LIBRARY". That is where I am having an issue. There is
no project type called "Class Library" listed as is
described to select, even though I have selected C#
Projects and have followed the directions as given. It
is also not listed in any of the other project types.
Has any one else had this problem, and is there a work
around or solution, or is this what I get for buying the
standard edition? I have checked for application
updates, but I get the response that my application is up
to date. Any help would be appreciated as I like having
modular and reusable code. Thank you for your time.

Respectfully,
Matthew W. Sanders
 
C

Chris Capel

You don't need the wizard to create a class library. Simply create an empty
project, right click on your project icon, and click Add\New Item. Select
the Class icon, name it what you want, and edit the file. To build the
project correctly, you may need to go into your project properties (right
click on your Project icon and select Properties), and change the output
type from Windows Application to Class Library. That's all.

Still, it's odd that your copy of VS should do that.

Hope this helps,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top