aws-cdk-examples icon indicating copy to clipboard operation
aws-cdk-examples copied to clipboard

Error running cdk deploy on capitalize-string

Open kairs opened this issue 4 years ago • 2 comments

:bug: 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 avatar May 22 '20 09:05 kairs