Let me start by example... I have an all.proj that looks similar to this:
<ItemGroup>
<ProjectsToBuild Include="..\Sites\*\*.csproj" />
</ItemGroup>
<Target Name="DeployWebsites" DependsOnTargets="BuildMergedSolutions">
<AspNetCompiler
PhysicalPath="%(ProjectsToBuild.RootDir)%(ProjectsToBuild.Directory)"
TargetPath="%(ProjectsToBuild.RootDir)%(ProjectsToBuild.Directory)..\..\..\deploy\%(ProjectsToBuild.Filename)"
VirtualPath="/%(ProjectsToBuild.Filename)%(ProjectsToBuild.Extension)"
Debug="true"
Updateable="true"
Force="true" />
</Target>
If one of the tasks fails it will exit the target. Is there any way to just print the error and continue exceuting the remaining tasks?
ContinueOnError is not an option since it will just convert the errors to warnings. I want the build to fail in the end but I also want to get as much error information as I can get so I still need to compile all the sites even though some of them fail.