how to save solution SLn file in project folder only

Posted on 2008-11-05
Last Modified: 2013-11-26
I am visual studio 2005.
right if I create any project then the project or solution (SLN) file get saved in Doc and setting/.... folder

Is there any way by which the solution gets saved within the project folder only
and also is there any by which i can view the line no while i am writing the code.
I have seen line in code view in some dot net vidoes
Question by:ziorrinfotech
    LVL 4

    Accepted Solution

    In Tools->Options, Under 'Projects and Solutions', change the location of 'Visual Studio projects location' as required - this will save new solution .SLN files in the desired location.

    To show line numbers, in Tools->Options, Under 'Text Editor', select the language, and select 'Line Numbers' in the Display section.

    Hope this helps.

    Author Comment

    Hi Woodz

    Thanks for your help.
    if I choose Visual Studio projects location then the that location will be for all project which I will create
    What  I want here is suppose if I create a new website on c:\website1 folder then the sln file get saved in c:\website1 folder only.
    and later if I create a new project in d:\newporject folder then the sln file for this project gets saved under d:\newproject folder only.
    LVL 4

    Expert Comment

    When you select New Project, it will give you the different options for the type of program being created. At the bottom, there is a Location text field, that allows you to specify where the folder and sln file will be created. If you change this to the desired location, that single project and solution file will be created there. The only files created in Doc and setting/.... folder is the backup of the solution.

    Hope this helps.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Normally a window is moved by clicking on the caption bar and dragging. You may want your user to be able to move borderless forms or move a form by clicking anywhere in the form without the limitation to the caption bar. There are many ways to do i…
    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now