Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,15 @@ jobs:
with:
domain: ${{github.repository_owner}}

- name: Install .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"

- name: Install .NET 5
- name: Install .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
dotnet-version: "6.0.x"

- name: Install .NET 6
- name: Install .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: Build
run: ./build.sh --target build
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,15 @@ jobs:
with:
domain: ${{github.repository_owner}}

- name: Install .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"

- name: Install .NET 5
- name: Install .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
dotnet-version: "6.0.x"

- name: Install .NET 6
- name: Install .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: Build
run: ./build.sh --target build
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,15 @@ jobs:
with:
domain: ${{github.repository_owner}}

- name: Install .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"

- name: Install .NET 5
- name: Install .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
dotnet-version: "6.0.x"

- name: Install .NET 6
- name: Install .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: Build
run: .\build.ps1 --target build
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,15 @@ jobs:
- name: Install NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Install .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"

- name: Install .NET 5
- name: Install .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: "5.0.x"
dotnet-version: "6.0.x"

- name: Install .NET 6
- name: Install .NET 7
uses: actions/setup-dotnet@v1
with:
dotnet-version: "6.0.x"
dotnet-version: "7.0.x"

- name: Build & Test
run: ./build.sh
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# LocalStack .NET Client Change Log

### [v1.4.0](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.4.0)

