Friday 14 April 2017

Visual studio online create new team project

Open: https://www.visualstudio.com/team-services/
Click on free account
Enter your account details
Click on "create new account"
You will see all u r account: https://app.vsaex.visualstudio.com/me?mkt=en-US&campaign=o~msft~vscom~product-vsts-nav~menu
Click on any account
Ex: https://myaccountName.visualstudio.com/_projects



Click on New Project
Ex: Project Name: Demo
Version Control: TFS
Work Item process: Scrum
Click on "Create"
You will get below screen
https://myaccountName.visualstudio.com/Demo
Under "Members" Click on +
Enter outlook email id

Open Visual studio as administrator
Click  on Team
Select Connect Team foundation server:  : https://myaccountName.visualstudio.com

Click on Plug Icon under "Team Foundation" window
(if you have already connected to TFS, then click on  "Select Team projets...")
Select Right Team Foundation server
It will  load all Team Projects
Select "Demo"
Click on Connect
Double click on "Demo" from TFS window
You will see: Configure your workspace mappings to get started developing
Click on "Configure your workspace mappings to get started developing"

In your local first create a folder strcture ex: F:\tfs\Demo

Enter local folder path as: F:\tfs\Demo
Click on "Map&Get"

If you go to this path: F:\tfs\Demo
You will see "BuildProcessTemplates" folder

Under VS-->Team-->Manage Connections..-->Under Team explorer - connect
Click on Home icon
Click on “Source Control explorer”
Ex:

Right click after “BuildProcessTemplates”, select “new Folder” name it: Sourcecode

Go inside “Sourcecode” folder
Right click Create New folder name as “Dev”
Same way create: “QA”, “UAT”, “Prod”
Go to “Dev” folder

You will see all these folders in local also:
F:\tfs\Demo\Sourcecode\Dev

File "New Project"
Search for blank solution
Select Blank solution
Name it as: Demo
Location as: F:\tfs\Demo\Sourcecode\Dev

Check "Add to source control" check box
Ok
You will get new window to Add solution "Demo" to Source control
Select "Demo"
Click Ok
By this time, in VS, you will see all blank solution with name as "Demo"
From VS
Right click on "Demo" solution
Click on "Check in"
Enter comments
Check In


In VS
File "New Project"
Select "Class Library"
name it: Demo.Entity
Location path: F:\tfs\Demo\Demo
Check "Add to source control" check box
OK

Click on Solution
Add new project
Select "Class Library"
name it "Demo.DAL"
Location path: F:\tfs\Demo\Sourcecode\Dev\Demo
Check "Add to source control" check box
OK



Click on Solution
Add new project
Select "Class Library"
name it "Demo.Services"
Location path: F:\tfs\Demo\Sourcecode\Dev\Demo
Check "Add to source control" check box
OK


Click on Solution
Add new project
Select "Web"-->ASP.NET Web Application
name it "Demo.API"
Location path: F:\tfs\Demo\Sourcecode\Dev\Demo
Check "Add to source control" check box
OK
In the new window select "Web API"

Check "Web Forms" check box

Ok


After Dev completion, move all the file to "QA"