Simulate build provider in ASP.NET Web Application (.Net 2.0)
I am working with .Net 2.0 ASP.NET Web Application.

I am programmaticaly creating an assembly containing namespace and classes specified within xml file in the web application.
I have created a separate library that does that, I get the assembly and that's fine.

But I don't want to reference this as a precompiled component.

I want to create it on the fly, so when I run the build of the web application, the assembly is built, the reference to the assembly added and then the web application code can use it further.

Now this is exactly the scenario for the build providers, but the problem is that the build providers don't work with this type of application.

I have managed to run the assembly generation tool like so:

    <Target Name="BeforeBuild">
      <Exec Command="CreateAssembly.exe config.xml"/>
    </Target>

But no luck with dinamically referencing the generated assembly.

I'm stuck, any ideas?
Thanks.
Simulate build provider in ASP.NET Web Application (.Net 2.0)
===

I am working with .Net 2.0 ASP.NET Web Application.

I am programmaticaly creating an assembly containing namespace and classes specified within xml file in the web application.
I have created a separate library that does that, I get the assembly and that's fine.

But I don't want to reference this as a precompiled component.

I want to create it on the fly, so when I run the build of the web application, the assembly is built, the reference to the assembly added and then the web application code can use it further.

Now this is exactly the scenario for the build providers, but the problem is that the build providers don't work with this type of application.

I have managed to run the assembly generation tool like so:

    <Target Name="BeforeBuild">
      <Exec Command="CreateAssembly.exe config.xml"/>
    </Target>

But no luck with dinamically referencing the generated assembly.

I'm stuck, any ideas?
Thanks.