Skip to content

Commit

Permalink
Revert to .net6 for the slack-bot-poc as lambda doesn't easily suppor…
Browse files Browse the repository at this point in the history
…t .net7 yet.
  • Loading branch information
chrissimon-au committed Jan 12, 2024
1 parent 0114318 commit f3e386e
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# For details on usage and latest versions, see:
# https://mcr.microsoft.com/en-us/product/devcontainers/dotnet/about
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:7.0-bookworm
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:6.0-bookworm

# For dotnet-adr - currently non-functional due to https://github.com/endjin/dotnet-adr/issues/203
# # Install other dotnet versions (required for adr tool and dotnet suggest)
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build: Language Server Tests",
"program": "${workspaceFolder}/${config:languageServerTestsPath}/bin/Debug/net7.0/Contextive.LanguageServer.Tests.dll",
"program": "${workspaceFolder}/${config:languageServerTestsPath}/bin/Debug/net6.0/Contextive.LanguageServer.Tests.dll",
//"args": ["--filter-test-case","Can handle configuration value changing"],
"cwd": "${workspaceFolder}/${config:languageServerTestsPath}",
"stopAtEntry": false,
Expand Down
6 changes: 4 additions & 2 deletions src/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ open Fake.Core.TargetOperators

"Cloud-Api-Publish" ==> "Cloud-Deploy-Local"

"Cdk-Bootstrap-Local" ==> "Cloud-Deploy-Local"

"Cloud-Deploy-Local" ==> "Cloud-Api-Test"

// *** Start Build ***
// Target.runOrDefault "Cloud-Api-Test"
Target.runOrDefault "Cloud-Deploy"
Target.runOrDefault "Cloud-Api-Test"
// Target.runOrDefault "Cloud-Deploy"
// Target.runOrDefault "Cdk-Bootstrap-Local"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<!--<RuntimeIdentifier>linux-x64</RuntimeIdentifier>-->
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<AWSProjectType>Lambda</AWSProjectType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/src/Contextive.Cloud/Contextive.Cloud.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<!-- Roll forward to future major versions of the netcoreapp as needed -->
<RollForward>Major</RollForward>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/cloud/src/Contextive.Cloud/LambdaFunctions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let props construct name entryPointModule (definitions: IBucket) (eventBus: IEve

FunctionProps(
Runtime = Runtime.DOTNET_6,
Code = Code.FromAsset(assemblyPath "../../../../Contextive.Cloud.Api/bin/Debug/net7.0/linux-x64/publish"),
Code = Code.FromAsset(assemblyPath "../../../../Contextive.Cloud.Api/bin/Debug/net6.0/linux-x64/publish"),
Handler = $"Contextive.Cloud.Api::{entryPointModule}::FunctionHandlerAsync",
Description = $"Contextive {name}",
MemorySize = Nullable<float>(256.0),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/core/Contextive.Core/Contextive.Core.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<WarnOn>3390;$(WarnOn)</WarnOn>
</PropertyGroup>
<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/paket.dependencies
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source https://api.nuget.org/v3/index.json

storage: none
framework: net7.0
framework: net6.0
nuget Amazon.CDK.AWS.Apigatewayv2.Alpha
nuget Amazon.CDK.AWS.Apigatewayv2.Integrations.Alpha
nuget Amazon.CDK.Lib
Expand Down
7 changes: 6 additions & 1 deletion src/paket.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
STORAGE: NONE
RESTRICTION: == net7.0
RESTRICTION: == net6.0
NUGET
remote: https://api.nuget.org/v3/index.json
Amazon.CDK.Asset.AwsCliV1 (2.2.201)
Expand Down Expand Up @@ -330,6 +330,7 @@ NUGET
Microsoft.Extensions.Logging.Abstractions (>= 8.0)
Microsoft.Extensions.Logging.Configuration (>= 8.0)
Microsoft.Extensions.Options (>= 8.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Text.Json (>= 8.0)
Microsoft.Extensions.Options (8.0)
Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0)
Expand All @@ -341,6 +342,7 @@ NUGET
Microsoft.Extensions.Options (>= 8.0)
Microsoft.Extensions.Primitives (>= 8.0)
Microsoft.Extensions.Primitives (8.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
Microsoft.IO.RecyclableMemoryStream (2.3.2)
Microsoft.VisualStudio.Threading (17.8.14)
Microsoft.Bcl.AsyncInterfaces (>= 7.0)
Expand Down Expand Up @@ -408,6 +410,7 @@ NUGET
SimpleInfoName (2.2)
System.CodeDom (8.0)
System.Collections.Immutable (8.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.IO.Hashing (8.0)
System.IO.Pipelines (8.0)
System.Management (8.0)
Expand All @@ -417,7 +420,9 @@ NUGET
System.Security.AccessControl (6.0)
System.Security.Principal.Windows (5.0)
System.Text.Encodings.Web (8.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Text.Json (8.0)
System.Runtime.CompilerServices.Unsafe (>= 6.0)
System.Text.Encodings.Web (>= 8.0)
System.Threading.Channels (8.0)
System.Threading.Tasks.Extensions (4.5.4)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OtherFlags>--nowarn:46</OtherFlags>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit f3e386e

Please sign in to comment.