Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5 > BOOK: Beginning ASP.NET 4.5 : in C# and VB
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 20th, 2013, 08:17 PM
Authorized User
Points: 276, Level: 5
Points: 276, Level: 5 Points: 276, Level: 5 Points: 276, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 39
Thanks: 4
Thanked 1 Time in 1 Post
Default Chapter 2: Building An ASP.NET Website

Hello,

I have fully read this chapter and was expecting some mention of this Visual Studio 2012 phenomenon in one of the following sections:
Different Project Types
Choosing the Right Website Template
Creating and Opening a New Wesbite

When creating a new website, working with it and then closing it, Visual Studio Express 2012 for Web sometimes prompts the user to save a solution! This is after all website files have been saved, and I'm preparing to close the IDE. I have reset the IDE to the defaults, with no effect. I do not know what is causing this, or if this is expected behaviour. I have been simply choosing no.

Do you have any comment or insight into this ?

Thank you.
WebDev123
Reply With Quote
  #2 (permalink)  
Old August 21st, 2013, 08:00 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi there,

A Solution (identified by a .sln extension) is a Visual Studio container to hold projects (and web sites). Usually, when working with a single web site, Visual Studio will manage the .sln file for you automatically. For some reason, however, it sometimes prompts you to save it. You can safely do so and it will use the file you specify from then on.

Multi-project solutions that contain multiple projects always require an explicit solution file.

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!
Reply With Quote
  #3 (permalink)  
Old August 21st, 2013, 08:57 PM
Authorized User
Points: 276, Level: 5
Points: 276, Level: 5 Points: 276, Level: 5 Points: 276, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2012
Posts: 39
Thanks: 4
Thanked 1 Time in 1 Post
Default

Okay, so is there any difference or penalty if you do not save the .sln file ?

And if you do, can you save it into your simple website project folder (such as "C:\BegASPNET45\Site" for example) to keep things all in one place ? Or, do you have to save it outside of that folder?

Also, I've noticed two scenarios when being prompted ...
1) You are prompted to save a solution (.sln) file named YourProject.sln.
2) You are prompted to save a solution (.sln) file named localhost...sln, as if it wants you to save a IIS solution file. I don't understand that.

Are these equivalent ?

Thanks-
Reply With Quote
  #4 (permalink)  
Old August 22nd, 2013, 02:45 AM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

>> Okay, so is there any difference or penalty if you do not save the .sln file ?

No, not that I know, other than that you're not prompted every time, You could also save it explicitly through the File menu.

>> as if it wants you to save a IIS solution file. I don't understand that.

It doesn't. Solution Files are always specific to Visual Studio. My guess is that the name it chooses depends on how you open or create the web site.

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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a Flash Website phungleon Flash (all versions) 1 January 4th, 2007 01:00 AM
codes about this book: Building An ASP.NET Intrane john.shu General .NET 2 November 28th, 2005 09:51 AM
NEW TO WEBSITE BUILDING PLZ HELP? boxster Dreamweaver (all versions) 1 March 25th, 2005 09:34 PM
Chapter 1: Building an ASP.NET Website Qs & As groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 4 August 27th, 2004 08:57 AM
Building an ASP.NET Intranet Chapter 7 Question MrGio All Other Wrox Books 1 November 20th, 2003 09:57 AM



All times are GMT -4. The time now is 05:35 PM.


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