Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running cdk deploy on capitalize-string #294

Closed
kairs opened this issue May 22, 2020 · 3 comments · Fixed by #1118
Closed

Error running cdk deploy on capitalize-string #294

kairs opened this issue May 22, 2020 · 3 comments · Fixed by #1118
Labels
bug This issue is a bug. effort/small Small work item – less than a day of effort language/dotnet Related to .NET examples needs-reproduction This issue needs reproduction. p1

Comments

@kairs
Copy link

kairs commented May 22, 2020

🐛 Bug Report

What is the problem?

Running the "capitalize-string" causes an error in "cdk deploy"
https://github.com/aws-samples/aws-cdk-examples/tree/master/csharp/capitalize-string#this-project

Ref: MSBUILD : error MSB1008: Only one project can be specified.

This seems to be related to cdk.json (https://github.com/aws-samples/aws-cdk-examples/blob/master/csharp/capitalize-string/cdk.json) where 2 builds are specified

Reproduction Steps

Clone the repository and follow the readme here:
https://github.com/aws-samples/aws-cdk-examples/tree/master/csharp/capitalize-string#build--deploy

Verbose Log

cdk deploy
(node:24072) ExperimentalWarning: The fs.promises API is experimental `
Microsoft (R) Build Engine version 16.6.0+5ff7b0c9e for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1008: Only one project can be specified.
Switch: dotnet

For switch syntax, type "MSBuild -help"
Subprocess exited with error 1

Environment

  • CDK CLI Version: 1.41.0 (build 9e071d2)
  • Example: capitalize-string
  • Example Version:
  • OS: Windows 10
  • Language: csharp
@kairs kairs added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels May 22, 2020
@SomayaB SomayaB added the language/dotnet Related to .NET examples label May 26, 2020
@NGL321 NGL321 added needs-reproduction This issue needs reproduction. p1 and removed needs-triage This issue or PR still needs to be triaged. labels Jun 17, 2020
@NGL321 NGL321 added the effort/small Small work item – less than a day of effort label Sep 7, 2020
@bcreedon
Copy link

I ran into the same problem. Changed the cdk.json to this, and it worked:

{
"app": "dotnet run -p src/CapitalizeString/CapitalizeString.csproj"
}

@asoursos
Copy link

Try changing ; to && like:

"app": "dotnet publish -c Release CapitalizeStringHandler/src/CapitalizeStringHandler && dotnet run -p src/CapitalizeString"

@NGL321 NGL321 removed their assignment Jul 19, 2021
kaiz-io pushed a commit to kaiz-io/kaiz-aws-cdk-examples that referenced this issue Dec 28, 2024
kaiz-io added a commit that referenced this issue Dec 28, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. effort/small Small work item – less than a day of effort language/dotnet Related to .NET examples needs-reproduction This issue needs reproduction. p1
Projects
None yet
5 participants