Skip to content

Commit a2db5a9

Browse files
committed
chore: replace Blueprints nuspec file with csproj file (#1848)
1 parent ae2ae70 commit a2db5a9

File tree

8 files changed

+99
-57
lines changed

8 files changed

+99
-57
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageType>Template</PackageType>
5+
<PackageVersion>3.11.2</PackageVersion>
6+
<PackageId>Amazon.Lambda.Templates</PackageId>
7+
<Title>AWS Lambda Templates</Title>
8+
<Authors>Amazon Web Services</Authors>
9+
<Description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</Description>
10+
<PackageTags>AWS Amazon Lambda</PackageTags>
11+
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
12+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13+
<PackageIcon>images\icon.png</PackageIcon>
14+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
15+
<TargetFramework>netstandard2.0</TargetFramework>
16+
17+
<IncludeContentInPack>true</IncludeContentInPack>
18+
<IncludeBuildOutput>false</IncludeBuildOutput>
19+
<ContentTargetFolders>content</ContentTargetFolders>
20+
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<Content Include="**\*" Exclude="**\bin\**;**\obj\**" />
24+
<Compile Remove="**\*" />
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<None Include="..\..\..\icon.png" Pack="true" PackagePath="images\icon.png" />
29+
<None Include="..\..\README.md" Pack="true" PackagePath="docs\README.md" />
30+
</ItemGroup>
31+
32+
</Project>

Blueprints/BlueprintDefinitions/vs2017/template.nuspec

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageType>Template</PackageType>
5+
<PackageVersion>5.6.1</PackageVersion>
6+
<PackageId>Amazon.Lambda.Templates</PackageId>
7+
<Title>AWS Lambda Templates</Title>
8+
<Authors>Amazon Web Services</Authors>
9+
<Description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</Description>
10+
<PackageTags>AWS Amazon Lambda</PackageTags>
11+
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
12+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13+
<PackageIcon>images\icon.png</PackageIcon>
14+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
15+
<TargetFramework>netstandard2.0</TargetFramework>
16+
17+
<IncludeContentInPack>true</IncludeContentInPack>
18+
<IncludeBuildOutput>false</IncludeBuildOutput>
19+
<ContentTargetFolders>content</ContentTargetFolders>
20+
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<Content Include="**\*" Exclude="**\bin\**;**\obj\**" />
24+
<Compile Remove="**\*" />
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<None Include="..\..\..\icon.png" Pack="true" PackagePath="images\icon.png" />
29+
<None Include="..\..\README.md" Pack="true" PackagePath="docs\README.md" />
30+
</ItemGroup>
31+
32+
</Project>

Blueprints/BlueprintDefinitions/vs2019/template.nuspec

-17
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageType>Template</PackageType>
5+
<PackageVersion>7.2.1</PackageVersion>
6+
<PackageId>Amazon.Lambda.Templates</PackageId>
7+
<Title>AWS Lambda Templates</Title>
8+
<Authors>Amazon Web Services</Authors>
9+
<Description>AWS Lambda templates for Microsoft Template Engine accessible with the dotnet CLI's new command</Description>
10+
<PackageTags>AWS Amazon Lambda</PackageTags>
11+
<PackageProjectUrl>https://github.com/aws/aws-lambda-dotnet</PackageProjectUrl>
12+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
13+
<PackageIcon>images\icon.png</PackageIcon>
14+
<PackageReadmeFile>docs\README.md</PackageReadmeFile>
15+
<TargetFramework>netstandard2.0</TargetFramework>
16+
17+
<IncludeContentInPack>true</IncludeContentInPack>
18+
<IncludeBuildOutput>false</IncludeBuildOutput>
19+
<ContentTargetFolders>content</ContentTargetFolders>
20+
</PropertyGroup>
21+
22+
<ItemGroup>
23+
<Content Include="**\*" Exclude="**\bin\**;**\obj\**" />
24+
<Compile Remove="**\*" />
25+
</ItemGroup>
26+
27+
<ItemGroup>
28+
<None Include="..\..\..\icon.png" Pack="true" PackagePath="images\icon.png" />
29+
<None Include="..\..\README.md" Pack="true" PackagePath="docs\README.md" />
30+
</ItemGroup>
31+
32+
</Project>

Blueprints/BlueprintDefinitions/vs2022/template.nuspec

-17
This file was deleted.

Blueprints/BlueprintPackager/BlueprintPackager.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

buildtools/build.proj

+2-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,8 @@
3838
<Exec Command="dotnet restore BlueprintPackager.sln" WorkingDirectory="..\Blueprints\BlueprintPackager"/>
3939
</Target>
4040
<Target Name="package-blueprints" DependsOnTargets="init;run-blueprint-packager">
41-
<Exec Condition=" '$(OS)' != 'Windows_NT' " Command="mono $(MSBuildThisFileDirectory)nuget.exe pack template.nuspec -OutputDirectory ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2022"/>
42-
<Exec Condition=" '$(OS)' != 'Windows_NT' " Command="mono $(MSBuildThisFileDirectory)nuget.exe pack template.nuspec -OutputDirectory ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2019"/>
43-
44-
<Exec Condition=" '$(OS)' == 'Windows_NT' " Command="$(MSBuildThisFileDirectory)nuget.exe pack template.nuspec -OutputDirectory ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2022"/>
45-
<Exec Condition=" '$(OS)' == 'Windows_NT' " Command="$(MSBuildThisFileDirectory)nuget.exe pack template.nuspec -OutputDirectory ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2019"/>
41+
<Exec Command="dotnet pack Templates.csproj --output ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2022"/>
42+
<Exec Command="dotnet pack Templates.csproj --output ../../../Deployment/nuget-packages" WorkingDirectory="../Blueprints/BlueprintDefinitions/vs2019"/>
4643
</Target>
4744
<Target Name="run-blueprint-packager">
4845
<Exec Command="dotnet run -c $(Configuration) $(BlueprintPackagerArguments)" WorkingDirectory="..\Blueprints\BlueprintPackager"/>

0 commit comments

Comments
 (0)