Visual Studio .NET or Visual Studio 2005 creates project files and solution files in different folders (814726)



The information in this article 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 Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • 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.

MORE INFORMATION

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.
  4. In the Name text box, type TestApp. In the Location text box, type C:\Temp.
  5. 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.
  6. Click OK. By default, Form1 is created.
  7. 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.

REFERENCES

For more information, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:3/6/2006
Keywords:kbvs2005applies kbvs2005swept kbDirectory kbdir kbprb KB814726 kbAudDeveloper