Skip to content

Instantly share code, notes, and snippets.


Martin Andreas Ullrich dasMulli

  • Tieto Austria
  • Vienna, Austria
View GitHub Profile
dasMulli / webpack.config.js
Created Dec 11, 2017
Angular 5 webpack for SpaServices 2.0.0
View webpack.config.js
const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin;
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
module.exports = (env) => {
// Configuration in common to both client-side and server-side bundles
const isDevBuild = !(env &&;
const sharedConfig = {
dasMulli / Directory.Build.targets
Last active Jan 18, 2021
Allow `dotnet test` to be run from solution directory
View Directory.Build.targets
<Target Name="VSTestIfTestProject">
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />
dasMulli / Directory.Build.targets
Last active Mar 31, 2020
CI build script for a mvc + Webpack SPA app
View Directory.Build.targets
<Target Name="NpmInstall" Condition="Exists('package.json')">
<Exec Command="npm install" />
<Target Name="NpmCiTest" Condition="Exists('package.json')">
<Exec Command="npm run ci-test" />
<ItemGroup Condition="'$(TestResultsOutputPath)' != ''">
<TestResultFiles Include="obj\karma-testresults\**" />
dasMulli / Directory.Build.targets
Last active Sep 2, 2018
PublishAll target to publish for all frameworks and runtimes
View Directory.Build.targets
<Target Name="PublishProjectIfFrameworkSet"
Condition=" '$(TargetFramework)' != '' " />
<Target Name="PublishProjectForAllRIDsIfTargetFrameworkSet" Condition=" '$(TargetFramework)' != '' and '$(RuntimeIdentifiers)' != '' and '$(RuntimeIdentifier)' == '' ">
<_PublishRuntimeIdentifier Include="$(RuntimeIdentifiers)" />
<MSBuild Projects="$(MSBuildProjectFile)" Targets="PublishAll" Properties="TargetFramework=$(TargetFramework);RuntimeIdentifier=%(_PublishRuntimeIdentifier.Identity)" />
dasMulli / Directory.Build.targets
Last active Feb 27, 2020
Add Git commit count to version
View Directory.Build.targets
<!-- this is only used in NuGet 4.6.0 -->
<Target Name="AddGitCommitCountToVersion"
Condition=" '$(DisableGitVersionSuffix)' != 'true' ">
dasMulli /
Last active Aug 7, 2017
Sample core / .net core build setup
SRC_DIR="$(cd -P "$(dirname "$SOURCE")"&&pwd)"
docker pull "$IMAGENAME"
docker run --rm -w "$WORKDIR" -v "$SRC_DIR":"$WORKDIR" -- "$IMAGENAME" $COMMAND
dasMulli /
Last active May 9, 2017
Invokes msbuild with .net core sdk path on mac and linux. Copied with some edits from omnisharp-roslyn
#!/usr/bin/env bash
DOTNET_CLI_PATH="$(dirname $(which dotnet))/sdk/$(dotnet --version)"
export MSBuildExtensionsPath="$DOTNET_CLI_PATH/"
export CscToolExe="$DOTNET_CLI_PATH/Roslyn/"
export MSBuildSDKsPath="$DOTNET_CLI_PATH/Sdks"
msbuild /nologo /v:minimal "$@"
dasMulli / TFSAggregatorPolicies.xml
Created Mar 24, 2017
Auto-activates and resolves work items when child work items change
View TFSAggregatorPolicies.xml
<rule name="AutoActivate" appliesTo="Task,User Story,Feature,Bug">
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 / ci-publish.proj.xml
Last active Apr 19, 2017
Publish (multiple) classic web application projects in multiple configurations to an output folder
View ci-publish.proj.xml
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="">
<!-- CONFIGURE the configurations to publish for here -->
<!-- CONFIGURE the web projects to publish here. -->
dasMulli / build.proj
Created Mar 14, 2017
Sample CI build definition using MSBuild
View build.proj
<Solution Include="*.sln" />
<PublishProject Include="XXX.Mvc\XXX.Mvc.csproj" />
<TestProject Include="**\*.Test*.*proj" Exclude="XXX.Tests.Shared\XXX.Tests.Shared.csproj" />
<Target Name="Build">
<MSBuild Projects="@(Solution)" Targets="Restore" ContinueOnError="ErrorAndStop" UnloadProjectsOnCompletion="true" UseResultsCache="false" />
<MSBuild Projects="@(PublishProject)" Targets="Publish" Properties="Configuration=Release" ContinueOnError="ErrorAndContinue" />