2 Comments

  1. Tom Phan

    Kavitha,

    Yes that solution requires reference to System.Web.Http. If you don’t want to reference reference to System.Web.Http, you can look into HostBuilder in .Net Core 2.1. Keep in mind that it’s only in preview 1 release. I haven’t tried using Unity with HostBuilder yet so not sure if they work together.

  2. Kavitha

    Hi,

    Thanks for a great article. Actually I was trying the same to use unity in my console application. But dependency resolver requires a reference to System.Web.Http which is not available for a console application. Could you please guide me how to achieve this?
    Thanks,
    Kavitha

Leave a Reply