Skip to content

Commit

Permalink
refactor: remove third party bouncy castle from core and move cloudfr…
Browse files Browse the repository at this point in the history
…ont signers and ec2 decrypt password to extension packages
  • Loading branch information
peterrsongg committed Aug 13, 2024
1 parent c4e2519 commit 60d5ee5
Show file tree
Hide file tree
Showing 48 changed files with 703 additions and 2,166 deletions.
17 changes: 15 additions & 2 deletions buildtools/build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
<run-tests-xunit-DependsOnTargets Condition="'$(run-tests-xunit-DependsOnTargets)'==''">build-test-wrapper;build-test-project</run-tests-xunit-DependsOnTargets>
<package-netcore-extensions-DependsOnTargets Condition="'$(package-netcore-extensions-DependsOnTargets)'==''">build-extensions</package-netcore-extensions-DependsOnTargets>
<package-crt-extensions-DependsOnTargets Condition="'$(package-crt-extensions-DependsOnTargets)'==''">build-extensions</package-crt-extensions-DependsOnTargets>
<package-cloudfront-extensions-DependsOnTargets Condition="'$(package-cloudfront-extensions-DependsOnTargets)'==''">build-extensions</package-cloudfront-extensions-DependsOnTargets>
<package-ec2-extensions-DependsOnTargets Condition="'$(package-ec2-extensions-DependsOnTargets)'==''">build-extensions</package-ec2-extensions-DependsOnTargets>
<keyscan-DependsOnTargets Condition="'$(keyscan-DependsOnTargets)'==''">build-tools</keyscan-DependsOnTargets>
<copy-license-and-notice-DependsOnTargets Condition="'$(copy-license-and-notice-DependsOnTargets)'==''">copy-dependencies</copy-license-and-notice-DependsOnTargets>
<copy-service-models-DependsOnTargets Condition="'$(copy-service-models-DependsOnTargets)'==''">copy-license-and-notice</copy-service-models-DependsOnTargets>
Expand Down Expand Up @@ -495,6 +497,16 @@
<Exec Command="..\..\..\sdk\.nuget\NuGet.exe pack ./AWSSDK.Extensions.CrtIntegration.nuspec -BasePath . -OutputDirectory ../../../Deployment/nuget" WorkingDirectory="../extensions/src/AWSSDK.Extensions.CrtIntegration" />
</Target>

<Target Name="package-cloudfront-extensions" DependsOnTargets="$(package-cloudfront-extensions-DependsOnTargets)">
<MakeDir Directories="../Deployment/nuget" />
<Exec Command="..\..\..\sdk\.nuget\NuGet.exe pack ./AWSSDK.Extensions.CloudFront.Signers.nuspec -BasePath . -OutputDirectory ../../../Deployment/nuget" WorkingDirectory="../extensions/src/AWSSDK.Extensions.CloudFront.Signers" />
</Target>

<Target Name="package-ec2-extensions" DependsOnTargets="$(package-ec2-extensions-DependsOnTargets)">
<MakeDir Directories="../Deployment/nuget" />
<Exec Command="..\..\..\sdk\.nuget\NuGet.exe pack ./AWSSDK.Extensions.EC2.DecryptPassword.nuspec -BasePath . -OutputDirectory ../../../Deployment/nuget" WorkingDirectory="../extensions/src/AWSSDK.Extensions.EC2.DecryptPassword" />
</Target>

<Target Name="copy-assemblies" DependsOnTargets="nuget-pack;build-extensions">
<Message Text="Collating assemblies for downstream doc generation" />
<PropertyGroup>
Expand Down Expand Up @@ -571,9 +583,10 @@
<PrivateKeyException Include="sdk/code-analysis/ServiceAnalysis/CertificateManager/Generated/PropertyValueRules.xml" />
<PrivateKeyException Include="sdk/test/Services/EC2/UnitTests/Custom/PasswordTest.cs" />
<PrivateKeyException Include="sdk/test/NetStandard/UnitTests/sample.rsa.private.key.txt" />
<PrivateKeyException Include="sdk/test/Services/CloudFront/UnitTests/Custom/EmbeddedResource/sample.rsa.private.key.txt" />
<PrivateKeyException Include="sdk/code-analysis/ServiceAnalysis/WorkLink/Generated/PropertyValueRules.xml" />
<PrivateKeyException Include="sdk/code-analysis/ServiceAnalysis/OpsWorksCM/Generated/PropertyValueRules.xml" />
<PrivateKeyException Include="extensions/test/CloudFront.SignersTests/EmbeddedResource/sample.rsa.private.key.txt"/>
<PrivateKeyException Include="extensions/test/EC2.DecryptPasswordTests/PasswordTest.cs"/>
</ItemGroup>

