locked
Problem with the automatically generated name of a website project RRS feed

  • Question

  • User1704518454 posted

    Why does a number in parenthesis get added to the name of a new website added to a solution and how do I avoid it ?

    Steps to reproduce:

    1. Open Visual Studio 2012.

    2. Create a new blank solution (Ex. c:\temp\Solution)

    3. Add a new "Empty Web site" (Ex. c:\temp\Solution\Website)

    Instead of your website being named "Website" as you typed in, it'll be called something like "Website(1)" / Website(2) etc... in solution explorer.

    Tuesday, June 4, 2013 12:48 PM

Answers

  • User-166373564 posted

    Hi kevster

    Instead of your website being named "Website" as you typed in, it'll be called something like "Website(1)" / Website(2) etc

    It is default behavior for this situation, if you want to name "Website" as your description above, you can rename it while you create it,

    hope it helps you,

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 11, 2013 3:27 AM
  • User-1716253493 posted

    AFAIK, each time you create a web site, VS also create a folder under Documents\Visual Studio 2012\Projects

    If Website folder already exist, then create Website(1), Website(2) and soon

    The .sln filename also same with the folder name.

    Website, Website(1), Website(2) that you see is shortcut to the .sln file

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 11, 2013 4:15 AM

All replies

  • User-851967432 posted

    It does that to avoid duplication.

    To avoid it, rename the solution/project while you're creating it.

    Tuesday, June 4, 2013 12:55 PM
  • User-1716253493 posted
    Its similar with if you copy a file and paste it in same folder, your file become copy1,copy2,copy3...
    Tuesday, June 4, 2013 1:13 PM
  • User1704518454 posted

    adamturner34

    It does that to avoid duplication.

    To avoid it, rename the solution/project while you're creating it.

     

    Understandable, but I don't think anything is being duplicated, right ?

    There's 1 folder for the solution: C:\Temp\Solution

    Then 1 sub-folder for the website: C:\Temp\Solution\Website

     

    Shouldn't the website project just be called Website since there's no duplicates ?

    Tuesday, June 4, 2013 1:19 PM
  • User-166373564 posted

    Hi kevster

    Instead of your website being named "Website" as you typed in, it'll be called something like "Website(1)" / Website(2) etc

    It is default behavior for this situation, if you want to name "Website" as your description above, you can rename it while you create it,

    hope it helps you,

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 11, 2013 3:27 AM
  • User-1716253493 posted

    AFAIK, each time you create a web site, VS also create a folder under Documents\Visual Studio 2012\Projects

    If Website folder already exist, then create Website(1), Website(2) and soon

    The .sln filename also same with the folder name.

    Website, Website(1), Website(2) that you see is shortcut to the .sln file

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 11, 2013 4:15 AM