Skip to content

Error running cdk deploy on capitalize-string #294

@kairs

Description

@kairs

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.effort/smallSmall work item – less than a day of effortlanguage/dotnetRelated to .NET examplesneeds-reproductionThis issue needs reproduction.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions