Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2010, 05:03 PM
Registered User
 
Join Date: Sep 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Question Project vs. Web Site and App_Code

Creating an ASP.NET Project provides for a .sln file, but you cannot add an App_Code directory--at least not one recognized by the IDE for purposes of compilation (this is confirmed throughout the internet).

Creating a Web Site does not provide for a .sln file, but you can add an App_Code directory.

In the downloaded TBH code, there is both a .sln file and an App_Code directory which the IDE apparently recognizes, because there's no problem with the Build.

It's my impression that the author started out with a Web Site rather than a Project (the Publish Web Site dialog box is different between the two).

If all this is true, how can it be that there is both a .sln file and an App_Code directory?
 
Old September 17th, 2010, 04:47 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I don't know if the site built in this book is a Web Site or a Web Application, but I do know that you can have a .sln file for a web site.

What a Web Site doesn't have is a proj file (e.g. csproj or vbproj) to relate all files in the site as a web site project is simply a folder. But you can have a .sln file that refers to the web site project and possible other projects that are part of the solution such as a class library.

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
JLGuyant (September 17th, 2010)





Similar Threads
Thread Thread Starter Forum Replies Last Post
App_Code folder in "Web Application Project" member4953 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 March 24th, 2009 05:03 PM
Publish Web Site & Copy Web Site angshujit ASP.NET 2.0 Basics 1 June 15th, 2007 09:21 AM
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.