Quantcast
Channel: Team Foundation Server - General forum
Viewing all 6687 articles
Browse latest View live

TFS step by step source control for a beginner

$
0
0

Hello guys,

we just started using TFS in our projects.

We have a very small team(myself as a back end and a friend as a front end developer).

I spent some time going through tutorials on the subject but most of them concentrate on workflow for bigger teams and scrum etc or basics like installing TFS and simple check in.

My question is if there are two of us what would be the best use of TFS for us (we are concerned only with source control and we are not doing unit testing). Until now I only used tfs by myself and it's been ok but now when another person is included there are some problems.

Could you describe step by step what would be the perfect workflow for us ?

For example:

1. I create a project and do a check-in.

2. My friend downloads the project using TFS and makes some adjustments in a file . Meanwhile I'm still working on some other code in the same file. If I get his version(ie by changeset) my code will be overwritten.

Question: How can I check what changes did he make and choose those I feel are suitable ?


Add bugs to the task board - can't import ProcessConfiguration.xml

$
0
0

I am using TFS 2013. The setup uses the Agile template (AFAIK). I am following this article: http://msdn.microsoft.com/en-us/library/jj920163.aspx to add bugs to the task board. Right now, when team members add a bug, including myself, they just "disappear". I can't find them via the TFS web portal or through Visual Studio (2013).

So, I've worked through the article and am on the step: Add metastate mapping to the process configuration


When I try to import the updated ProcessConfiguration.xml file, I receive the following error:

The following element contains an error: TaskBacklog/States. TF400587: This element defines the states for work items that appear on your backlog. Each state must exist in at least one of the work item types belong to category defined in: 'TaskBacklog/States'. The following state does not exist in any of the work item types: New.

I have no idea which file to update to resolve this issue. I've used witadmin to look at the task.xml file, but can't make heads or tails of it in regards to this problem (the article makes no mention of it, but other help threads have).

Where would I go to add the new work item types?

Here is my XML file:

<?xml version="1.0" encoding="utf-8"?><ProjectProcessConfiguration><BugWorkItems category="Microsoft.BugCategory" pluralName="Bugs" singularName="Bug"><States><State type="InProgress" value="Active" /><State type="Complete" value="Closed" /><State type="Resolved" value="Resolved" /></States></BugWorkItems><FeedbackRequestWorkItems category="Microsoft.FeedbackRequestCategory" pluralName="Feedback Requests" singularName="Feedback Request"><States><State type="InProgress" value="Active" /><State type="Complete" value="Closed" /></States></FeedbackRequestWorkItems><FeedbackResponseWorkItems category="Microsoft.FeedbackResponseCategory" pluralName="Feedback Responses" singularName="Feedback Response"><States><State type="InProgress" value="Active" /><State type="Complete" value="Closed" /></States></FeedbackResponseWorkItems><PortfolioBacklogs><PortfolioBacklog category="Microsoft.FeatureCategory" pluralName="Features" singularName="Feature"><AddPanel><Fields><Field refname="System.Title" /></Fields></AddPanel><Columns><Column width="100" refname="System.WorkItemType" /><Column width="400" refname="System.Title" /><Column width="100" refname="System.State" /><Column width="50" refname="Microsoft.VSTS.Common.BusinessValue" /><Column width="200" refname="System.Tags" /></Columns><States><State type="Proposed" value="New" /><State type="InProgress" value="Active" /><State type="InProgress" value="Resolved" /><State type="Complete" value="Closed" /></States></PortfolioBacklog></PortfolioBacklogs><RequirementBacklog category="Microsoft.RequirementCategory" parent="Microsoft.FeatureCategory" pluralName="Stories" singularName="User Story"><AddPanel><Fields><Field refname="System.Title" /></Fields></AddPanel><Columns><Column width="100" refname="System.WorkItemType" /><Column width="400" refname="System.Title" /><Column width="100" refname="System.State" /><Column width="50" refname="Microsoft.VSTS.Scheduling.StoryPoints" /><Column width="200" refname="System.IterationPath" /><Column width="200" refname="System.Tags" /></Columns><States><State type="Proposed" value="Active" /><State type="InProgress" value="Resolved" /><State type="Complete" value="Closed" /></States></RequirementBacklog><TaskBacklog category="Microsoft.TaskCategory" parent="Microsoft.RequirementCategory" pluralName="Tasks" singularName="Task"><AddPanel><Fields><Field refname="System.Title" /></Fields></AddPanel><Columns><Column width="400" refname="System.Title" /><Column width="100" refname="System.State" /><Column width="100" refname="System.AssignedTo" /><Column width="50" refname="Microsoft.VSTS.Scheduling.RemainingWork" /></Columns><States><State value="New" type="Proposed" /><State value="Active" type="InProgress" /><State value="Resolved" type="InProgress" /><State value="Closed" type="Complete" /></States></TaskBacklog><TypeFields><TypeField refname="Microsoft.VSTS.Common.Activity" type="Activity" /><TypeField refname="Microsoft.VSTS.Common.StackRank" type="Order" /><TypeField refname="Microsoft.VSTS.Feedback.ApplicationLaunchInstructions" type="ApplicationLaunchInstructions" /><TypeField refname="Microsoft.VSTS.Feedback.ApplicationStartInformation" type="ApplicationStartInformation" /><TypeField refname="Microsoft.VSTS.Feedback.ApplicationType" type="ApplicationType"><TypeFieldValues><TypeFieldValue type="ClientApp" value="Client application" /><TypeFieldValue type="RemoteMachine" value="Remote machine" /><TypeFieldValue type="WebApp" value="Web application" /></TypeFieldValues></TypeField><TypeField format="{0} h" refname="Microsoft.VSTS.Scheduling.RemainingWork" type="RemainingWork" /><TypeField refname="Microsoft.VSTS.Scheduling.StoryPoints" type="Effort" /><TypeField refname="System.AreaPath" type="Team" /></TypeFields><Weekends><DayOfWeek>Sunday</DayOfWeek><DayOfWeek>Saturday</DayOfWeek></Weekends><WorkItemColors><WorkItemColor primary="FFCC293D" secondary="FFFAEAE5" name="Bug" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Code Review Request" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Code Review Response" /><WorkItemColor primary="FF773B93" secondary="FFEEE2F2" name="Feature" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Feedback Request" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Feedback Response" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Issue" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Shared Steps" /><WorkItemColor primary="FFF2CB1D" secondary="FFF6F5D2" name="Task" /><WorkItemColor primary="FFFF9D00" secondary="FFFCEECF" name="Test Case" /><WorkItemColor primary="FF009CCC" secondary="FFD6ECF2" name="User Story" /></WorkItemColors></ProjectProcessConfiguration>


