Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When you Create New C# Project From Existing Files, the dialogue has a dropdown called "Output Type" giving choices of "Console Application", "Windows Application" and "Class Library". None of them seem appropriate for a web application. What does the Output Type actually do and what should I select for a web app?

share|improve this question
    
what sku of visual studio are you using? –  Frank Thomas Feb 21 '13 at 17:09
1  
What version of Visual Studio 2012 do you have exactly? –  Ramhound Feb 21 '13 at 17:10
    
It's Version 11.0.51106.01 Update 1 –  Craig Feb 21 '13 at 17:19
    
And why the mark down? If you can't ask people here how to get through MS's ridiculous UI's then where? Others may have similar concerns and, if this is answered, it will help them too. –  Craig Feb 21 '13 at 17:21
2  
Thanks, but I deliberately didn't put this question on StackOverflow because it's more of a user than a coding issue. I guess you just can't win, you get a bollocking whichever way you turn. –  Craig Feb 21 '13 at 17:48

1 Answer 1

up vote 0 down vote accepted

The output type only tells the project creation wizard what you want approximately. If there is no exact fit, you can still take the closest choice. For example, is your "web app" supposed to be deployed as .exe or .dll (may not be named with that extension). Choose the closest and then customize the project further to your needs.

The given templates just provide an outline for the project. I always end up customizing some aspect and I don't see why this would be discouraged. So just customize away.

share|improve this answer
    
A web app will generally be a dll (in my experience). So which selection produces which output? This is what gets me about MS UI's and documentation, they assume you already know, they don't give enough hints. Thanks anyway. –  Craig Feb 21 '13 at 17:50
    
since VS2k5, projects for websites/webapps have become more an more nebulous. in reality, the site "project" is just a folder with some files in it. there is no .XXproj file, or any other metadata to glue the site objects together, other than the web.config. you might as well just create a blank web project and add all the files afterward, since there isn't any kind of import process. in fact, if you have a site project pointing to a root folder, and add a file to that folder in windows explorer, it will automatically appear in the project in solution explorer. –  Frank Thomas Feb 21 '13 at 18:14
    
@FrankThomas, that is true of websites, but not for web applications. Web applications contain compiled code and include a project file. –  heavyd Feb 21 '13 at 23:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.