Skip to content

Instantly share code, notes, and snippets.

View dasMulli's full-sized avatar

Martin Andreas Ullrich dasMulli

  • Tietoevry Austria
  • Vienna, Austria
View GitHub Profile
@dasMulli
dasMulli / ci-publish.proj.xml
Last active April 19, 2017 16:41
Publish (multiple) classic web application projects in multiple configurations to an output folder
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- CONFIGURE the configurations to publish for here -->
<PropertyGroup>
<ConfigurationsToPublish>Release;CD;UAT;Customer1;Customer2</ConfigurationsToPublish>
</PropertyGroup>
<!-- CONFIGURE the web projects to publish here. -->
<ItemGroup>
@dasMulli
dasMulli / TFSAggregatorPolicies.xml
Created March 24, 2017 14:57
Auto-activates and resolves work items when child work items change
<rule name="AutoActivate" appliesTo="Task,User Story,Feature,Bug">
<![CDATA[
if((string)self["System.State"] == "Active")
{
string currentParentState = null;
var requirementTypeNames = new[] { "User Story", "Feature", "Epic" };
if(self.HasParent() && (currentParentState = (string)self.Parent["System.State"]) != "Active")
{
string reason;
if (requirementTypeNames.Contains(self.Parent.TypeName))
@dasMulli
dasMulli / GitVersionedProject.csproj
Last active March 6, 2017 23:25
Demo of using Git branch with mapping + commit count to set version properties in csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<GitBranchToReleaseLabelMapping Include="master" ReleaseLabel="rtm" />
<GitBranchToReleaseLabelMapping Include="develop" ReleaseLabel="beta" />