#!/bin/bash # Delete *.pdb, *.dll, *,dll.*, *.csproj, *.csproj.*, */obj/ find -newer lastBuild -name obj -type d -print | xargs /bin/rm -fr find -newer lastBuild -name *.csproj -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.csproj.* -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.dll -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.dll.* -type f -print | xargs /bin/rm -f find -newer lastBuild -name *.pdb -type f -print | xargs /bin/rm -f sleep 1 touch lastBuild ./runprebuild.sh vs2010 # Prebuild converts Microsoft.CSharp.targets to Microsoft.CSHARP.Targets, which case sensitive file systems fail to find. find -name *.csproj | xargs sed -i "s@Microsoft.CSHARP.Targets@Microsoft.CSharp.targets@g" # Debian no longer provides nant. #./nant-color if [ "4" == $(mono -V | head -n 1 | cut -d ' ' -f 5 | cut -d '.' -f 1) ]; then export XBUILD_COLORS=errors=brightred,warnings=yellow,events=blue xbuild /target:clean xbuild /p:TargetFrameworkVersion="v4.5"xbuild /p:TargetFrameworkVersion="v4.5" else # Use this for Mono 5 and later. msbuild /p:Configuration=Release # msbuild /p:Configuration=Debug fi