New files created by other users not showing in TFS using codeplex - codeplex

I created a ASP.Net project in codeplex, and shared it with my other team mates. We are using TFS in VS 2010 as source control. The problem is if any user creates a new file in his workspace and "checks in" using TFS. The other users are not able to see this new file in their workspaces (even after doing "get latest version").
Is this a bug or am I missing anything here.
Note: The new file checked in is visible in the codeplex website under source code tab of the project.

Normally you should see these new files in the Source Control. To download these changes, your workspace should map folders with changed files. If you add some files into your project, you should also check-in your project file changes.
Or if you add some files into your existing TFS project and you forget to add new files into the TFS, your new files will be missing in Source Control.

Related

Adding project from VS2013 to AzureDevOps

Im using VS 2013 (CE).
Windows Server 2012 with a local install of Azure DevOps.
I can connect to the repository via the URL
http://example.local/DefaultCollection
Under defaultCollection i have another few test projects i.e.
/DefaultCollection/A-Project,
/DefaultCollection/B-Project.
For this example i will user C-Project which im trying to add to source control.
All im trying to do is add a project to this source control but i am experiencing issues that i would have thought shouldnt exist:
In VS2013, I add a new solution. I right click the project and select "Add solution to source control". Immediately it selects the project A-Project with the path /DefaultCollection/A-Project/C-Project. I dont want this as it resides inside another project.
From the web portal i create a new project and select Team Foundation Server (not Git as the examples online i have seen all select Git). In VS i create a brand new project and then attempt the same as 1 above but it tells me that i already have a project with this name under source control. I expand A-Project and i see it listed and undo any changes but it still doesnt add as i get some form of error.
Other problems range from the local version not mapped to, existing file exists/under source control to other errors.
What is the correct process to add a project to Azure Devops when using Visual Studio 2013 CE?
The default steps are described here: Set up Team Foundation Version Control on your dev machine.
You have to:
Create a workspace from the target project.
Copy your project into the locally mapped folder.
Add your project to the source control.
As workaround:
Create workspace from the target project: Create and work with workspaces
Copy your project into the locally mapped folder.
Add your project to the source control by: Manually add files to version control
Open the project and fix source control bindings:
Useful document: Add files to the server

New files (.sql) on database project not added to tfs automatically

Unlike the other projects, new files in the database project (.sqlproj) are not available while trying to check-in from solution explorer. I can able to see the changed files but not new files.
Every time I add new files, I need to go to Source control explorer and look for "Add Items to folder" option.
It messes when there are few changed files and few added files. We will check-in from solution explorer and after some time the production team will curse us for not including the files.
Anyone facing the same? Do I miss anything?

Confused about adding an existing file to Team Foundation Server (TFS)

I am trying to add the file "DSTB_QB.xml" to an existing project in TFS. I added the file to an existing project from Source Control Explorer using "Add Items to Folder", but I have to check it out separately from the rest of the project. Additionally, although it appears in the "App_Data" folder (which is where I want it) in my local workspace, it does not appear under the "App_Data" folder in Solution Explorer. It is as if this file is under source control, but not part of the project. How can I make the file part of the project?
You can not add just with Source Control Explorer because you Visual Studio Project does not know why some file exist on file system (maybe this temporary file). But if you add existing file with Solution Explorer to existing project this file will be added to source control automatically.
I fixed the problem by right-clicking on the "App_Data" folder in Solution Explorer and selecting "Add->Existing Item". I'm not sure if that's what the above commenter meant, but it worked.
Now my question is: Why did I have to add the file in Source Control Explorer AND in Solution Explorer? More specifically, why wasn't adding it in Source Control Explorer sufficient?

Can I check in code to another project in TFS 2013?

I'm writing code in a TFS 2013 Project. I'd like to check it into a different Project on the same server. Can I do this? Thanks
You can not directly check in the code to another project, you need to add the code file to another project first for source control, then check in the code changes.
In visual studio Team Explorer:
Connect To TFS project 1, configure the workspace and map source
code to local folder1. Open the folder1 in windows explorer.
Connect To project 2, configure the workspace and map source code to
local folder2. Open the folder2 in windows explorer.
Copy the code file which you want to check into another project (eg,
project 2 here ) from folder1 to folder2, then the system
will detected the new added files under Pending Changes >
Excluded changes.
Click the Detected link to Promote the new added files.
Check in the files to Project 2
Refer to these articles for more information : Add files to the server
and Check in your work to the team's codebase
UPDATE:
You can link to the WI in the same collection, but cannot link to the WI which in another collection.
That means, if the team projects are in the same collection, then you can link the WI (associate with the changeset) which belongs to another project directly.

Visual studio randomly excludes source files from source control

I'm new with source control but since we are more than one developer in our company I started introducing git with Visual Studio 2013 Express and the Team Foundation Server. Now when I create a new project and add it to source control it seems that sometimes one random cs source file in the project is excluded from version control. In the Solution Explorer there is no check-in icon infront of the file. Also there is no other icon infront of it and if i publish the repository to the server the file isn't there.
I have no idea why the file is excluded and how to include it.

Resources