Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : in C# and VB 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 June 16th, 2014, 11:47 PM
Authorized User
 
Join Date: Jun 2014
Posts: 16
Thanks: 7
Thanked 0 Times in 0 Posts
Default BASP45 Chapter 2 - Folders Creation

Hi guys,

I'm working on Chapter 2 of the BASP45 and has created c:\BegASPNET\Site folder as per instruction.

In the book "If you want to follow along with the VB.NET and C# at the same time, you can create
two folders, BegASPNETVB and BegASPNETCS, and use two instances of Visual Studio"

Shall I create 2 more folders in the root directory:- c:\BegASPNETVB\Site and c:\BegASPNETCS\Site ?

Currently, I've created c:\BegASPNET with subfolders Site, VBNET and CSharp with Resources and Source
folders in the VBNET and Csharp folders.

Am I doing it right?

Thank you.

Cheers,
Mohamad

Last edited by mohamad; June 16th, 2014 at 11:50 PM..
 
Old June 17th, 2014, 07:17 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

It's easier if you have two root folders:

C:\BegASPNETCS
C:\BegASPNETVB

And then have a Site folder inside each of them. Your structure would work as well (although you don't need \Site anymore if you already have \VBNET and \CSharp) but it'll be easier to manage if you have everything for a single language in a single folder. For example, in Chapter 19 you'll work in deployment where you use the folder Release. If you create the two root folders as suggested you end up with something like this:

C:\BegASPNETCS\Site
C:\BegASPNETCS\Release
C:\BegASPNETVB\Site
C:\BegASPNETVB\Release

IMO, that's easier that having ReleaseVB and ReleaseCS subfolders.

In the end, it doesn't really matter as long as you know where you store what so you can find it again.

Cheers,

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!
 
Old June 17th, 2014, 10:45 PM
Authorized User
 
Join Date: Jun 2014
Posts: 16
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Thanks Imar,

I've already created folders below and stored the VBNET/CSharp Resources and Source in the Site folder accordingly as follows:-


C:\BegASPNETVB\Site
C:\BegASPNETVB\Site\Resources
C:\BegASPNETVB\Site\Source
C:\BegASPNETVB\Release (in preparation for Chapter 19)


C:\BegASPNETCS\Site
C:\BegASPNETCS\Site\Resources
C:\BegASPNETCS\Site\Source
C:\BegASPNETCS\Release (in preparation for Chapter 19)

Destination folder of Solution File (*.sln)

1. When I closed VS, it prompt to save the file to below path:-

C:\Users\User\Documents\Visual Studio 2012\Projects\localhost_49334\localhost_49334

2. How do I set in VS to default it to BegASPNETCS\Site or BegASPNETVB\Site?

3. What file type should I save the *.sln, as UTF-8, Unicode or ANSI?

Cheers,
Mohamad

Last edited by mohamad; June 17th, 2014 at 10:52 PM..
 
Old June 18th, 2014, 03:42 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Source and Resources should not be sub folders of Site or else they will become part of your web site which is not what they are intended for. Instead, I recommend you follow along with the book and set it up like this:

C:\BegASPNETVB\Site
C:\BegASPNETVB\Resources
C:\BegASPNETVB\Source
C:\BegASPNETVB\Release (in preparation for Chapter 19)

You could move Resources and Source anywhere you want as long as they are not a sub folder of the site itself.

The sln file isn't really used much so you can save it where you want (under your Documents for example) and accept the default file format.

>> 2. How do I set in VS to default it to BegASPNETCS\Site or BegASPNETVB\Site?

Not sure what you mean with this. If you mean the default save location, I don't think that's what you want as you don't want all your new projects to end up under that folder.

Cheers,

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:
mohamad (June 18th, 2014)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 19 - folders and files for the C:\BegASPNET/Release folder. jkoyle BOOK: Beginning ASP.NET 4 : in C# and VB 5 July 3rd, 2011 02:10 PM
Chapter 6 can't access folders blackflow BOOK: PHP and MySQL: Create-Modify-Reuse ISBN: 978-0-470-19242-9 1 April 27th, 2011 11:39 PM
Which folders to USE groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 5 October 7th, 2004 07:52 PM
Chapter 3: Looping through folders error DolphinBay BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 April 7th, 2004 05:41 AM
Chapter 3: Looping through folders error DolphinBay VB.NET 2002/2003 Basics 1 January 23rd, 2004 10:37 AM





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