Kuka.Iiqka.Sdk.Protobuf.DependencyResolver 1.0.0

Prefix Reserved
dotnet add package Kuka.Iiqka.Sdk.Protobuf.DependencyResolver --version 1.0.0                
NuGet\Install-Package Kuka.Iiqka.Sdk.Protobuf.DependencyResolver -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kuka.Iiqka.Sdk.Protobuf.DependencyResolver" Version="1.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Kuka.Iiqka.Sdk.Protobuf.DependencyResolver --version 1.0.0                
#r "nuget: Kuka.Iiqka.Sdk.Protobuf.DependencyResolver, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Kuka.Iiqka.Sdk.Protobuf.DependencyResolver as a Cake Addin
#addin nuget:?package=Kuka.Iiqka.Sdk.Protobuf.DependencyResolver&version=1.0.0

// Install Kuka.Iiqka.Sdk.Protobuf.DependencyResolver as a Cake Tool
#tool nuget:?package=Kuka.Iiqka.Sdk.Protobuf.DependencyResolver&version=1.0.0                

Kuka.Iiqka.Sdk.Protobuf.DependencyResolver

The Protobuf DependencyResolver resolves protobuf dependencies, located in depending nugets or projects, for protobuf code generation with Grpc.Tools.

Enable resolver

To enable the dependency resolver, it must only be added as build dependency to the project. It automatically integrates into the build.

<PackageReference Include="Kuka.Iiqka.Sdk.Protobuf.DependencyResolver" Version="<version>">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

Lookup locations

The protobuf files to resolve must be located in the following location:

  • For ProjectReferences use: Protos
  • For PackageReferences use: protos

This convention must be respected by the providing nugets.

Special handling of Google.Api.CommonProtos

The Protobuf DependencyResolver contains all protobuf files used in Google.Api.CommonProtos. So it is possible to use these protobuf messages as import.

But the generated code of these protos is not included and can be obtained by referencing Google.Api.CommonProtos:

<ItemGroup>
  <PackageReference Include="Google.Api.CommonProtos" Version="<version>" />
</ItemGroup>

How to provide protobuf files in a nuget

To add the protobuf files into a nuget, the following tasks must be added to the corresponding .csproj file.

  • Use netstandard2.0 as target framework

    <PropertyGroup>
      <TargetFramework>netstandard2.0</TargetFramework>
    </PropertyGroup>
    
  • Pack protobuf files into nuget

    • Locate the protos in a folder named Protos

    • Include protobuf files into nuget

      <ItemGroup>
      
        <None Include="Protos\**\*.proto" PackagePath="protos/" Pack="true" />
      </ItemGroup>
      
  • Optionally: Add generated source code of protobuf files to nuget

    <ItemGroup>
    
      <PackageReference Include="Google.Protobuf" Version="<version>" />
    
    
      <PackageReference Include="Grpc.Tools" Version="<version>">
        <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
        <PrivateAssets>all</PrivateAssets>
      </PackageReference>
    
    
      <Protobuf Include="Protos\**\*.proto" ProtoRoot="Protos" />
    </ItemGroup>
    
  • If required use this dependency resolver as described in Enable resolver

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 395 7/27/2023

changelog.md