-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxAI.Protocol.csproj
More file actions
44 lines (39 loc) · 2.34 KB
/
xAI.Protocol.csproj
File metadata and controls
44 lines (39 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>xAI.Protocol</AssemblyName>
<PackageId>xAI.Protocol</PackageId>
<Description>xAI Grok gRPC protocol client based on the official API reference from xAI.</Description>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageTags>xai ai grok llm</PackageTags>
<PackageLicenseExpression></PackageLicenseExpression>
<PackageLicenseFile>OSMFEULA.txt</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NuGetizer" Version="1.4.7" PrivateAssets="all" />
<PackageReference Include="Google.Protobuf" Version="3.34.1" />
<PackageReference Include="Grpc.Net.Client" Version="2.76.0" />
<PackageReference Include="Grpc.Net.ClientFactory" Version="2.76.0" />
<PackageReference Include="Grpc.Tools" Version="2.80.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="10.0.8" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.8" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.8" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\osmfeula.txt" Link="osmfeula.txt" PackagePath="OSMFEULA.txt" />
<Protobuf Include="*.proto" GrpcServices="Client" />
<Protobuf Include="google\rpc\status.proto" GrpcServices="Client" />
<InternalsVisibleTo Include="xAI"/>
<InternalsVisibleTo Include="xAI.Tests"/>
</ItemGroup>
<Target Name="FixProto" BeforeTargets="Protobuf_BeforeCompile">
<Exec Command="dotnet run --file protofix.cs $(MSBuildProjectDirectory)" WorkingDirectory="$(MSBuildProjectDirectory)\.." StandardErrorImportance="high" IgnoreStandardErrorWarningFormat="true" StandardOutputImportance="low" ConsoleToMSBuild="true" ContinueOnError="true">
<Output TaskParameter="ConsoleOutput" PropertyName="RunOutput" />
<Output TaskParameter="ExitCode" PropertyName="ExitCode" />
</Exec>
<Message Importance="high" Text="$(RunOutput)" Condition="'$(ExitCode)' != '0'" />
<Error Text="$(RunOutput)" Condition="'$(ExitCode)' != '0'" />
</Target>
</Project>