I have completed the port of the NAnt NHibernate.Task hbm2Ddl to MSBuild. I used this to learn how MSBuild works and it works great but only if the assembly that is used for NHibernate to inspect is in the /bin folder where the task .dll is running. IT tells me that it can't find the class associated with the .hbm.xml. I know for a fact that the assembly it is inspecting is just fine so it has something to do with MSBuild while running a task.
Within the task, I use the 'AddAssembly' method to .. er..add the assembly and that's where it bombs .
Anything I need to understand more about MSBuild to get this task going? The Nant task works just like it should and my task works when the assembly it is inspecting is in the same folder. I'd like to contribute this to the MSBuild community at tigris and have it in that source project if I can just figure this out. I'd rather not copy the inspected assembly into the NHibernate assembly .
Any tips would be helpful.