-
Notifications
You must be signed in to change notification settings - Fork 791
/
Copy pathGrpcAspNetCoreServer.csproj
50 lines (40 loc) · 2.37 KB
/
GrpcAspNetCoreServer.csproj
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
45
46
47
48
49
50
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
<OutputType>Exe</OutputType>
<!-- Uncomment line below to enable gRPC-Web on the server -->
<DefineConstants Condition="'$(EnableGrpcWeb)' == 'true'">$(DefineConstants);GRPC_WEB</DefineConstants>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
<!-- Uncomment line below to automatically compile .proto files in the project directory -->
<!-- <EnableDefaultProtoBufItems>true</EnableDefaultProtoBufItems> -->
<GenerateUserSecretsAttribute>false</GenerateUserSecretsAttribute>
<!-- Turn on preview features so we can use Http3. Can be removed in .NET 7 -->
<EnablePreviewFeatures>True</EnablePreviewFeatures>
</PropertyGroup>
<ItemGroup>
<Protobuf Include="..\Shared\benchmark_service.proto" GrpcServices="Server" Link="Protos\benchmark_service.proto" />
<Protobuf Include="..\Shared\messages.proto" GrpcServices="Server" Link="Protos\messages.proto" />
<None Include="..\Shared\Certs\*.*" LinkBase="Certs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Compile Include="..\..\..\test\Shared\HttpEventSourceListener.cs" Link="HttpEventSourceListener.cs" />
<Compile Include="..\Shared\BenchmarkConfigurationHelpers.cs" Link="BenchmarkConfigurationHelpers.cs" />
<Compile Include="..\Shared\BenchmarkServiceImpl.cs" Link="Services\BenchmarkServiceImpl.cs" />
<Compile Include="..\Shared\ServiceProvidersMiddleware.cs" Link="ServiceProvidersMiddleware.cs" />
<Content Update="hosting.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="Google.Protobuf" />
<PackageReference Include="Grpc.Tools" PrivateAssets="All" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.Certificate" />
</ItemGroup>
<!-- TODO: Workaround https://github.com/dotnet/sdk/issues/28169. Remove when fixed. -->
<ItemGroup Condition="'$(PublishAot)'!='true'">
<ProjectReference Include="..\..\..\src\Grpc.AspNetCore.Server\Grpc.AspNetCore.Server.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(PublishAot)'=='true'">
<PackageReference Include="Grpc.AspNetCore.Server" />
<PackageReference Include="Grpc.AspNetCore.Web" />
</ItemGroup>
</Project>