0

I have an open source project where I am having to instruct users to place a dll in c:\NPEG.dll https://github.com/leblancmeneses/AngularKendo.IntegrationTests/blob/master/AngularKendo.IntegrationTests/CodeTemplates/Scaffolders/T4WithNUnitFeature/T4WithNUnitFeatureTemplate.cs.t4

Instead I would like to support: <#@ assembly name="$(TargetDir)NPEG.dll" #> https://github.com/leblancmeneses/RobustHaven.IntegrationTests/blob/master/T4/CodeTemplates/Scaffolders/T4WithNUnitFeature/T4WithNUnitFeatureTemplate.cs.t4

However, this results in references messing, assembly loading error because it cannot be found.

NPEG.dll will be in the bin directory.

Does anyone know how I can resolve a relative dll with T4Scaffolding?

Edit

Steps to Reproduce

I've checked in the csproj changes. Assembly reference should work with both: "NPEG.dll" and "$(myLibFolder)NPEG.dll" - however, it does not

.

  Scaffold T4WithNUnitFeature "Gherkin\NgModelDotNotationIsInitialized.feature" -Force

References

Thanks for the help.

Leblanc Meneses
  • 3,001
  • 1
  • 23
  • 26
  • Have you seen [this one](http://stackoverflow.com/questions/13145821/t4-code-generation-during-build-custom-assembly-reference)? It looks like what you need. – Stepan Burguchev May 19 '14 at 10:51
  • I've tried those links in the past and just created a branch with my changes. (see question edit) I believe it has to do with T4Scaffolding specific host not passing those variables down to my script. - thanks – Leblanc Meneses May 21 '14 at 18:13

0 Answers0