Set visual studio online check-in policies online - visual-studio

When creating a new project in Visual Studio Online, I can set all it's required settings online, but then I have to connect to it through Visual Studio and configure the check-in policy there before handing it over to the team to use.
I don't work on every project, I create it and then hand it over to the team who will take it further so I don't want to have to connect to each project that gets created.

There is not a direct way to enable TFS check-in policy except connecting to the team project and setting in the team explorer.
Or you'll need to use the Team Foundation Server SDK to implement the function that set check-in policy programmatically, here is a blog "How to Set Check-in Policies for all Projects in Team Foundation Server using PowerShell?", you may have a look: http://manasbhardwaj.net/set-checkin-policies-projects-team-foundation-server-using-powershell/

Related

Push to Azure DevOps from Visual Studio with Agile Process as Default

I connected Azure DevOps to Visual Studio and when I press "Publish Git Repo" everything is working fine.
But it always creates a Scrum process Dashboard.
I made Agile as default and disabled all of the others in my organisation.
Now Visual Studio throws this error
VS403119: You cannot add a team project with process Scrum as it is disabled. Either choose a different process, or enable process Scrum and try again.
So it means the setting is somewhere in Visual Studio.
The only thing I found about it is this two years old question.
Do you know the setting or some config file to change the default process board when publishing to the Azure DevOps from Visual Studio?
Visual Studio always specifies Scrum process when creating Azure Devops project via its Team Explorer, as I know there's no VS settings available to manage this behavior.
As a workaround you can create the project with Agile process in web portal first, add local project/solution into source control and choose Target Project(Click Advanced) before publishing the repo:
Actually this behavior is VS-specific cause Azure Devops itself supports specifying process template even by Rest API. So I decide to post a feature request related to your requirements in User Voice forum with VS tag instead of Azure Devops tag. The product team would provide the updates if they view it.

Not Working: Add a Project to Team Foundation Server 2012 using Visual Studio 2015

I am trying to add new projects to the Team Foundation Server and every way I have tried to add them has failed. We are running TFS 2012 Version: 11.0.50727.1 (RTM) and I am running Visual Studio 2015. I am a member of the Administrators Group.
I have tried at least 3 ways that MS support says how to do it on the website and none of them have worked:
I have tried to add it through Visual Studio
I have tried to add it through the Team Foundation Server Administration Console on the Server.
I have tried to add it through the TFS Web Management Portal.
When I try to add it through Visual Studio, I get an error when trying to check it in. It shows on the Source Control Explorer with a pending change of 'Add'. Here is a screenshot of the team explorer and output:
Since the message tells me to add it to the server, I opened the TFS Server Admin Console and When I go into the Team Projects Tab under Team Project Collections, it lists the existing projects, however, there is no way to add a new project. Here is a screenshot of the Admin Console:
There is only a help icon with a link on How to add a Team Project, although like with most MS help articles, it is useless. It provides information about how to do it on the web. So I tried it. I accessed the web portal for our TFS server and there isn't any option to add a project there either. When I go in to the "View the collection administration page" It tells me "Not all Collection level administration is exposed in the web experience. For all administration operations at the collection level please use the Administration Console on your Team Foundation Server.". Here is a screenshot of the online portal:
Can someone please help me with this issue? How can I add the projects to the Team Foundation Server?
I figured out how to Add the projects to the Team Foundation Server using Visual Studio 2015. It is very simple and can be done right from the File Menu in Visual Studio.
First open Visual Studio 2015. (I am not sure if it works the same in other versions.)
Go to File -> New -> Team Project...
The New Team Project Wizard will popup where you can then enter the project name and project description.
Then you can choose the template type and whether you will be using TFS Version Control or Git Distributed Version Control.
Once you click Finish, the Project will be added to TFS.
You can then add the files to the workspace folder on your dev machine.
Then you can check the files into TFS using the Team Explorer. *Note: First, you may need to add the files to the project by going to the Solution Control Explorer and right clicking on the newly created project and selecting Add Items to Folder. From there you can add the files then check them in using the Team Explorer.
Please clarify you want to create a code project/solution and add it to a TeamProject, or you want to create a TeamProject. TeamProject and code project/solution are different.
If you want to create a new TeamProject, according to Client compatibility, TFS 2012 supports VS 2015 RTM or latest update. Check your VS 2015 edition and re-try to create a TeamProject.
If you want to add a code project/solution to a TeamProject, you'll have to connect a TeamProject first and create a workspace, then perform a check-in: https://www.visualstudio.com/en-us/docs/tfvc/set-up-team-foundation-version-control-your-dev-machine
Last, try to clean the Cache folder on your dev computer. The folder path is: C:\Users\username\AppData\Local\Microsoft\Team Foundation\4.0\Cache.
If none of above works, try on another dev machine to see whether you can reproduce this issue.

Test Manager but no TFS access

I am new to VS Test manager and trying to do some practice. I do not have access to any TFS. Is there a dummy TFS on web that can be used for this purpose? Thanks
Visual Studio Team Services is a good option. You can get started for free, and the first 5 users in your team are also FREE.
After creating an account for VSTS, create a team project, and check whether you get a Test tab on Web Access.

Can't create team project in team foundation server using VisualStudio 2013

I try to create team project in team foundation server using VisualStudio 2013.
The problem that I can't see the New Team Project option in menu.
or:
Any idea why I cant see it?
Well, it's easy. The reason is you are offline from TFS. You can see there is a "local" behind your project playground.
You just need to connect to TFS first.(click connect to Team Projects→select a server→check projects→connect) Then everything is ok.

Team System - Create a Sharepoint Project Portal for an existing team project

I have an existing Team Project in Team System 2010 which, when I originally created it, I opted not to create a Sharepoint Project Portal website. I now would like a Sharepoint Project Portal website for the Team Project.
How do I do this?
In Visual Studio, I have tried Team->Team Project Settings->Portal Settings... and checking '"Enable team project portal" but I get the error:
TF229003: No response was received from following SharePoint site:
htttp:/. Verify that it is operational, or specify another
site
It seems that the TFS PowerTools have a command-line utility tfpt which lets you add a Project Portal for an existing Team Project.
tfpt addprojectportal
A blog post with a bit more info: http://www.doodle.co.uk/Blogs.aspx/2010/06/15/Rebuilding-TFS-Portals
Edit: another post with examples: http://ivanfioravanti.wordpress.com/2010/07/01/create-project-portal-and-reports-for-an-existing-team-project-on-tfs-2010/
Install TFS PowerTools and in command line you can create the portal.
you have to close visual studio first.
here is the msdn link: http://msdn.microsoft.com/en-us/library/ms242865.aspx

Resources