Can Bugzilla be integrated with TFS.

$
0
0

Hi All,

1. Is it possible to integrate Bugzilla with TFS? 

2. Is migration possible between Bugzilla to TFS?

If possible then, could you please explain the process.

Thanks in advance.

Regards,

Status icons when using local workspaces mode

$
0
0

I just started using the Local Work space mode and I notice that I do not have the source control status icons that I used to have when I have been working with Server work spaces or Git repositories.

I understand that in the local work space mode check in/out icons do not make sense, but I would still like to see icons for edited or added files.

Is this possible?


Dimitris Papadimitriou, Software Development Professional

Control MSBuild version / MSBuildToolsPath for build definition?

$
0
0

Recently upgraded from TFS 2012 to TFS 2013.  We have some older solutions that use MSBuild based nuget restore.  These builds no longer work after upgrading to TFS 2013 because of the following error from nuget.targets:

c:\buildwork\OctopusAgent\25\Sources\Acme\Apps\Web\Index\.nuget\NuGet.targets (71): The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Build.Tasks.v4.0.dll". Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Build.Tasks.v4.0.dll' or one of its dependencies. The system cannot find the file specified.

Nuget.targets

<UsingTask TaskName="DownloadNuGet" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">

I was hoping to not have to do extensive modifications of nuget.targets in our older solutions to support TFS Build 2013.  Is there a way in TFS 2013 to change a given build definition to use the older 4.0 msbuild build tools?

Moving source control with history from one project to another project in TFS 2012

$
0
0

Hi, 

Can we move source control code from one project to another project with everything (History, Branches and Labels)?

I've checked other related posts and used the TFS Integration Tool but it's also not migrating history and labels.

Any other way to migrate everything?


Mohsin Shahzad

Disable manual queuing public building definition

$
0
0

Hello,

I have a building definition that is used for nightly builds. I like to forbid to users create a new build using this definition. How can I achieve that? Of course, I need this definition to be active in order to create nightly builds.

Thank you


Regards, Leo

