c# - I cannot get projects to load into Visual Studio 2013 with the same name as their directory and I cannot rename the projects in Solution Explorer -
i had 2 problems don't seem addressed anywhere.
a website project directory i'd renamed projectb
projecta
kept loading vs 2013 solution projectb
after rename. f2, rt-click , long clicking project name did not enable me rename it. have no csproj file. deleted non-source files imported new, empty solution. full text search of directory showed name in .suo file, i'd deleted.
i fixed (solution below), imported website in directory projectb
solution. when did, given name projectb(2)
, projectb(3)
, projectb(4)
, despite there nothing called projectb
more. again couldn't manually rename projectb
. there no folder or file conflicted. restarted windows after deleting temporary files, next time imported project, came in projectb(8)
. solution below.
i re-opened same solution on computer, , projectb
(in directory projectb
) renamed projecta(2)
, despite having never been named anywhere. solution below.
[later edit: if getting these problems, first thing i'd try closing vs2013 , exiting iisexpress in system tray, moving iisexpress
directory:
c:\users\chris\documents\iisexpress
(replace username) somewhere different, opening vs2013 , solution, recreate directory.]
the first problem solved deleting files weren't source files or dlls (sln, suo, etc), deleting files in c:\windows\microsoft.net\framework\v4.0.30319\temporary asp.net files
, renaming parent directory of solution folder, , creating new solution. after these steps project load same name project directory. (nothing less worked - project loaded old project name, different directory name.) ie, solution rename folder above of project.
for example file structure originally:
c:\dev\client\solution\projecta
(and project name in vs2013 projectb). renamed path above solution path, ie:
c:\devxyz\client\solution\projecta
then project load visual studio 2013 projecta
.
the second problem iis express - never seems delete virtual directories. went following file (replace username):
c:\users\chris\documents\iisexpress\config\applicationhost.config
and deleted site tags within <sites>
, ie,
<sites> <site name="projectname" id="1"> ... <site name="projectname(2)" id="4"> ... <site name="otherprojects" id="7"> </sites>
becomes
<sites> </sites>
i restarted visual studio, re-opened same solution file getting projectb(2)
, , loaded projectb
.
when re-opened same solution on vs2013 on computer, renamed projectb
projecta
, renamed projecta
projecta(1)
. had delete sites in applicationhost.config re-open solution, , projects loaded directory names.
i got iis express error on opening solution. solution close vs2013 , kill iisexpress in system tray (took minute die), delete entire iisexpress directory in my documents
. (from answer unable launch iis express web server)
Comments
Post a Comment