TinyIoC icon indicating copy to clipboard operation
TinyIoC copied to clipboard

Nuget as DLL not CS

Open ghostsquad opened this issue 11 years ago • 4 comments

When installed via NuGet it adds a CS file to your project(s). If you have multiple projects, and they reference each other, you can't put TinyIoC into both projects, as the build will fail with ambiguous call errors. It also may prevent builds due to stylecop or fxcop errors.

ghostsquad avatar Apr 07 '14 02:04 ghostsquad

I usually put TinyIoC in a "core" project and have all the other projects use that version.

Daniel15 avatar Apr 08 '14 04:04 Daniel15

@grumpydev I'd suggest distributing this as a .pp so people can get benefit of namespace transformations when installing. Also consider putting the content in an App_Packages folder following this convention?

@ghostsquad, @Daniel15 Future version will let you internalize the container via conditional compilation symbol https://github.com/grumpydev/TinyIoC/pull/59

damianh avatar Oct 14 '14 13:10 damianh

I suppose have 2 nuget packages would solve this as well. TinyIoc.Dll and TinyIoc (CS file)

ghostsquad avatar Oct 15 '14 02:10 ghostsquad

I don't understand how a DLL is less convenient. The .CS file packaging is a pain. Our team solved this in the same way suggested by @Daniel15, but it seems messy and unnecessary.

goldsam avatar Sep 22 '17 16:09 goldsam