Create bug as Task

$
0
0

Hello,

I'm using TFS 2012, i want to create a Bug as a Task but i dont find solution. I used this tutorial (http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/12/add-bugs-to-the-task-board-or-backlog-pages.aspx) but nothing change.

Can someone help me to solve this problem.

Thanks.


TfsConfigurationServer get error when invoking QueryChildren method for CatalogNode

$
0
0

I have this block of code:

TfsConfigurationServer configurationServer = TfsConfigurationServerFactory.GetConfigurationServer(uri);

// Get the catalog of team project collections           

ReadOnlyCollection<CatalogNode> collectionNodes = configurationServer.CatalogNode.QueryChildren(

new[] { CatalogResourceTypes.ProjectCollection }, false, CatalogQueryOptions.None);

When I run the block of code I get the following exception message:

Microsoft.TeamFoundation.Framework.Common.ConfigFileException occurred
  _HResult=-2146232832
  _message=The xml node 'Location' under node 'LocationMapping' cannot be empty
  HResult=-2146232832
  IsTransient=false
  Message=The xml node 'Location' under node 'LocationMapping' cannot be empty
  Source=Microsoft.TeamFoundation.Client
  IsRemoteException=false
  StackTrace:
       at Microsoft.TeamFoundation.Framework.Client.LocationXmlOperator.ReadServices(XmlDocument document, Dictionary`2 accessMappings)
  InnerException: 


Source Control Explorer Doesn't View PDF Files

$
0
0
At our site the TFSVC Source Control Explorer is not mapping PDF files to Adobe Acrobat when attempting to view a PDF document stored in version control.  Upon attempt of a view a PDF an error dialog is displayed: "The line endings in the following file are not consistent...".  I have tried all options in this dialog and searched for settings elsewhere to configure PDF file types.  How can we fix this problem?

Usability suggestion on header/menu real-estate

$
0
0

The headers, menus, and information at the top of this application takes up too much room like ¾ the screen and needs to be compressed or reorganized.

Database table for Global Lists

$
0
0

We have a problem on our TFS 2012 (Update 3) server.  Every few days global list items are disappearing.

We can't figure out who or what is causing this deletion.  It seems to be the similar items that are disappearing.  (Though not the same each time.)  Everyone that has permissions is sure they are not doing it on purpose.

I am at a loss for how this can happen.  The only thing I can think of is to turn on Change Data Tracking for the table that holds the global lists (so I can see when and what is causing the deletions.)

Hence this question.  Which table in the TFS database stores the Global Lists?


publish sqlproj during build, but don't publish other projects

$
0
0

I have a solution with various projects (including a wpf project, a console project and a sql project).

I created a publish file for the sql project to deploy the database to a specific server and database to run the unittests on it after the build.
I configured "always re-create database" in the publish profile.

Then I created a build definition and put the msbuild arguments:

/t:Build /t:Publish /p:SQLPublishProfilePath=publish.unittest.xml

The Build now is able to publish the sql project, but it also tries to publish the wpf project and the sql project - which I try to avoid.
Is there any way to avoid publishing those other projects?

Is there a way to publish the database on each build - without changing the default build template?

PS: I'm using VS2013 and TFS2013


TFS 2012 error using MSSCCI plugin

$
0
0

When trying to add a file to source control using MSSCCI plugin with National Instruments Labwindows CVI and TestStand the following message is displayed:

Could not load file or assembly

'Microsoft.TeamFoundation.VersionControl.ControlAdapter, Version=11.0.0.0,

Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

Invalid pointer (Exception from HRESULT:0x80004003 (E_POINTER))

Any help in resolving this issue would be much appreciated!

Thanks!

Agile or Scrum or CMMI

$
0
0

Hi,

We are going to use TFS 2013.

Process templates -scrum,agile,cnmi

My question which 1 is the best to go for.

General Question:

And also i have seen articles like agile scrum .

is both are same?what is the difference between?.

Please answer my questions

Thanks


priyanka



Get All Modified Files after by Label

$
0
0

Hi,

I am newbie in TFS. I have given one label "Test" . I want to take all are mofied after this lable.

how can i get all the modified files after label.

Regards,
Dileep

TFS intergration with PWA

$
0
0

Our company is using PWA Project Management tool to track projects and cost for each project. Our team currently must manually enter their hours into PWA every time there is time spent on a task in TFS. I have read several things regarding this integration but was wondering if there are some direct step-by-step instructions regarding this transition?

Also, the other thing I was not able to confirm is if once the integration is in place will PWA be able to handle multiple work-items from TFS when allocation of hours is being submitted to PWA from TFS?

Your assistances is appreciated.


Carla Mckinley


Oh this is using office 2007 and TFS (Visual Studio) 2012

An error occurred while copying diagnostic activity logs to the drop location - Access denied to folder

$
0
0

Hello,

I have TFS 2012 with a stand alone machine that is running TFS 2012 building agent and VS2013 solution. When I configure a build it is compiling sucessfully but at the end prints the following error:

An error occurred while copying diagnostic activity logs to the drop location. Details: Access to the path '\\BUILDMACHINE\Builds\Nightly\Nightly\Build_438\Logs\ActivityLog.xml' is denied.

However, the file IS there. If I give a shared folder \\BUILDMACHINE\Builds permissions for Read/Write to Everyone then I do not get this error. If I give it only to a user who is running the agent, I get this error.

Please, advise how this can be resolved? If there is a specific user whom I should give permissions, I would like to know his name :)


Regards, Leo

In TFS can story priority automatically change if the containing feature priority is changed ?

$
0
0

hi all,

I have two features... Feature1 and Feature2 

Feature1 has a story1

Feature2 has a story2

----------------------------------------------

priority of both.. Feature1 and story1 is 1.

priority of both.. Feature2 and story2 is 2.

--------------------------------------------------

now I change the priority of Feature2 to be 1 and Feature1 to be 2...basically rearranging them and interchanging their priority.

what I would like ideally to happen is, priority of stories change automatically because the containing features priority is changed ..

can TFS do this out of the box ?

my goal here is to priorities based on feature and I want stories to reset their priority automatically based on feature priority  .    is that possible ?

thanks siddharth

Getting all TFS fields into C# program

$
0
0
How can i get a combobox filled with ALL of a project's fields in C#?  It seems i can get a list of standard ones (System ?) but no "custom" ones that are defined in the project?  Here is the basics of what I'm using right now:


private

 

void FillFieldComboBox()

{

fieldComboBox.Items.Clear();

 

//Get all the work items associated with this build

 

foreach (WIT.Project project in m_WorkItemStore.Projects)

{

 

ProjectItem item = newProjectItem(project.Name, project.WorkItemTypes, project.Uri.ToString());

fieldComboBox.Items.Add(item);

}

}

Uses these classes:

using

 

System;

using

 

System.Collections.Generic;

using

 

System.Linq;

using

 

System.Text;

using

 

Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace

 

Work_Item_Exporter

{

 

publicclassWitType

{

 

publicWorkItemType Type { get; set; }

 

publicList<string> Fields { get; set; }

 

public WitType(WorkItemType type)

{

 

this.Type = type;

 

this.Fields = newList<string>();

 

foreach (FieldDefinition f in Type.FieldDefinitions)

Fields.Add(f.Name);

}

 

publicoverridestring ToString()

{

 

return Type.Name;

}

}

}

 

and...

using

 

System;

using

 

System.Collections.Generic;

using

 

System.Linq;

using

 

System.Text;

using

 

Microsoft.TeamFoundation.WorkItemTracking.Client;

namespace

 

Work_Item_Exporter

{

 

publicclassProjectItem

{

 

publicstring Name { get; set; }

 

publicWitType WorkItemTypes { get; set; }

 

publicstring Uri { get; set; }

 

public ProjectItem(string name ,WorkItemTypeCollection wittype, string uri)

{

 

this.Name = name;

 

this.Uri = uri;

 

 

foreach (WorkItemType wit in wittype)

{

 

this.WorkItemTypes = newWitType(wit);

}

}

 

publicoverridestring ToString()

{

 

returnthis.Name;

}

}

}

 

I need to get, for example, [JTE.TestCaseID] (a "custom" field we defined) from a work item, but want to pick it from a list, not hard-code that everytime, as I may need other fields down the road.  This is what I have to do for now: wItem.Fields["JTE.TestCaseID"].Value as string;

Basically, I would like to have a combobox of all fields, then a box for an operator and one for a value.  Just like visual studio's Queries, in other words.  That way I don't have to add a new box everytime someone asks for a report/export that has another field in it!  How would i get the operators and values as well?

Thanks for any help!

Viewing all 6687 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>