# Pipeline Build Step for non-Dockerized dotNetCore Apps

**URL:** <https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940>\
**Category:** Pipeline Workflows\
**Created:** [August 30, 2023, 8:51am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940 "2023-08-30T08:51:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijlearning](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vijlearning](https://community.codefresh.io/u/vijlearning)\
**Post date:** [August 30, 2023, 8:51am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/1 "2023-08-30T08:51:09Z")

</div>

Hi there, I am new to Codefresh and working on a .Net Core app. It does not have a Docker file yet but we are working towards dockerizing our apps. But for now, if I have to use CF for CI purposes, are there any pipeline examples to build a traditional app , for ex., execute a dotnet build step. Appreciate your response as I tried to research on the internet but did not find any useful info. Thanks.

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [August 30, 2023, 10:34am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/2 "2023-08-30T10:34:20Z")

</div>

Hello

Have you seen the example?

> **[C# on .NET Core](https://codefresh.io/docs/docs/example-catalog/ci-examples/dotnet/)**
>
> How to build a C# project in Codefresh

---

<div class="post-metadata">

**Author:** ![vijlearning](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vijlearning](https://community.codefresh.io/u/vijlearning)\
**Post date:** [August 30, 2023, 10:53am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/3 "2023-08-30T10:53:14Z")

</div>

But this one is using Docker image to build the app. We do not want to use Docker yet…is that viable in Codefresh. I do understand the underlying mechanism is through Docker for Codefresh pipelines.

Regards  
Vijaya

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [August 31, 2023, 11:12am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/4 "2023-08-31T11:12:21Z")

</div>

Hello

Ignore the last step that is building the Docker image. The previous steps just run dotnet. Currently they run “dotnet test”, but if you change the command to “dotnet build”, it should work like you expect.

did you try that and it didn’t work?

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [August 31, 2023, 11:14am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/5 "2023-08-31T11:14:12Z")

</div>

You can read about Codefresh pipelines and how they work in the [intro](https://codefresh.io/docs/docs/pipelines/introduction-to-codefresh-pipelines/)

You can use Codefresh just fine for application that are not Dockerized yet.

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [August 31, 2023, 11:15am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/6 "2023-08-31T11:15:46Z")

</div>

Basically something like this

```auto
  build_my_app:
    title: Building my source code
    image: mcr.microsoft.com/dotnet/core/sdk:3.0
    working_directory: './my-app-subdir'
    commands:
      - dotnet build

```

---

<div class="post-metadata">

**Author:** ![vijlearning](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vijlearning](https://community.codefresh.io/u/vijlearning)\
**Post date:** [August 31, 2023, 10:01pm UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/7 "2023-08-31T22:01:11Z")

</div>

Thanks so much Kostis, I will try today. I am in Australia hence the time difference.

---

<div class="post-metadata">

**Author:** ![vijlearning](https://avatars.discourse-cdn.com/v4/letter/v/439d5e/32.png) [@vijlearning](https://community.codefresh.io/u/vijlearning)\
**Post date:** [August 31, 2023, 11:43pm UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/8 "2023-08-31T23:43:52Z")

</div>

Hi Kostis,  
I am unable to use the image as it is restricted in our company. However, could you please advise how I can select a particular image like on what basis I can decide this is the right image for my project.

---

<div class="post-metadata">

**Author:** ![Kostis](https://sea1.discourse-cdn.com/flex019/user_avatar/community.codefresh.io/kostis/32/391_2.png) [@Kostis](https://community.codefresh.io/u/Kostis)\
**Post date:** [September 1, 2023, 7:53am UTC](https://community.codefresh.io/t/pipeline-build-step-for-non-dockerized-dotnetcore-apps/940/9 "2023-09-01T07:53:07Z")

</div>

The image used was just an example.

You should create your own image probably with the correct SDK version. It depends on your app.

Make sure also to read the following [Building your app · Codefresh | Docs](https://codefresh.io/docs/docs/ci-cd-guides/packaging-compilation/)
