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回答
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",

回答済み 1年前
  • Glad, you were you able to unblock yourself. Please reach out to us here if you have any questions related to to CodeCatalyst.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