dadhi / DryIoc

DryIoc is fast, small, full-featured IoC Container for .NET
MIT License
1.03k stars 122 forks source link

Compile Time Generation problem with .net6.0 #530

Open sqeezy opened 2 years ago

sqeezy commented 2 years ago

Using the Readme I was not able to get the default example for compile time generation of the container to work. Sadly my knowledge regarding T4 templates is sparse. Could you give me a pointer on what I did wrong?

Example Code

The t4 template is shown as follows by Rider: image

Running the template produces the following error: image

dadhi commented 2 years ago

Hi, @sqeezy Thanks for trying the comp-time. I am always greedy for the feedback. Regarding the error, the DryIoc.dll is not found by template, and it is hard to tell why because I don't have access to the provided link https://github.com/sqeezy/DryIocEvaluation/tree/main/CompileTimeIoc

sqeezy commented 2 years ago

My bad on this one. I forgot that this repo was private. I changed the visibility.

Happy to give feedback, your library is helping us a lot.

dadhi commented 2 years ago

@sqeezy Thanks for the access, I will check a bit later.