I have a ASP MVC project committed to SVN (used Visual SVN).As the project grew up i kept adding files.Most of the time when i "Get" project everything is available in VS2012. But today when i get the complete solution from repository - some of previously added files(cs and cshtml and respective folders they are in) are not included in project solution in VS explorer but they are there in the Directory that i did get from svn-
My Project in SVN~
MyMVCProj
ModelFolder
ControllerFolder
ViewFolder
view1folder~hasfiles
Now i add a new folder to viewfolder with files within and commit
MyMVCProj
ModelFolder
ControllerFolder
ViewFolder
view1folder~hasfiles
view2folder~hasafile(<=This available in my disk after getting from svn not in VS2012)
what am i doing wrong? I do get project everyday by >Visual Studio2012>VISUALSVN>Get Solution from Subversion;this saves project to disk and opened in VS
I guess that project's file wasn't committed to the repository together with other changes. Here is how you can solve this:
Go to Visual Studio | VisualSVN | Show log and look for the revision committed by DEV2 which added view2folder/
,
Take a closer look at changed paths. Most likely the revision added view2folder/
with its contents but the revision didn't change MyMVCProj.csproj
file.
The *.csproj
file contains information about the files included in that project. When items are added to the project, references to them get into *.csproj
file. If the file is missing these references, then you don't see added items in Solution Explorer.
In Solution Explorer, click Show All Files, right click view2folder/
and choose Include in Project.
In VisualSVN's Pending Changes dialog you can see that project's file has been modified. Commit the change.
That's it.