Issues opening project file in tfs? - visual-studio-2010

I am trying to open a project/website for edit in TFS and I'm having a lot of issues. TFS is proving a learning curve for me...
I'm trying to access files in the 'forms' root...
These are the steps I’m taking…
Right-click on ‘forms’ and click on “Get Latest Version”
Then this screen pops up…
When I hit OK, then I right click again, and click “Check Out for Edit”
I hit “Check Out”
Then to open the site, I go to File > Open > Web Site…
Then the File System comes up… I selected ‘forms’, as you suggested…
Once it opens, I see this…
I double-click on ‘Default.aspx’, and this comes up…
When I view in Browser, this is the screen I get…
Where am I going wrong?

Here's the best way to accomplish what I was trying to do. This was after several hours of trial/error...
Open a Web Site…
Select Source Control Project…
Choose the site root.
It may prompt you to receive a local copy. Do this.
If it asks you to change frameworks, say no.
In the Solution Explorer, a new .sln file should be generated, with properly bound files:

Related

Open folder as project in PhpStorm

When I install PhpStorm from JetBrains Toolbox app I do not have an option to open folders as project when right clicking
Sadly JetBrains Toolbox App does not provide such functionality. Only standalone installer has an option to make them right now. You will have to either use that... or create such entries manually.
https://youtrack.jetbrains.com/issue/TBX-2478 -- watch this ticket (star/vote/comment) to get notified with any progress.
To add an entry to the Windows Explorer's right-click menu:
you can use FileTypesMan by NirSoft or a similar tool.
or create such entry manually, e.g. see this comment for a basic .bat file: https://youtrack.jetbrains.com/issue/IDEA-114307#comment=27-2125363 (at very least it lists Registry keys where to create such an entry).
I found this from Jet Brains :
Click Open on the Welcome screen or select File | Open from the main menu.
In the Select Path dialog, select the directory that contains the project to open.
Drag the desired project from your file chooser right to the Open Project dialog without locating it there. The respective file in the dialog will be found automatically.
Specify whether you want to open the project in a new window, close the current project and reuse the existing window, or open the new project in the same window with the current one. Refer to the Opening multiple projects section for details.
and for the command line you could use this :
<PhpStorm> <path_to_the_project folder>
See Open files from the command line for more information.

Folder view doesn't work?

So I am trying to get into C# as it is used for a lot of things.
I want folder view so that I can click on a folder and put a file in there without having to go to file explorer. The problem is, when I go to Solution explorer, click on my project, click on folder view, It does nothing. I actually don't know if it is worth it to go through all this trouble but I thought I might give it a shot.
I think you can only enter folder view from the solution level (rather than project). In Solution Explorer, single click on the solution you have open. Then, click the folder view icon at the top of the Solution Explorer. This will toggle the view to folder view mode.

Remove TFS Bindings without a hack

I have a 2013 Visual Studio Web Project which was in source control. It has been detached for some time and now I want to move it to a completely new TFS server but when I do it errors and complains expecting certain folders to exist. I think this is due to the TFS bindings.
Now I have seen lots of posts about how to edit the solution file to remove the bindings, plus a few other steps but I'm wondering if there is a menu item which you can click to remove the bindings so I can point at a different TFS server? I am hoping I don't need to edit solution file.
I am not simply being lazy - but I want a defacto way of doing this correctly in one go, not hack here and hack there. Hacking a solution file from someone's advice is not the same as clicking a 'Microsoft' menu item.
Quite easy, you just need to follow my steps and you will get it worked.
Open your solution, for now its under source control with your old
TFS server.
Move to File -> Source Control -> Change Source Control , on the
pop-up window click the unbind, you can unbind all of the
solution or a specific project. Will get a below screenshot.
You can check the solution in solution explorer, there is no lock
icon which means not in source control any more.
However, this isn't over. Since your solution file is still in the
workspace which associate with the old TFS server. So if you want to
add the solution to new source control right now, you will get an
error:
" The item 'ConsoleApplication1.sln' is already under source control
at the selected location xxx"....
You have to copy this solution to a different place out of your
workspace. And change the connection of TFS to the new TFS
server(which you want to add source control with).
Finally, open the solution from local folder(new copied). Right
click the solution in solution explorer select "Add solution to
source control" and choose the location you want add to.

TFS source control - new files not automatically detected as pending changes

As per the tags, I'm using VS2013 and TFS2013.
There are multiple projects in the solution: Model, Presenter, View, etc. All other projects are working as expected in terms of source control operations.
Problems with the Model project:
Adding a new file via Solution Explorer isn't automatically detected as a pending change
Deleting a file isn't detected either
Other source control operations work fine for the Model project, such as:
Get latest version
Edit detection for existing files (including changes to the csproj
file when a new file is added)
Checking in pending changes
The csproj file would show up in pending changes with the newly added file listed in it, but the new file itself isn't showing up, therefore causing build errors on other developers' machines if only the csproj changes are checked in.
The workaround is to find the added file in solution explorer and Add via context menu, this will make it appear as a pending change. But this process should be automatic as per the other projects.
Noticed that there is no .vspscc file for the Model project while other projects have one each.
Any help appreciated. Thanks.
I would unbind and rebind the problem project and try again:
To unbind a solution or project from source control
In Visual Studio, open Solution Explorer and select a solution or
project to unbind.
On the File menu, click Source Control, then Change Source Control.
In the Change Source Control dialog box, click Unbind.
To bind a solution or project to source control
In Visual Studio, open Solution Explorer and select a solution or project to bind.
On the File menu, click Source Control, then Change Source Control.
In the Change Source Control dialog box, click Bind.
Select the database and location to which to bind, and click OK.
Click OK.
You might need to go to Advanced to find the Change Source Control option
https://msdn.microsoft.com/en-us/library/0eh3790h%28v=vs.90%29.aspx
Before unbinding and binding your solution try his:
Go to Source Control Explorer
Click the "Add Items to Folder" (the
one on the left of the red cross)
Select the items you want to Add and follow the instructions on screen
That's all
Click <Detected: x add(s), x delete(s)> : in the source control explorer then select the file to add
For years I've been relying on 'Detected Adds' to add missing files - which was never a sustainable solution but I've just about managed with it.
But now if broke.
I'm actually about to reinstall Windows but in the meantime one of the best ways I've found to get a sense on what's missing (and it's still working even though the detected adds isn't) is the recursive 'Compare' window.
You can add files from here too.
It's a little klunky but it gives me a good sense of security and shows file diffs if you want to see what may have changes.

TFS - How to see all files checked out by a specific user?

I am working on a solution (a very big solution), and I want to check if I have left anything checked out. How do I see all the items I have checked-out?
And could you also tell me how to see all checked-out items by another user please.
simply pull up the pending changes window (View > Other Windows > Pending Changes) to see what files you have checked out!
http://msdn.microsoft.com/en-us/library/ms181395(v=vs.100).aspx
As for the other users, you would need to view the source control window to see who has checked out that file.
Simply go to View > Team Explorer then browse to the collection/project you are working on and double click on "Source Control" to open the source control explorer.
This then will show you the directory listing system where you can see who has checked out which file and what kind of check out.
also take a look at this: Can I check what files another person has checked out in Visual Studio 2010

Resources