diff --git a/csharp/my-widget-service/cdk.json b/csharp/my-widget-service/cdk.json index 00360290d7..2a2e3f5c0e 100644 --- a/csharp/my-widget-service/cdk.json +++ b/csharp/my-widget-service/cdk.json @@ -1,3 +1,3 @@ { - "app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp2.1/MyWidgetService.dll" + "app": "dotnet src/MyWidgetService/bin/Debug/netcoreapp3.0/MyWidgetService.dll" } diff --git a/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj b/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj index 664d5fee31..86a92b8263 100644 --- a/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj +++ b/csharp/my-widget-service/src/MyWidgetService/MyWidgetService.csproj @@ -2,14 +2,14 @@ Exe - netcoreapp2.1 + netcoreapp3.0 - - - - + + + + diff --git a/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs b/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs index 1d14efb2d7..37e6c0f93a 100644 --- a/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs +++ b/csharp/my-widget-service/src/MyWidgetService/MyWidgetServiceStack.cs @@ -13,10 +13,10 @@ public MyWidgetServiceStack(Construct parent, string id, IStackProps props) : ba var bucket = new Bucket(this, "WidgetStore", null); var handler = new Function(this, "WidgetHandler", new FunctionProps { - Runtime = Runtime.NODEJS_8_10, - Code = AssetCode.Asset("src/MyWidgetService/resources"), + Runtime = Runtime.NODEJS_10_X, + Code = AssetCode.FromAsset("src/MyWidgetService/resources"), Handler = "widgets.main", - Environment = new Dictionary{ + Environment = new Dictionary{ { "BUCKET", bucket.BucketName } } });