# .Net Core Console App APM Integrations

**URL:** <https://discuss.elastic.co/t/net-core-console-app-apm-integrations/271909>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [May 2, 2021, 4:18pm UTC](https://discuss.elastic.co/t/net-core-console-app-apm-integrations/271909 "2021-05-02T16:18:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KARAOGLU](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@KARAOGLU](https://discuss.elastic.co/u/KARAOGLU)\
**Post date:** [May 2, 2021, 4:18pm UTC](https://discuss.elastic.co/t/net-core-console-app-apm-integrations/271909/1 "2021-05-02T16:18:46Z")

</div>

Hello,

Can we only use APM in .net web-based applications? I was able to run it in a simple web-based application, but I could not run it in a console application with the same settings.

I haven't seen a sample or working code for console .Net core 5.0. Unfortunately, I could not see an example for console applications in the documentation.

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [May 4, 2021, 5:39am UTC](https://discuss.elastic.co/t/net-core-console-app-apm-integrations/271909/2 "2021-05-04T05:39:27Z")

</div>

Yes, you can use APM in any .NET application, including console applications and services. Take a look at the [sample console application in the respository](https://github.com/elastic/apm-agent-dotnet/tree/5addb61d17963acfb1ecbc8930bc2f5727a85826/sample/SampleConsoleNetCoreApp).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 25, 2021, 1:39am UTC](https://discuss.elastic.co/t/net-core-console-app-apm-integrations/271909/3 "2021-05-25T01:39:39Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
