Print Page | Close Window

Web project does not save

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1935
Printed Date: 24-Jan-2026 at 2:13pm


Topic: Web project does not save
Posted By: Go4It2
Subject: Web project does not save
Date Posted: 02-Jul-2010 at 7:40am
Hi,
 
I just downloaded your product and I'm busy doing the getting started walktroughs.
 
When I save the solution then only the Silverlight project gets saved to the specified solution directory (including the .sln/.suo files). The web project stays in C:\Users\{User}\AppData\Local\Temporary Projects\ and gets deleted once I re-start Visual Studio 2010. The OS is Win7 - 64bit.
 
regards



Replies:
Posted By: GregD
Date Posted: 02-Jul-2010 at 9:00pm
  1. Which walk-through were you doing?
  2. Did you use a DevForce template to create the project?
  3. Where did you direct the solution to be created?


Posted By: Go4It2
Date Posted: 03-Jul-2010 at 12:03am
1.) Learning Resources -> Silverlight -> A Tour of DevForce Silverlight (Step 1) but it does not matter (see below)
 
2.) I use the 'DevForce Silverlight Application' template under C#. I e.g. Name the Solution 'MySaveTestSolution' and press ok
 
3.) I get the normal start screen, both README_FIRST.txt are open
 
4.) I click on the solution node in the Solution Explorer
 
5.) Then I press the 'Save All' button in the toolbar
 
6.) I set the location to: G:\Work\Training\VS2010 Projects\DevForce (G is a local disk), Name = MySaveTestSolution, Solution Name = MySaveTestSolution, Create directory for Solution = ticked, Add to source control = NOT ticked
 
7.) I click 'Save'
 
8.) If I click on the MySaveTestSolution project then I see the property 'Project Folder' is set to G:\Work\Training\VS2010 Projects\DevForce\
 
9.) If I click on the MySaveTestSolutionWeb project then I see the property 'Project Folder' is set to C:\Users\{My login user name}\AppData\Local\Temporary Projects\MySaveTestSolutionWeb\
 
10.) If I now close VS and re-start and select the MySaveTestSolution solution then it loads but the MySaveTestSolutionWeb project is gone
 
Remarks:
 
 - The 'Project Folder'  property is not present in either project befor I use 'Save All'
 - If I close VS after 'Save All' then MySaveTestSolutionWeb stays in the Temporary Projects folder until I restart VS, only then it gets deleted
 
thanks for your help
regards


Posted By: GregD
Date Posted: 06-Jul-2010 at 3:44pm
Go4lt2:

Thank you for the very helpful detail. With that, I am able to reproduce the issue you're seeing.

The behavior you describe only occurs if you have the Visual Studio option "Save new projects when created" turned off (Tools / Options / Projects and Solutions / General). I believe that is the default setting, though most of us in IdeaBlade support turned it ON a long time ago and forgot about it [1].

It seems that Visual Studio simply ignores the OFF setting when you use their Silverlight Application template, because you automatically get presented with a dialog that includes a Location setting to which both the Silverlight and web projects get saved. That's a little weird considering the property setting, but it does avoid creating the problem you encountered. We're going to look at it to see whether we can (and think it's a good idea to) make our template work as the VS one does. Thank you for calling it to our attention.

Meanwhile, I would suggest changing the "Save new projects when created" setting, assuming that doesn't produce any behaviors you don't like. I've always found it the most straightforward.

Regards,
Greg

------------------
[1] I can't remember why I set it to ON originally; there was something about the VS behavior with it turned OFF that I didn't like. It certainly had nothing to do with the DevForce Silverlight Application template, because that didn't exist at the time.


Posted By: GregD
Date Posted: 19-Jul-2010 at 2:09pm
This has been fixed in the forthcoming 6.0.4 release.



Print Page | Close Window