Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MSBuild <scriptfilename> /t:targetname
- <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <Import Project="Project.csproj" Condition="Exists(Project.csproj')"/>
- <Target Name="Test">
- <Message Text="@(Compile)"/>
- </Target>
- </Project>
- <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
- <Import Project="Project.csproj" Condition="Exists(Project.csproj')"/>
- <Target Name="Test">
- <Message Text="%(Compile.FullPath)"/>
- </Target>
- </Project>
- C:projects_PlaySimpleIpService>type \sysrdswbld1publicbinmrb-vs2008.cmd
- @echo off
- call "c:Program FilesMicrosoft Visual Studio 9.0VCvcvarsall.bat"
- echo %0 %*
- echo %0 %* >> %MrB-LOG%
- cd
- if not ""=="%~dp1" pushd %~dp1
- cd
- if exist %~nx1 (
- echo VS2008 build of '%~nx1'.
- echo VS2008 build of '%~nx1'. >> %MrB-LOG%
- set MrB-BUILDLOG=%MrB-BASE%%MrB-WORK%.%MrB-NICEDATE%.%MrB-NICETIME%.build-errors.log
- msbuild.exe %~nx1 /t:Rebuild /p:Configuration=Release > %MrB-BUILDLOG%
- findstr /r /c:"[1-9][0-9]* Error(s)" %MrB-BUILDLOG%
- if not errorlevel 1 (
- echo ERROR: sending notification email for build errors in '%~nx1'.
- echo ERROR: sending notification email for build errors in '%~nx1'. >> %MrB-LOG%
- call mrb-email "Mr Build isn't happy about build errors in '%~nx1'" %MrB-BUILDLOG%
- ) else (
- findstr /r /c:"[1-9][0-9]* Warning(s)" %MrB-BUILDLOG%
- if not errorlevel 1 (
- echo ERROR: sending notification email for build warnings in '%~nx1'.
- echo ERROR: sending notification email for build warnings in '%~nx1'. >> %MrB-LOG%
- call mrb-email "Mr Build isn't happy about build warnings in '%~nx1'" %MrB-BUILDLOG%
- ) else (
- echo Successful build of '%~nx1'.
- echo Successful build of '%~nx1'. >> %MrB-LOG%
- )
- )
- ) else (
- echo ERROR '%1' doesn't exist.
- echo ERROR '%1' doesn't exist. >> %MrB-LOG%
- )
- popd
Add Comment
Please, Sign In to add comment