Microsoft KB Archive/814726

= Visual Studio .NET or Visual Studio 2005 creates project files and solution files in different folders =

Article ID: 814726

Article Last Modified on 11/14/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio .NET 2003 Professional Edition
 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition

-



SYMPTOMS
If you create a new project in Visual Studio .NET or in Visual Studio 2005, and then you click the Create directory for Solution option in the New Project dialog box, Visual Studio .NET or Visual Studio 2005 creates your solution files and project files in different subfolders. Project files are saved in a subfolder of the Solution folder. Because all the solution files and project files are not in the same folder, you may receive errors or your application does not work as expected.



WORKAROUND
To work around this problem, click to clear the Create directory for Solution option in the New Project dialog box. This dialog box appears when you start a new project in Visual Studio .NET or in Visual Studio 2005.



STATUS
This behavior is by design.



Steps to reproduce the behavior

 * 1) Start Microsoft Visual Studio .NET or Microsoft Visual Studio 2005.
 * 2) On the File menu, point to New, and then click Project.
 * 3) Under Project Types, click Visual Basic Projects. Under Templates, click Windows Application.

Note In Visual Studio 2005, click Visual Basic under Project Types.
 * 1) In the Name text box, type TestApp . In the Location text box, type C:\Temp.
 * 2) Click More, and then click to select the check box for Create directory for Solution. In Visual Studio 2005, you do not have to click More.

Note To reproduce the problem, you must select the Create directory for Solution option.
 * 1) Click OK. By default, Form1 is created.
 * 2) On your computer, locate the folder C:\Temp, and then open the folder TestApp. Notice that the file TestApp.sln and a subfolder named TestApp appear in the TestApp folder.

