Unit Test for ASP.Net 5 with xUnit
Unit testing plays a significant role in assuring the quality of the applications we develop. To unit test an ASP.Net 5 RC1 Update1 (ASP.Net Core 1.0 now), web application we can use xUnit.To add xUnit...
View ArticleRun xUnit Unit Tests for (dnx)ASP.Net 5 with VS Team Services Build
To run the xUnit unit tests developed for ASP.Net 5 (ASP.Net Core 1.0 now), you need to setup a powershell step/task. Setting up a build with VS Team Services, for ASP.Net 5 is explained here.First...
View ArticleDeploy dacpac with MSDeploy in VS Release Management
To deploy a dacpac against a target database, MSDeploy can be used. In powershell, following command allows to deploy a dacpac.Invoke-Expression "& 'WebDeployFolderPath\msdeploy.exe' --% -verb:sync...
View ArticleBuild C# 6 Syntax with TFS 2013.4 Build Services
If you are using VS 2015 with C# 6 syntax and try to build it with, TFS 2013.4 (build agent installed with VS 2015 Update1 enterprise) you might run into issues like shown below.The name 'nameof' does...
View ArticleMSDeploy dacpac Deployment ERROR_EXECUTING_METHOD
When using the RM tool to deploy dacpacs as explained in “Deploy dacpac with MSDeploy in VS Release Management”, below error might occur.Info: Adding MSDeploy.dbDacFx (MSDeploy.dbDacFx).Info: Adding...
View ArticleBower with VS 2015–Resolve ECMDERR Failed to execute "git clone...
Recently encountered error in getting bower packages with VS 2015 Update 1 (Enterprise), which is confirmed error on VS 2015 Update 2 Community as well, according to MSDN forum thread...
View ArticleAzure Roadshow 2016 - Continuous Delivery to Azure with VS Team Services
Great one day event on Azure at SLIDA (Sri Lanka Institute of Development Administration), on 29 April 2016.My session - Continuous Delivery to Azure with VS Team ServicesVisual Studio Team Services...
View ArticleASP.NET Core 1.0–Store Images in Azure Blob When Deployed as Azure Web Site
Data and images are not meant to be stored in Azure Web Site web root directory. It could cause problems doing so, few ideas discussed in below...
View ArticleBuild ASP.NET Core 1.0 with TFS 2013.4 Build Server
To build ASP.NET Core 1.0 with Team foundation 2013.4 XAML builds, following steps should be done.Prepare the build server1. Install VS 2015 in the build server2. Install below by login to the build...
View ArticleDeploy ASP.Net Core 1.0 to Remote IIS Using MSDeploy
In order to run ASP.Net Core 1.0 in IIS you need to setup IIS with HttpPlatformHandler instructions are here. IIS configurations for ASP.NET Core 1.0 can be found here.Follow the below steps to use...
View ArticleEntity Framework 7– Unapplying Migrations to Remove Migrations
In development environments accidents can happen. You could add a wrong migration and want to roll back. The option is there to remove the last migration. But if it is applied to the local db, then the...
View ArticleConfigure On-Prem Agent for Visual Studio Team Services
To configure an on premise agent for VS Team Services, follow the steps specified below.Navigate to VS Team Services admin mode, and go to control panel. select the Agent Pool tab.To setup a new pool...
View ArticleConfigure Multiple Build/Release Agents in Single Build Machine–TFS 2015
To configure multiple TFS 2015 new build agents, in single build machine, follow the instructions below. It is recommended to limit the number of agents, in a build machine, to number of CPU cores it...
View ArticleDeploying to an Untrusted Domain–TFS 2015 Release Management Service
To setup an Agent (build/release agent), in an untrusted domain, follow the below steps. 1. Create local user in TFS App Tier machine say rmshadowagent2. Navigate to TFS control panel using...
View ArticleMake Builds Run Faster
If your TFS builds are running too slow following might help, to reduce the time taken.1. Set the build to enable parallel running and use multiple MSBuild processes say 4 processes. /m:4...
View ArticleEnvironment Variables & TFS 2015 Build/Release Agents
If you install additional software in build server, or in a target server setup as a release server with build/release agent TFS 2015, you might run into the same issues specified below, which can be...
View ArticleMake Agent Queues - Usable to Team Project Users–TFS 2015 Build/Release Agent...
Agent queue in a TFS 2015 build definition will not be listed for team project administrator, even though he can save a build definition.To make agent pool available for the user creating a release or...
View ArticleConfigure Test Client Locally (On-Prem) with VS Team Services Release
To configure an on-premise test client machines with Visual Studio Team services release follow the below steps.Diagram 011. Setup test client machine with WinRM if not already installed. (WinRM is...
View ArticleDeploy .dacpc to Azure DB via VS Team Services Release–Using Hosted Agents
To deploy a .dacpac to Azure DB with VS Team Services you can use “Azure SQL Database Deployment” task. Setup either Azure Classic service endpoint or Azure RM Service endpoint in the, Team Services...
View ArticleMultiple Build Artifacts–TFS 2015/VSTS Builds
It is possible to create multiple drops in a new TFS 2015 build or in VS Team Services build. This is useful when you want to do a single build but want to have separate drops(artifacts), for different...
View Article