Confidence at speed: Visual Studio 2017 and your CI




Continuous Integration Services
• Repository
• Branches
• Workflow
• Policies
• Roles
• Build Def
• Build agent
• Build tasks
• Test tasks
• Analysis
• Packaging
• Release Def
• Target host
• Svc principle
• Svc endpoint
• Release tasks
Continuous Integration Services
• Repository
• Branches
• Workflow
• Policies
• Roles
• Build Def
• Build tasks
• Test tasks
• Analysis
• Packaging
• Release Def
• Target host
• Svc principle
• Svc endpoint
• Release tasks
Continuous Integration Services
x
Create Pull Request
Build & Code Analysis Results
1
0
0
View Issues
From dev/myFeatureBranch2 to master
<Enter a pull request title>
Fixes to HomeController.cs
Reviewers:
@FabrikamProductProjectTeam;
Create pull request
Submit with issues
3
HomeControllerTest
1
2
3
4
5
6
7
8
9
10
11
12
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
✔
using
using
using
using
Microsoft.AspNetCore.Mvc;
Microsoft.VisualStudio.TestTools.UnitTesting;
TodoListApp;
TodoListApp.Controllers;
Solution ‘TodoListApp’ (1 project)
Solution Items
namespace TodoListApp.Test.Controllers
{
public class HomeControllerTest
{
public void Index()
{
// Arrange
HomeController controller = new HomeController();
global.json
src
TodoListApp
Properties
References
Dependencies
Service Capabilities
// Act
ViewResult result = controller.Index() as ViewResult;
Application Insights…
Controllers
// Assert
Assert.IsNotNull(result);
Assert.AreEqual(“Home Page”, result.ViewBag.Title);
appsettings.json
program.cs
}
project.json
}
Startup.cs
}
web.config
tests
TodoListApp.Tests
Properties
References
Controllers
PR Review : TodoListApp ‘List Icons’
PR created by Jane Doe in ‘master’ waiting
for your review. Click here to start
✔
1
✔
1
App.config
Package.config
3
HomeControllerTest
1
2
3
4
5
6
7
8
9
10
11
12
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
✔
using
using
using
using
Microsoft.AspNetCore.Mvc;
Microsoft.VisualStudio.TestTools.UnitTesting;
TodoListApp;
TodoListApp.Controllers;
Solution ‘TodoListApp’ (1 project)
Solution Items
namespace TodoListApp.Test.Controllers
{
public class HomeControllerTest
{
public void Index()
{
// Arrange
HomeController controller = new HomeController();
global.json
src
TodoListApp
Properties
References
Dependencies
Service Capabilities
// Act
ViewResult result = controller.Index() as ViewResult;
Application Insights…
Controllers
// Assert
Assert.IsNotNull(result);
Assert.AreEqual(“Home Page”, result.ViewBag.Title);
appsettings.json
program.cs
}
project.json
}
Startup.cs
}
web.config
tests
TodoListApp.Tests
Properties
References
Controllers
App.config
Package.config
✔
1
✔
1
CD4VS
DevLabs
Extension
Visual Studio
2017
2017
RTW
1st Release
8th Update
Coming Soon…
• ASP.NET and
ASP.NET Core
[Docker] CI/CD
config
• CI build failure
notification
• Link to build results
• CA on pre-commit
• In IDE PR experience
• Code analysis on PR
Preview version
15.3
• ASP.NET and
ASP.NET Core CI/CD
config
https://www.visualstudio.com/preview
http://aka.ms/cd4vs
@CD4VS
https://aka.ms/cd4vs_slack
[email protected]
Session Title
Code
Speakers
B8028
B8021
Martin Woodward
Allison Buchholtz-Au &
Justin Clareburt
Kaycee Anderson
B8036
B8083
Continuous delivery on Microsoft Azure
Coding at 88MPH: Tips and tricks with Visual
Studio 2017
Supercharge your debugging in Visual
Studio 2017 [C+E Dev]
The Future of Visual Studio
Amanda Silver &
Tim Sneath
Time and Location
5:30pm, Thursday May 11
WSCC Hall 6B
12:30pm, Friday May 12
WSCC Hall 6E
9am, Friday May 12
WSCC Hall 6E