Skip to content

Commit

Permalink
tools: Build the two generators as dotnet tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Aug 14, 2024
1 parent b492119 commit d027094
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
28 changes: 28 additions & 0 deletions DotnetToolProperties.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project>
<!-- Properties common to all projects which are published to NuGet as dotnet tools. -->

<PropertyGroup>
<!-- Make the repository root available for other properties -->
<RepoRoot>$([System.IO.Path]::GetDirectoryName($([MSBuild]::GetPathOfFileAbove('.gitignore', '$(MSBuildThisFileDirectory)'))))</RepoRoot>

<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<Authors>Google LLC</Authors>
<Copyright>Copyright $([System.DateTime]::UtcNow.ToString(yyyy)) Google LLC</Copyright>
<PackageIcon>NuGetIcon.png</PackageIcon>
<PackageIconUrl>https://cloud.google.com/images/gcp-icon-64x64.png</PackageIconUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/googleapis/gapic-generator-csharp</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/googleapis/gapic-generator-csharp</RepositoryUrl>

<PackAsTool>true</PackAsTool>
</PropertyGroup>

<ItemGroup>
<None Include="$(RepoRoot)/LICENSE" Pack="true" PackagePath="" />
<None Include="$(RepoRoot)/NuGetIcon.png" Pack="true" PackagePath="" />
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions Google.Api.Generator.Rest/Google.Api.Generator.Rest.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../DotnetToolProperties.xml" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>

<Version>1.5.0</Version>
<Description>Tool used by Google .NET client library maintainers to generate Discovery-based (REST) libraries. While there is nothing "secret" in this package, it is unlikely to be useful to other developers. It is only published as a matter of convenience for other Google .NET repositories.</Description>
<ToolCommandName>google-rest-generator</ToolCommandName>
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 7 additions & 0 deletions Google.Api.Generator/Google.Api.Generator.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../DotnetToolProperties.xml" />

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>latest</LangVersion>

<Version>1.5.0</Version>
<Description>Tool used by Google .NET client library maintainers to generate GAPIC libraries. While there is nothing "secret" in this package, it is unlikely to be useful to other developers. It is only published as a matter of convenience for other Google .NET repositories.</Description>
<ToolCommandName>google-gapic-generator</ToolCommandName>

<!-- Invariant mode reduces docker image size, and allows docker image to not have ICU support. -->
<InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup>
Expand Down
Binary file added NuGetIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d027094

Please sign in to comment.