Skip to content

Commit 1332dc0

Browse files
authored
extend the protobuffer compile to support macosx (#175)
The protoc tools are available for OSX and adding this support allows EDSSharp and libEDSsharp to compile for macosx using dotnet 8.0 Signed-off-by: Charles Hardin <[email protected]>
1 parent f4694cd commit 1332dc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libEDSsharp/libEDSsharp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
<Target Name="protocolBufferGenerator" BeforeTargets="BeforeBuild" Inputs="@(Protobuf)" Outputs="bin\$(Configuration)\$(TargetFramework)\blazor_components.dll">
5959
<Exec Command="$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/linux_x64/protoc --proto_path=$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/ --proto_path=%(Protobuf.RelativeDir) --csharp_out=./proto %(Protobuf.RelativeDir)%(Protobuf.Filename)%(Protobuf.Extension)" Condition="$([MSBuild]::IsOSPlatform('Linux'))" />
60+
<Exec Command="$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/macosx_x64/protoc --proto_path=$(NugetPackageRoot)google.protobuf.tools/3.27.2/tools/ --proto_path=%(Protobuf.RelativeDir) --csharp_out=./proto %(Protobuf.RelativeDir)%(Protobuf.Filename)%(Protobuf.Extension)" Condition="$([MSBuild]::IsOSPlatform('OSX'))" />
6061
<Exec Command="$(NugetPackageRoot)google.protobuf.tools\3.27.2\tools\windows_x64\protoc --proto_path=$(NugetPackageRoot)google.protobuf.tools\3.27.2\tools\ --proto_path=%(Protobuf.RelativeDir) --csharp_out=.\proto %(Protobuf.RelativeDir)%(Protobuf.Filename)%(Protobuf.Extension)" Condition="$([MSBuild]::IsOSPlatform('Windows'))" />
6162
<ItemGroup>
6263
<Compile Include="proto/*.cs" KeepDuplicates="false" />

0 commit comments

Comments
 (0)