tags:

views:

22

answers:

1

using code smith, i'm trying to reference an assembly that i'm generating as output.

the idea is to create the assembly in a build step, then in a later build step reference this assembly for further generation and output from the methods in the assembly.

seems their help is a bit lacking in this area. it says something to the effect of being able to GAC the assembly you wish to reference and then use it in an Assembly directive.

however during the execute, i keep getting error CODESMITH0001: Unable to resolve assembly

any ideas as to where or how i may be thinking about this wrong?

thanks

+1  A: 

Hello,

Whose help is a bit lacking in this area? I'd like to get this taken care of and resolved. What does your assembly directive look like? Are you using a Path="....\Common" attribute to the assembly you a compiling in the previous step?

Thanks -Blake Niemyjski

Blake Niemyjski
<%@ Assembly Name="Testproj20" Path="Testproj20.dll" %> the dll is located in the same folder as as the template and it's a 2.0 project. ultimately it will be a 4.0 project and i've seen the "unofficial" guide to getting this to work with 4.0 assemblies.thanks for the help.
Beta033
your comment clued me in to the fact that my path may be incorrect and it seems it is. i get another error about a missing get or set accessor, but seeing as the class is just an empty shell, this doesn't surprise me. Now to get it to work with 4.0 dlls and the GAC.
Beta033
ok, so turns out i'm simply an idiot. the whole problem with the GAC was that it didn't work out of the box with .net 4.0 and then the rest of my problem was that the path was wrong.
Beta033
What was the issue with the GAC? Did you get this working?
Blake Niemyjski
I did, as soon as i got the 4.0 stuff set up correctly, everything magically fell into place.
Beta033
Awesome! We are working on the next major version which will support .NET 4.0 as well as some very cool things!
Blake Niemyjski