---
title: "Discussion on \"How To Use IServiceCollection in Console Applications – What You Need To Know\" | Hashnode"
description: "Discussion on \"How To Use IServiceCollection in Console Applications – What You Need To Know\". How can you use an IServiceCollection in console applications to get dependency injection? Is this a viable option if you don't want to use Autofac?"
url: "https://hashnode.com/posts/how-to-use-iservicecollection-in-console-applications-what-you-need-to-know/664b3b54736ae8b996310db3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Use IServiceCollection in Console Applications – What You Need To Know](https://hashnode.devleader.ca/how-to-use-iservicecollection-in-console-applications-what-you-need-to-know?utm_source=hashnode&utm_medium=feed)

How can you use an IServiceCollection in console applications to get dependency injection? Is this a viable option if you don't want to use Autofac?

May 20, 2024 · 4 min read · hashnode.devleader.ca  
Read the article

-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#coding](https://hashnode.com/tag/coding)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Dev Leader](https://hashnode.com/@devleader)

@devleader · Seattle, Washington

  
[View profile](https://hashnode.com/@devleader)

Bridging the gap between development and leadership roles

I'm a software engineering professional with over a decade of hands-on experience creating software and managing engineering teams. I graduated from the University of Waterloo in Honours Computer Engineering in 2012. I started blogging at https://www.devleader.ca in order to share my experiences about leadership, managing engineers, and 20+ years of programming. I'm the author of Dev Leader Weekly, which you can find here: https://devleaderweekly.substack.com And I create YouTube videos here: https://www.youtube.com/@DevLeader

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
