Setup CircleCI for ASP.NET project

I’m setting CI/CD Pipeline for my ASP.NET project using CircleCI.

CircleCI already supported Window Machine. So I think it’s possible to use CircleCI for ASP.NET proejct.
By following the documentation of CircleCI, I can config for .NET Core project (because I can use command line to build and run exe file of .NET Core project)

version: 2.1

  win: circleci/windows@1.0.0

      name: win/vs2019
      shell: powershell.exe
      - checkout
      - restore_cache:
            - dotnet-packages-v1-{{ checksum "circleci-demo-windows.csproj" }}
      - run:
          name: "Install project dependencies"
          command: dotnet.exe restore
      - save_cache:
            - C:\Users\circleci\.nuget\packages
          key: dotnet-packages-v1-{{ checksum "circleci-demo-windows.csproj" }}

      - run:
          name: "Run Build step"
          command: dotnet.exe publish -c Release -r win10-x64
      - run:
          name: "Test the executable"
          command: .\bin\Release\netcoreapp2.1\win10-x64\publish\circleci-demo-windows.exe
      - store_artifacts:
          path: .\bin\Release\netcoreapp2.1\win10-x64\publish\circleci-demo-windows.exe

But It seems like I can’t use commands such as dotnet.exe publish... for .NET framework. So how I can setup CircleCi for ASP.NET ?

Sorry for my naive question, I have searched around but couldn’t find any tutorials about CircleCI and .net framework.

Hello, I’m also trying to configure .Net Framework projects in Circle CI, did you figure anything out?

Hi @carolesr! Does this guide help? I’m happy to help you find other resources if it doesn’t.

Hello Katy,
actually, i’m having some trouble configuring CircleCI in my projects because they’re .NET Framework, not Core, could you help me out?

1 Like

Sure! Is there a specific problem you have?

BTW, here’s another example of a Windows setup.