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 Risposta
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",

con risposta un anno fa
  • Glad, you were you able to unblock yourself. Please reach out to us here if you have any questions related to to CodeCatalyst.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande