Error when building solutions
I created an MSBuild project that builds a solution. It seems to build fine, but at the end, MSBuild encounters the following error:
An unhandled exception of type 'Microsoft.Build.Shared.InternalErrorException' occurred in MSBuild.exe
Additional information: Internal MSBuild Error: The number of projects officially loaded at the beginning of the build should match the number of projects officially loaded at the end of the build.
Any ideas as to what causes this error?
<ProjectDefaultTargets="Build"xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputPath>t:\test\</OutputPath>
<CodePath>C:\code\</CodePath>
</PropertyGroup>
<TargetName="Test1">
<MSBuildProjects="$(CodePath)Database\Test1.sln"/>
</Target>
<TargetName="Test2">
<MSBuildProjects="$(CodePath)Server\Test2.sln"/>
</Target>
<TargetName="Build">
<MSBuildProjects="$(MSBuildProjectFullPath)"Targets="Test1;Test2"RunEachTargetSeparately="false"StopOnFirstFailure="true"Properties="OutputPath=$(OutputPath)"/>
</Target>
</Project>

