Monday, August 28, 2006

MSBuildCommunityTasks TaskSchema

I'm all over the map today with ADHD :)

I am running into a problem that I've run into before: I have included my custom MSBuild Tasks project in the solution, and the project has a "GenerateTaskSchema" target that uses the TaskSchema helper task from the MSBuildCommunityTasks distribution.

The problem is that once you generate the task schema once, you can't do it again because:

Error 4 Unable to copy file "obj\GenerateTaskSchema\Macrosystems.MSBuild.Tasks.dll" to "bin\GenerateTaskSchema\Macrosystems.MSBuild.Tasks.dll". The process cannot access the file 'bin\GenerateTaskSchema\Macrosystems.MSBuild.Tasks.dll' because it is being used by another process. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets 2313 9 Macrosystems.MSBuild.Tasks


I think that the TaskSchema task is not releasing its "handle" to the DLL. I don't really want to go poke around in the MSBCT source code to try to fix this, but I suppose it may be worth a look to see what that task is grabbing in terms of file handles, etc.

0 Comments:

Post a Comment

<< Home