<ItemGroup>
Expand All @@ -588,7 +601,7 @@
<FileException Include="sdk/src/Core/bin/Release/net8.0/AWSSDK.Core.xml" />
<FileException Include="sdk/src/Services/S3/bin/Release/net8.0/AWSSDK.S3.xml" />
<FileException Include="Deployment/assemblies/net8.0/AWSSDK.Core.xml" />
<FileException Include="Deployment/assemblies/net8.0/AWSSDK.S3.xml" />
<FileException Include="Deployment/assemblies/net8.0/AWSSDK.S3.xml" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion docgenerator/SDKDocGeneratorLib/SdkDocGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ public class SdkDocGenerator
private static readonly IEnumerable<string> _assembliesToSkip = new HashSet<string>
{
"AWSSDK.Extensions.CrtIntegration.dll",
"AWSSDK.Extensions.NETCore.Setup.dll"
"AWSSDK.Extensions.NETCore.Setup.dll",
"AWSSDK.Extensions.CloudFront.Signers.dll",
"AWSSDK.Extensions.EC2.DecryptPassword.dll"
};

public GeneratorOptions Options { get; private set; }
Expand Down
76 changes: 76 additions & 0 deletions extensions/AWSSDK.Extensions.NetFramework.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sdk", "sdk", "{C7DC5CC7-4224-4006-97BE-A3795235132B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{0EFB912F-50E5-4FDF-B0C6-EBE235D338BD}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{D445C9DA-311F-4935-B399-173055FA4775}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Core.NetFramework", "..\sdk\src\Core\AWSSDK.Core.NetFramework.csproj", "{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.CloudFront.NetFramework", "..\sdk\src\Services\CloudFront\AWSSDK.CloudFront.NetFramework.csproj", "{2F93E709-B9D2-4BFD-989C-885F6DBF7B27}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.EC2.NetFramework", "..\sdk\src\Services\EC2\AWSSDK.EC2.NetFramework.csproj", "{03F1146F-09D6-43D4-91A9-1F2727F8655C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CloudFront.Signers.NetFramework", "src\AWSSDK.Extensions.CloudFront.Signers\AWSSDK.Extensions.CloudFront.Signers.NetFramework.csproj", "{E4433950-BB21-45E3-BB12-337C9CB167F3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.EC2.DecryptPassword.NetFramework", "src\AWSSDK.Extensions.EC2.DecryptPassword\AWSSDK.Extensions.EC2.DecryptPassword.NetFramework.csproj", "{0982F05F-A776-4C57-88CD-3102F6BAF8F0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CloudFront.Signers.Tests.NetFramework", "test\CloudFront.SignersTests\CloudFront.Signers.Tests.NetFramework.csproj", "{051DEB5D-4435-4FDF-98DE-6483897F93A7}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EC2.DecryptPassword.NetFramework", "test\EC2.DecryptPasswordTests\EC2.DecryptPassword.NetFramework.csproj", "{E11F54E7-52C1-4BDC-8AAF-B605C9B98505}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2}.Release|Any CPU.Build.0 = Release|Any CPU
{2F93E709-B9D2-4BFD-989C-885F6DBF7B27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F93E709-B9D2-4BFD-989C-885F6DBF7B27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F93E709-B9D2-4BFD-989C-885F6DBF7B27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F93E709-B9D2-4BFD-989C-885F6DBF7B27}.Release|Any CPU.Build.0 = Release|Any CPU
{03F1146F-09D6-43D4-91A9-1F2727F8655C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03F1146F-09D6-43D4-91A9-1F2727F8655C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03F1146F-09D6-43D4-91A9-1F2727F8655C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03F1146F-09D6-43D4-91A9-1F2727F8655C}.Release|Any CPU.Build.0 = Release|Any CPU
{E4433950-BB21-45E3-BB12-337C9CB167F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E4433950-BB21-45E3-BB12-337C9CB167F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E4433950-BB21-45E3-BB12-337C9CB167F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E4433950-BB21-45E3-BB12-337C9CB167F3}.Release|Any CPU.Build.0 = Release|Any CPU
{0982F05F-A776-4C57-88CD-3102F6BAF8F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0982F05F-A776-4C57-88CD-3102F6BAF8F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0982F05F-A776-4C57-88CD-3102F6BAF8F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0982F05F-A776-4C57-88CD-3102F6BAF8F0}.Release|Any CPU.Build.0 = Release|Any CPU
{051DEB5D-4435-4FDF-98DE-6483897F93A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{051DEB5D-4435-4FDF-98DE-6483897F93A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{051DEB5D-4435-4FDF-98DE-6483897F93A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{051DEB5D-4435-4FDF-98DE-6483897F93A7}.Release|Any CPU.Build.0 = Release|Any CPU
{E11F54E7-52C1-4BDC-8AAF-B605C9B98505}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E11F54E7-52C1-4BDC-8AAF-B605C9B98505}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E11F54E7-52C1-4BDC-8AAF-B605C9B98505}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E11F54E7-52C1-4BDC-8AAF-B605C9B98505}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1ED1E9CC-29A6-4F3B-A5B1-E5959C9AAAE2} = {C7DC5CC7-4224-4006-97BE-A3795235132B}
{2F93E709-B9D2-4BFD-989C-885F6DBF7B27} = {C7DC5CC7-4224-4006-97BE-A3795235132B}
{03F1146F-09D6-43D4-91A9-1F2727F8655C} = {C7DC5CC7-4224-4006-97BE-A3795235132B}
{E4433950-BB21-45E3-BB12-337C9CB167F3} = {0EFB912F-50E5-4FDF-B0C6-EBE235D338BD}
{0982F05F-A776-4C57-88CD-3102F6BAF8F0} = {0EFB912F-50E5-4FDF-B0C6-EBE235D338BD}
{051DEB5D-4435-4FDF-98DE-6483897F93A7} = {D445C9DA-311F-4935-B399-173055FA4775}
{E11F54E7-52C1-4BDC-8AAF-B605C9B98505} = {D445C9DA-311F-4935-B399-173055FA4775}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {31DDD4FF-8E79-4861-9D38-1F259E4ACBAF}
EndGlobalSection
EndGlobal
42 changes: 42 additions & 0 deletions extensions/AWSSDK.Extensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CrtIntegr
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.S3.NetStandard", "..\sdk\src\Services\S3\AWSSDK.S3.NetStandard.csproj", "{331C9F91-2F44-47CC-822C-D4F58B57F4EF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.CloudFront.Signers.NetStandard", "src\AWSSDK.Extensions.CloudFront.Signers\AWSSDK.Extensions.CloudFront.Signers.NetStandard.csproj", "{DAE9714C-3BE5-4740-970C-94F96F7835C6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.Extensions.EC2.DecryptPassword.NetStandard", "src\AWSSDK.Extensions.EC2.DecryptPassword\AWSSDK.Extensions.EC2.DecryptPassword.NetStandard.csproj", "{C8A027AB-282C-400E-893D-971A5D55DB17}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CloudFront.Signers.Tests.NetStandard", "test\CloudFront.SignersTests\CloudFront.Signers.Tests.NetStandard.csproj", "{A552BA51-D17C-4594-BF0A-DF7F53EA688D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EC2.DecryptPassword.NetStandard", "test\EC2.DecryptPasswordTests\EC2.DecryptPassword.NetStandard.csproj", "{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.CloudFront.NetStandard", "..\sdk\src\Services\CloudFront\AWSSDK.CloudFront.NetStandard.csproj", "{280223DF-ECB0-4B38-A3A6-B80B46D48475}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AWSSDK.EC2.NetStandard", "..\sdk\src\Services\EC2\AWSSDK.EC2.NetStandard.csproj", "{FC70CF98-BA7E-4F9F-A5DB-966973284091}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -66,6 +78,30 @@ Global
{331C9F91-2F44-47CC-822C-D4F58B57F4EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{331C9F91-2F44-47CC-822C-D4F58B57F4EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{331C9F91-2F44-47CC-822C-D4F58B57F4EF}.Release|Any CPU.Build.0 = Release|Any CPU
{DAE9714C-3BE5-4740-970C-94F96F7835C6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DAE9714C-3BE5-4740-970C-94F96F7835C6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DAE9714C-3BE5-4740-970C-94F96F7835C6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DAE9714C-3BE5-4740-970C-94F96F7835C6}.Release|Any CPU.Build.0 = Release|Any CPU
{C8A027AB-282C-400E-893D-971A5D55DB17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C8A027AB-282C-400E-893D-971A5D55DB17}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C8A027AB-282C-400E-893D-971A5D55DB17}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C8A027AB-282C-400E-893D-971A5D55DB17}.Release|Any CPU.Build.0 = Release|Any CPU
{A552BA51-D17C-4594-BF0A-DF7F53EA688D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A552BA51-D17C-4594-BF0A-DF7F53EA688D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A552BA51-D17C-4594-BF0A-DF7F53EA688D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A552BA51-D17C-4594-BF0A-DF7F53EA688D}.Release|Any CPU.Build.0 = Release|Any CPU
{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B}.Release|Any CPU.Build.0 = Release|Any CPU
{280223DF-ECB0-4B38-A3A6-B80B46D48475}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{280223DF-ECB0-4B38-A3A6-B80B46D48475}.Debug|Any CPU.Build.0 = Debug|Any CPU
{280223DF-ECB0-4B38-A3A6-B80B46D48475}.Release|Any CPU.ActiveCfg = Release|Any CPU
{280223DF-ECB0-4B38-A3A6-B80B46D48475}.Release|Any CPU.Build.0 = Release|Any CPU
{FC70CF98-BA7E-4F9F-A5DB-966973284091}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FC70CF98-BA7E-4F9F-A5DB-966973284091}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FC70CF98-BA7E-4F9F-A5DB-966973284091}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FC70CF98-BA7E-4F9F-A5DB-966973284091}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -79,6 +115,12 @@ Global
{FFE9C5B6-F508-4CB6-ADB7-7602CB437B75} = {3D822DC2-ED2E-4434-BC4F-CE7FCD846B02}
{4C0F4D67-3519-46F1-BD60-AA71FBA1CA2D} = {3D822DC2-ED2E-4434-BC4F-CE7FCD846B02}
{331C9F91-2F44-47CC-822C-D4F58B57F4EF} = {0BA39F07-84D6-420B-82D3-6DC3AF016C65}
{DAE9714C-3BE5-4740-970C-94F96F7835C6} = {3D822DC2-ED2E-4434-BC4F-CE7FCD846B02}
{C8A027AB-282C-400E-893D-971A5D55DB17} = {3D822DC2-ED2E-4434-BC4F-CE7FCD846B02}
{A552BA51-D17C-4594-BF0A-DF7F53EA688D} = {A960D001-40B3-4B1A-A890-D1049FB7586E}
{EA6EEC77-E69B-4D42-B9F2-BADCEEE5A32B} = {A960D001-40B3-4B1A-A890-D1049FB7586E}
{280223DF-ECB0-4B38-A3A6-B80B46D48475} = {0BA39F07-84D6-420B-82D3-6DC3AF016C65}
{FC70CF98-BA7E-4F9F-A5DB-966973284091} = {0BA39F07-84D6-420B-82D3-6DC3AF016C65}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {949367A4-5683-4FD3-93F4-A2CEA6EECB21}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net472</TargetFramework>
<AssemblyName>AWSSDK.Extensions.CloudFront.Signers</AssemblyName>
<PackageId>AWSSDK.Extensions.CloudFront.Signers</PackageId>
<Version>4.0.0.0-preview</Version>
<Title>AWSSDK.Extensions.Cloudfront.Signers</Title>
<Description>
This package contains extension methods for creating signed URLs for Amazon CloudFront distributions and
for creating signed cookies for Amazon CloudFront distributions using canned or custom policies.
</Description>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Remove="**/obj/**" />
</ItemGroup>
<Choose>
<When Condition=" '$(AWSKeyFile)' == '' ">
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\..\..\sdk\awssdk.dll.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AssemblyOriginatorKeyFile>$(AWSKeyFile)</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="../../../sdk/src/Core/AWSSDK.Core.NetFramework.csproj" />
<ProjectReference Include="../../../sdk/src/Services/CloudFront\AWSSDK.CloudFront.NetFramework.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net8.0</TargetFrameworks>
<AssemblyName>AWSSDK.Extensions.CloudFront.Signers</AssemblyName>
<PackageId>AWSSDK.Extensions.CloudFront.Signers</PackageId>
<Version>4.0.0.0-preview</Version>
<Title>AWSSDK.Extensions.Cloudfront.Signers</Title>
<Description>
This package contains extension methods for creating signed URLs for Amazon CloudFront distributions and
for creating signed cookies for Amazon CloudFront distributions using canned or custom policies.
</Description>
<DefineConstants>$(DefineConstants);NETSTANDARD;AWS_ASYNC_API</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' == 'netstandard2.0'">$(DefineConstants);NETSTANDARD20;AWS_ASYNC_ENUMERABLES_API</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' == 'netcoreapp3.1'">$(DefineConstants);AWS_ASYNC_ENUMERABLES_API</DefineConstants>
<DefineConstants Condition="'$(TargetFramework)' == 'net8.0'">$(DefineConstants);AWS_ASYNC_ENUMERABLES_API</DefineConstants>
<GenerateAssemblyTitleAttribute>false</GenerateAssemblyTitleAttribute>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyDescriptionAttribute>false</GenerateAssemblyDescriptionAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Remove="**/obj/**" />
</ItemGroup>
<Choose>
<When Condition=" '$(AWSKeyFile)' == '' ">
<PropertyGroup>
<AssemblyOriginatorKeyFile>..\..\..\sdk\awssdk.dll.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
</When>
<Otherwise>
<PropertyGroup>
<AssemblyOriginatorKeyFile>$(AWSKeyFile)</AssemblyOriginatorKeyFile>
</PropertyGroup>
</Otherwise>
</Choose>
<ItemGroup>
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\sdk\src\Core\AWSSDK.Core.NetStandard.csproj" />
<ProjectReference Include="..\..\..\sdk\src\Services\CloudFront\AWSSDK.CloudFront.NetStandard.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 60d5ee5

Please sign in to comment.