#### 1. New Features
- New endpoints in the official [Localstack Python Client](https://github.com/localstack/localstack-python-client) v1.39 have been added.
- Fault Injection Service (FIS)
- Marketplace Metering
- Amazon Transcribe
- Amazon MQ

#### 2. General
- .NET 7 support added
- .NET 5 ve .NET Core 3.1 runtimes removed from Nuget pack (.netstandard2.0 remains)
- Tested against LocalStack v1.3.1 container.
- AWSSDK.Core set to 3.7.103 as the minimum version.
- **Warning** In this version, the ServiceURL property of Amazon.Runtime.ClientConfig adds a trailing `/` to every URL set.
For example, if `http://localhost:1234` is set as the value, it will become `http://localhost:1234/`
- Following depedencies updated from v3.0.0 to v3.1.32 in LocalStack.Client.Extensions for security reasons
- Microsoft.Extensions.Configuration.Abstractions
- Microsoft.Extensions.Configuration.Binder
- Microsoft.Extensions.DependencyInjection.Abstractions
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Options.ConfigurationExtensions

#### 3. Bug Fixes
- Write a timestream record using .Net AWSSDK NuGet packages ([#20](https://github.com/localstack-dotnet/localstack-dotnet-client/issues/20))
- Session does not honor UseSsl and always sets UseHttp to true ([#16](https://github.com/localstack-dotnet/localstack-dotnet-client/issues/16))

### [v1.3.1](https://github.com/localstack-dotnet/localstack-dotnet-client/releases/tag/v1.3.1)

#### 1. New Features
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 LocalStack.NET
Copyright (c) 2023 LocalStack.NET

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ application development.

## <a name="supported-platforms"></a> Supported Platforms

- [.NET 7.0](https://dotnet.microsoft.com/download/dotnet/7.0)
- [.NET 6.0](https://dotnet.microsoft.com/download/dotnet/6.0)
- [.NET 5.0](https://dotnet.microsoft.com/download/dotnet/5.0)
- [.NET Standard 2.0](https://docs.microsoft.com/en-us/dotnet/standard/net-standard)
- [.NET 4.6.1 and Above](https://dotnet.microsoft.com/download/dotnet-framework)

Expand Down
6 changes: 0 additions & 6 deletions build/LocalStack.Build/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
global using Cake.Common.IO;
global using Cake.Common.IO.Paths;
global using Cake.Common.Tools.DotNet.MSBuild;
global using Cake.Common.Tools.DotNetCore;
global using Cake.Common.Tools.DotNetCore.Build;
global using Cake.Common.Tools.DotNetCore.MSBuild;
global using Cake.Common.Tools.DotNetCore.NuGet.Push;
global using Cake.Common.Tools.DotNetCore.Pack;
global using Cake.Common.Tools.DotNetCore.Test;
global using Cake.Common.Tools.NuGet;
global using Cake.Common.Tools.NuGet.Install;
global using Cake.Common.Tools.NuGet.List;
Expand Down
6 changes: 3 additions & 3 deletions build/LocalStack.Build/LocalStack.Build.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>
<LangVersion>latest</LangVersion>
<NoWarn>CA1303</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Cake.Docker" Version="1.1.2" />
<PackageReference Include="Cake.Frosting" Version="2.2.0" />
<PackageReference Include="Cake.Docker" Version="1.2.0" />
<PackageReference Include="Cake.Frosting" Version="3.0.0" />
</ItemGroup>
</Project>
30 changes: 18 additions & 12 deletions build/LocalStack.Build/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
return new CakeHost()
using Cake.Common.Tools.DotNet;
using Cake.Common.Tools.DotNet.Build;
using Cake.Common.Tools.DotNet.NuGet.Push;
using Cake.Common.Tools.DotNet.Pack;
using Cake.Common.Tools.DotNet.Test;

return new CakeHost()
.UseContext<BuildContext>()
.Run(args);

Expand Down Expand Up @@ -41,11 +47,11 @@ public sealed class BuildTask : FrostingTask<BuildContext>
{
public override void Run(BuildContext context)
{
context.DotNetCoreBuild(context.SlnFilePath,
new DotNetCoreBuildSettings
{
Configuration = context.BuildConfiguration
});
context.DotNetBuild(context.SlnFilePath,
new DotNetBuildSettings
{
Configuration = context.BuildConfiguration
});
}
}

Expand All @@ -56,7 +62,7 @@ public override void Run(BuildContext context)
{
const string testResults = "results.trx";

var settings = new DotNetCoreTestSettings
var settings = new DotNetTestSettings
{
NoRestore = !context.ForceRestore,
NoBuild = !context.ForceBuild,
Expand Down Expand Up @@ -115,7 +121,7 @@ public override void Run(BuildContext context)
{
string testFilePrefix = targetFramework.Replace(".", "-");
settings.ArgumentCustomization = args => args.Append($" --logger \"trx;LogFileName={testFilePrefix}_{testResults}\"");
context.DotNetCoreTest(testProjectPath, settings);
context.DotNetTest(testProjectPath, settings);
}
context.Warning("==============================================================");
}
Expand All @@ -137,16 +143,16 @@ public override void Run(BuildContext context)

FilePath packageCsProj = context.PackageIdProjMap[context.PackageId];

var settings = new DotNetCorePackSettings
var settings = new DotNetPackSettings
{
Configuration = context.BuildConfiguration,
OutputDirectory = context.ArtifactOutput,
MSBuildSettings = new DotNetCoreMSBuildSettings()
MSBuildSettings = new DotNetMSBuildSettings()
};

settings.MSBuildSettings.SetVersion(context.PackageVersion);

context.DotNetCorePack(packageCsProj.FullPath, settings);
context.DotNetPack(packageCsProj.FullPath, settings);
}

private static void ValidatePackageVersion(BuildContext context)
Expand Down Expand Up @@ -201,7 +207,7 @@ public override void Run(BuildContext context)
string packageSecret = context.PackageSecret;
string packageSource = context.PackageSourceMap[context.PackageSource];

context.DotNetCoreNuGetPush(packageFile.Path.FullPath, new DotNetCoreNuGetPushSettings()
context.DotNetNuGetPush(packageFile.Path.FullPath, new DotNetNuGetPushSettings()
{
ApiKey = packageSecret,
Source = packageSource,
Expand Down
2 changes: 1 addition & 1 deletion src/LocalStack.Client.Extensions/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 LocalStack.NET
Copyright (c) 2023 LocalStack.NET

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
118 changes: 59 additions & 59 deletions src/LocalStack.Client.Extensions/LocalStack.Client.Extensions.csproj
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net5.0;net6.0</TargetFrameworks>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<AssemblyName>LocalStack.Client.Extensions</AssemblyName>
<RootNamespace>LocalStack.Client.Extensions</RootNamespace>
<LangVersion>latest</LangVersion>
<Version>1.1.3</Version>

<Title>LocalStack.NET Client</Title>
<Description>
Extensions for the LocalStack.NET Client to integrate with .NET Core configuration and dependency injection frameworks. The extensions also provides wrapper around AWSSDK.Extensions.NETCore.Setup to use both LocalStack and AWS side-by-side
</Description>
<PackageTags>aws-sdk, localstack, client-library, dotnet, dotnet-core</PackageTags>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.2" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />

<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.0.0" />
</ItemGroup>

<Target Name="PreBuild" AfterTargets="PreBuildEvent">
<ItemGroup>
<LicenseFile Include="../../LICENSE" />
</ItemGroup>
<ItemGroup>
<ReadmeFile Include="../../README.md" />
</ItemGroup>
<Copy SourceFiles="@(LicenseFile)" DestinationFiles="@(LicenseFile->'./LICENSE.txt')" SkipUnchangedFiles="true" />
<Copy SourceFiles="@(ReadmeFile)" DestinationFiles="@(ReadmeFile->'./README.md')" SkipUnchangedFiles="true" />
</Target>

<ItemGroup>
<None Include="LICENSE.txt" Pack="true" PackagePath="">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="README.md" Pack="true" PackagePath="">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="../../assets/localstack-dotnet-square.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\LocalStack.Client\LocalStack.Client.csproj" />
</ItemGroup>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<AssemblyName>LocalStack.Client.Extensions</AssemblyName>
<RootNamespace>LocalStack.Client.Extensions</RootNamespace>
<LangVersion>latest</LangVersion>
<Version>1.1.3</Version>

<Title>LocalStack.NET Client</Title>
<Description>
Extensions for the LocalStack.NET Client to integrate with .NET Core configuration and dependency injection frameworks. The extensions also provides wrapper around AWSSDK.Extensions.NETCore.Setup to use both LocalStack and AWS side-by-side
</Description>
<PackageTags>aws-sdk, localstack, client-library, dotnet, dotnet-core</PackageTags>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.2" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />

<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="3.1.32" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.1.32" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.32" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.32" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="3.1.32" />
</ItemGroup>

<Target Name="PreBuild" AfterTargets="PreBuildEvent">
<ItemGroup>
<LicenseFile Include="../../LICENSE" />
</ItemGroup>
<ItemGroup>
<ReadmeFile Include="../../README.md" />
</ItemGroup>
<Copy SourceFiles="@(LicenseFile)" DestinationFiles="@(LicenseFile->'./LICENSE.txt')" SkipUnchangedFiles="true" />
<Copy SourceFiles="@(ReadmeFile)" DestinationFiles="@(ReadmeFile->'./README.md')" SkipUnchangedFiles="true" />
</Target>

<ItemGroup>
<None Include="LICENSE.txt" Pack="true" PackagePath="">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="README.md" Pack="true" PackagePath="">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="../../assets/localstack-dotnet-square.png" Pack="true" PackagePath="" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\LocalStack.Client\LocalStack.Client.csproj" />
</ItemGroup>

</Project>
Loading