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 réponse
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",

répondu il y a un an
  • Glad, you were you able to unblock yourself. Please reach out to us here if you have any questions related to to CodeCatalyst.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions