How do I set the source location used by the CodeCatalyst CDKDeploy stage?

0

I have a workflow in CodeCatalyst which attempts a build and deploy of my C# application.

The build stage is quite simple and uses dotnet build --configuration Release. If I download the artefact I can see that the built files live in the /bin/Release/net6.0 folder.

However the CDK Deploy stage is always failing as it is looking in /bin/Debug/net6.0 folder.

How do I configure the CDKDeploy stage to look in the Release folder?

1 Answer
1

Nevermind, I have found it.

In the cdk.json for the CDK Project, I can specify the configuration flag for the dotnet run command:

e.g.

"app": "dotnet run --configuration Release --project MyProject.CDK.csproj",

answered a year ago
  • Glad, you were you able to unblock yourself. Please reach out to us here if you have any questions related to to CodeCatalyst.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions