Skip to content

Commit 051addb

Browse files
Mielektomkerkhove
andauthored
chore: Add proper packages description (#12)
Co-authored-by: Tom Kerkhove <[email protected]>
1 parent a77c8fd commit 051addb

File tree

6 files changed

+167
-172
lines changed

6 files changed

+167
-172
lines changed

src/Compiler/Compiler.csproj

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,35 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<PackageId>Azure.ApiManagement.PolicyToolkit.Compiler</PackageId>
5-
<PackageVersion>0.0.1</PackageVersion>
6-
<Authors>Mielek</Authors>
7-
</PropertyGroup>
8-
9-
<PropertyGroup>
10-
<OutputType>Exe</OutputType>
11-
<TargetFramework>.net8</TargetFramework>
12-
<ImplicitUsings>enable</ImplicitUsings>
13-
<Nullable>enable</Nullable>
14-
15-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
16-
<PackAsTool>true</PackAsTool>
17-
<ToolCommandName>policy-compiler</ToolCommandName>
18-
<PackageOutputPath>..\..\output</PackageOutputPath>
19-
</PropertyGroup>
20-
21-
<ItemGroup>
22-
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0"/>
23-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2"/>
24-
</ItemGroup>
25-
26-
<ItemGroup>
27-
<ProjectReference Include="..\Core\Core.csproj"/>
28-
</ItemGroup>
29-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PackageId>Azure.ApiManagement.PolicyToolkit.Compiler</PackageId>
5+
<PackageVersion>0.0.1</PackageVersion>
6+
<Authors>Microsoft</Authors>
7+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
8+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
9+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
10+
<RepositoryUrl>https://github.com/Azure/azure-api-management-policy-toolkit</RepositoryUrl>
11+
<Description>Azure API Management Policy Toolkit compiler is a dotnet tool allowing you to transform policy document(s) from C# code to XML.</Description>
12+
<PackageTags>Azure;Azure API Management;API Gateway;API Management;Policy;Policies;Policy Toolkit;Compiler;Policy Toolkit Compiler</PackageTags>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<OutputType>Exe</OutputType>
17+
<TargetFramework>.net8</TargetFramework>
18+
<ImplicitUsings>enable</ImplicitUsings>
19+
<Nullable>enable</Nullable>
20+
21+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
22+
<PackAsTool>true</PackAsTool>
23+
<ToolCommandName>policy-compiler</ToolCommandName>
24+
<PackageOutputPath>..\..\output</PackageOutputPath>
25+
</PropertyGroup>
26+
27+
<ItemGroup>
28+
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="8.0.0"/>
29+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2"/>
30+
</ItemGroup>
31+
32+
<ItemGroup>
33+
<ProjectReference Include="..\Core\Core.csproj"/>
34+
</ItemGroup>
35+
</Project>

src/Emulator/Emulator.csproj

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>.net8</TargetFramework>
4-
<ImplicitUsings>enable</ImplicitUsings>
5-
<Nullable>enable</Nullable>
6-
<IsPackable>false</IsPackable>
7-
</PropertyGroup>
8-
9-
<ItemGroup>
10-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
11-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.0" />
12-
</ItemGroup>
13-
14-
<ItemGroup>
15-
<ProjectReference Include="..\Authoring\Authoring.csproj" />
16-
</ItemGroup>
17-
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>.net8</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
<Nullable>enable</Nullable>
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
11+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.0"/>
12+
</ItemGroup>
13+
14+
<ItemGroup>
15+
<ProjectReference Include="..\Authoring\Authoring.csproj"/>
16+
</ItemGroup>
17+
1818
</Project>

src/Pack/Policy/Policy.csproj

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,56 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PackageId>Azure.ApiManagement.PolicyToolkit</PackageId>
5-
<PackageVersion>0.0.1</PackageVersion>
6-
<Authors>Mielek</Authors>
7-
<!-- <PackageLicenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</PackageLicenseUrl>-->
8-
<!-- <PackageProjectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</PackageProjectUrl>-->
9-
<!-- <PackageIconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</PackageIconUrl>-->
10-
<!-- <RepositoryUrl>http://REPOSITORY_URL_HERE_OR_DELETE_THIS_LINE</RepositoryUrl>-->
11-
<!-- <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>-->
12-
<!-- <Description>Azure.ApiManagement.PolicyToolkit</Description>-->
13-
<!-- <PackageReleaseNotes>Summary of changes made in this release of the package.</PackageReleaseNotes>-->
14-
<!-- <Copyright>Copyright</Copyright>-->
15-
<!-- <PackageTags>Azure.ApiManagement.PolicyToolkit</PackageTags>-->
16-
<NoPackageAnalysis>true</NoPackageAnalysis>
3+
<PropertyGroup>
4+
<PackageId>Azure.ApiManagement.PolicyToolkit</PackageId>
5+
<PackageVersion>0.0.1</PackageVersion>
6+
<Authors>Microsoft</Authors>
7+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
8+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
9+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
10+
<RepositoryUrl>https://github.com/Azure/azure-api-management-policy-toolkit</RepositoryUrl>
11+
<Description>Azure API Management Policy Toolkit is a library allowing creation of policy documents in code.</Description>
12+
<PackageTags>Azure;Azure API Management;API Gateway;API Management;Policy;Policies;Policy Toolkit;Authoring policies</PackageTags>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<TargetFramework>.net8</TargetFramework>
17+
<IncludeBuildOutput>false</IncludeBuildOutput>
18+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
19+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
20+
<PackageOutputPath>..\..\..\output</PackageOutputPath>
21+
<NoPackageAnalysis>true</NoPackageAnalysis>
22+
<TargetsForTfmSpecificContentInPackage>
23+
$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput;_IncludeReferencedProjectInPackage
24+
</TargetsForTfmSpecificContentInPackage>
25+
</PropertyGroup>
1726

18-
<TargetsForTfmSpecificContentInPackage>
19-
$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput;_IncludeReferencedProjectInPackage
20-
</TargetsForTfmSpecificContentInPackage>
21-
</PropertyGroup>
22-
23-
<PropertyGroup>
24-
<TargetFramework>.net8</TargetFramework>
25-
<IncludeBuildOutput>false</IncludeBuildOutput>
26-
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
27-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
28-
<PackageOutputPath>..\..\..\output</PackageOutputPath>
29-
</PropertyGroup>
30-
31-
<ItemGroup>
32-
<ProjectReference Include="..\..\Authoring\Authoring.csproj" />
33-
<ProjectReference Include="..\..\Analyzers\Analyzers.csproj" />
34-
</ItemGroup>
35-
36-
<ItemGroup>
37-
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath="" />
38-
</ItemGroup>
39-
40-
<Target Name="_AddAnalyzersToOutput">
4127
<ItemGroup>
42-
<TfmSpecificPackageFile Include="$(OutputPath)\Analyzers.dll"
43-
PackagePath="analyzers/dotnet/cs" />
28+
<ProjectReference Include="..\..\Authoring\Authoring.csproj"/>
29+
<ProjectReference Include="..\..\Analyzers\Analyzers.csproj"/>
4430
</ItemGroup>
45-
</Target>
4631

47-
<Target Name="_IncludeReferencedProjectInPackage">
48-
<GetNuGetShortFolderName
49-
TargetFrameworkMoniker="$(TargetFrameworkMoniker)"
50-
TargetPlatformMoniker="$(TargetPlatformMoniker)">
51-
<Output TaskParameter="NuGetShortFolderName" PropertyName="_NuGetShortFolderName" />
52-
</GetNuGetShortFolderName>
5332
<ItemGroup>
54-
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.dll" PackagePath="lib/$(_NuGetShortFolderName)" />
55-
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.xml" PackagePath="lib/$(_NuGetShortFolderName)" />
56-
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.pdb" PackagePath="lib/$(_NuGetShortFolderName)" />
33+
<None Update="tools\*.ps1" CopyToOutputDirectory="Always" Pack="true" PackagePath=""/>
5734
</ItemGroup>
58-
</Target>
35+
36+
<Target Name="_AddAnalyzersToOutput">
37+
<ItemGroup>
38+
<TfmSpecificPackageFile Include="$(OutputPath)\Analyzers.dll"
39+
PackagePath="analyzers/dotnet/cs"/>
40+
</ItemGroup>
41+
</Target>
42+
43+
<Target Name="_IncludeReferencedProjectInPackage">
44+
<GetNuGetShortFolderName
45+
TargetFrameworkMoniker="$(TargetFrameworkMoniker)"
46+
TargetPlatformMoniker="$(TargetPlatformMoniker)">
47+
<Output TaskParameter="NuGetShortFolderName" PropertyName="_NuGetShortFolderName"/>
48+
</GetNuGetShortFolderName>
49+
<ItemGroup>
50+
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.dll" PackagePath="lib/$(_NuGetShortFolderName)"/>
51+
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.xml" PackagePath="lib/$(_NuGetShortFolderName)"/>
52+
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.pdb" PackagePath="lib/$(_NuGetShortFolderName)"/>
53+
</ItemGroup>
54+
</Target>
5955

6056
</Project>

src/Pack/Testing/Testing.csproj

Lines changed: 44 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,50 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<PackageId>Azure.ApiManagement.PolicyToolkit.Testing</PackageId>
5-
<PackageVersion>0.0.1</PackageVersion>
6-
<Authors>Mielek</Authors>
7-
<!-- <PackageLicenseUrl>http://LICENSE_URL_HERE_OR_DELETE_THIS_LINE</PackageLicenseUrl>-->
8-
<!-- <PackageProjectUrl>http://PROJECT_URL_HERE_OR_DELETE_THIS_LINE</PackageProjectUrl>-->
9-
<!-- <PackageIconUrl>http://ICON_URL_HERE_OR_DELETE_THIS_LINE</PackageIconUrl>-->
10-
<!-- <RepositoryUrl>http://REPOSITORY_URL_HERE_OR_DELETE_THIS_LINE</RepositoryUrl>-->
11-
<!-- <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>-->
12-
<!-- <Description>Azure.ApiManagement.PolicyToolkit.Testing</Description>-->
13-
<!-- <PackageReleaseNotes>Summary of changes made in this release of the package.</PackageReleaseNotes>-->
14-
<!-- <Copyright>Copyright</Copyright>-->
15-
<!-- <PackageTags>Azure.ApiManagement.PolicyToolkit.Testing</PackageTags>-->
16-
<NoPackageAnalysis>false</NoPackageAnalysis>
17-
18-
<TargetsForTfmSpecificContentInPackage>
19-
$(TargetsForTfmSpecificContentInPackage);_IncludeReferencedProjectInPackage
20-
</TargetsForTfmSpecificContentInPackage>
21-
22-
</PropertyGroup>
23-
24-
<PropertyGroup>
25-
<TargetFramework>.net8</TargetFramework>
26-
<IncludeBuildOutput>false</IncludeBuildOutput>
27-
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
28-
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
29-
<PackageOutputPath>..\..\..\output</PackageOutputPath>
30-
</PropertyGroup>
31-
32-
33-
<ItemGroup>
34-
<ProjectReference Include="..\..\Authoring\Authoring.csproj" />
35-
<ProjectReference Include="..\..\Emulator\Emulator.csproj" />
36-
</ItemGroup>
37-
38-
<ItemGroup>
39-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
40-
</ItemGroup>
41-
42-
43-
<Target Name="_IncludeReferencedProjectInPackage">
44-
<GetNuGetShortFolderName
45-
TargetFrameworkMoniker="$(TargetFrameworkMoniker)"
46-
TargetPlatformMoniker="$(TargetPlatformMoniker)">
47-
<Output TaskParameter="NuGetShortFolderName" PropertyName="_NuGetShortFolderName" />
48-
</GetNuGetShortFolderName>
3+
<PropertyGroup>
4+
<PackageId>Azure.ApiManagement.PolicyToolkit.Testing</PackageId>
5+
<PackageVersion>0.0.1</PackageVersion>
6+
<Authors>Microsoft</Authors>
7+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
8+
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
9+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
10+
<RepositoryUrl>https://github.com/Azure/azure-api-management-policy-toolkit</RepositoryUrl>
11+
<Description>Azure API Management Policy Toolkit Testing is a library which helps in testing expressions and policy documents created in code.</Description>
12+
<PackageTags>Azure;Azure API Management;API Gateway;API Management;Policy;Policies;Policy Toolkit;Policy Testing;Policy Expression Testing</PackageTags>
13+
</PropertyGroup>
14+
15+
<PropertyGroup>
16+
<TargetFramework>.net8</TargetFramework>
17+
<IncludeBuildOutput>false</IncludeBuildOutput>
18+
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
19+
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
20+
<NoPackageAnalysis>false</NoPackageAnalysis>
21+
<PackageOutputPath>..\..\..\output</PackageOutputPath>
22+
23+
<TargetsForTfmSpecificContentInPackage>
24+
$(TargetsForTfmSpecificContentInPackage);_IncludeReferencedProjectInPackage
25+
</TargetsForTfmSpecificContentInPackage>
26+
</PropertyGroup>
27+
28+
29+
<ItemGroup>
30+
<ProjectReference Include="..\Policy\Policy.csproj"/>
31+
<ProjectReference Include="..\..\Emulator\Emulator.csproj"/>
32+
</ItemGroup>
33+
4934
<ItemGroup>
50-
<TfmSpecificPackageFile Include="$(OutputPath)\Authoring.dll"
51-
PackagePath="lib/$(_NuGetShortFolderName)" />
52-
<TfmSpecificPackageFile Include="$(OutputPath)\Emulator.dll"
53-
PackagePath="lib/$(_NuGetShortFolderName)" />
35+
<PackageReference Include="Newtonsoft.Json" Version="13.0.1"/>
5436
</ItemGroup>
55-
</Target>
37+
38+
<Target Name="_IncludeReferencedProjectInPackage">
39+
<GetNuGetShortFolderName
40+
TargetFrameworkMoniker="$(TargetFrameworkMoniker)"
41+
TargetPlatformMoniker="$(TargetPlatformMoniker)">
42+
<Output TaskParameter="NuGetShortFolderName" PropertyName="_NuGetShortFolderName"/>
43+
</GetNuGetShortFolderName>
44+
<ItemGroup>
45+
<TfmSpecificPackageFile Include="$(OutputPath)\Emulator.dll"
46+
PackagePath="lib/$(_NuGetShortFolderName)"/>
47+
</ItemGroup>
48+
</Target>
5649

5750
</Project>
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<TargetFramework>.net8</TargetFramework>
4-
<ImplicitUsings>enable</ImplicitUsings>
5-
6-
<IsPackable>false</IsPackable>
7-
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
8-
</PropertyGroup>
9-
10-
<ItemGroup>
11-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
12-
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
13-
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
14-
<PackageReference Include="coverlet.collector" Version="3.1.2" />
15-
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.11.0" />
16-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.1.1" />
17-
</ItemGroup>
18-
19-
<ItemGroup>
20-
<ProjectReference Include="..\..\src\Core\Core.csproj" />
21-
<ProjectReference Include="..\..\src\Analyzers\Analyzers.csproj" />
22-
</ItemGroup>
23-
24-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>.net8</TargetFramework>
4+
<ImplicitUsings>enable</ImplicitUsings>
5+
6+
<IsPackable>false</IsPackable>
7+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
8+
</PropertyGroup>
9+
10+
<ItemGroup>
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0"/>
12+
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8"/>
13+
<PackageReference Include="MSTest.TestFramework" Version="2.2.8"/>
14+
<PackageReference Include="coverlet.collector" Version="3.1.2"/>
15+
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.11.0"/>
16+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" Version="1.1.1"/>
17+
</ItemGroup>
18+
19+
<ItemGroup>
20+
<ProjectReference Include="..\..\src\Core\Core.csproj"/>
21+
<ProjectReference Include="..\..\src\Analyzers\Analyzers.csproj"/>
22+
</ItemGroup>
23+
24+
</Project>

test/Test.Emulator/Test.Emulator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22-
<ProjectReference Include="..\..\src\Emulator\Emulator.csproj" />
22+
<ProjectReference Include="..\..\src\Emulator\Emulator.csproj"/>
2323
</ItemGroup>
2424

2525
</Project>

0 commit comments

Comments
 (0)