Skip to content

Commit 241b21d

Browse files
authored
Fix Source Link warning and enable CI build in build script (#927)
1 parent 1344beb commit 241b21d

File tree

8 files changed

+20
-13
lines changed

8 files changed

+20
-13
lines changed

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<!-- Don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
1717
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>
1818

19+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1920
<LangVersion>8.0</LangVersion>
2021
<Nullable>enable</Nullable>
2122
</PropertyGroup>

build/dependencies.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<SystemCommandLinePackageVersion>2.0.0-beta1.20214.1</SystemCommandLinePackageVersion>
2323
<SystemCommandLineRenderingPackageVersion>0.3.0-alpha.20214.1</SystemCommandLineRenderingPackageVersion>
2424
<SystemDiagnosticsDiagnosticSourcePackageVersion>4.5.1</SystemDiagnosticsDiagnosticSourcePackageVersion>
25+
<SystemIOPipelinesPackageVersion>4.7.2</SystemIOPipelinesPackageVersion>
2526
<SystemSecurityPrincipalWindowsPackageVersion>4.6.0</SystemSecurityPrincipalWindowsPackageVersion>
2627
</PropertyGroup>
2728
</Project>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "3.1.201"
3+
"version": "3.1.300"
44
}
55
}

kokoro/build_nuget.sh

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ mkdir -p artifacts
2929

3030
build/expand_dev_version.sh
3131

32-
(cd src/Grpc.Net.Common && dotnet pack --configuration Release --output ../../artifacts)
33-
(cd src/Grpc.Net.Client && dotnet pack --configuration Release --output ../../artifacts)
34-
(cd src/Grpc.Net.ClientFactory && dotnet pack --configuration Release --output ../../artifacts)
35-
(cd src/Grpc.Net.Client.Web && dotnet pack --configuration Release --output ../../artifacts)
36-
(cd src/Grpc.AspNetCore.Server && dotnet pack --configuration Release --output ../../artifacts)
37-
(cd src/Grpc.AspNetCore.Server.ClientFactory && dotnet pack --configuration Release --output ../../artifacts)
38-
(cd src/Grpc.AspNetCore.Server.Reflection && dotnet pack --configuration Release --output ../../artifacts)
39-
(cd src/Grpc.AspNetCore && dotnet pack --configuration Release --output ../../artifacts)
40-
(cd src/Grpc.AspNetCore.Web && dotnet pack --configuration Release --output ../../artifacts)
41-
(cd src/dotnet-grpc && dotnet pack --configuration Release --output ../../artifacts)
32+
# Set ContiniousIntegrationBuild to true for offical builds
33+
# https://github.com/dotnet/sourcelink/blob/master/docs/README.md#continuousintegrationbuild
34+
35+
(cd src/Grpc.Net.Common && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
36+
(cd src/Grpc.Net.Client && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
37+
(cd src/Grpc.Net.ClientFactory && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
38+
(cd src/Grpc.Net.Client.Web && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
39+
(cd src/Grpc.AspNetCore.Server && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
40+
(cd src/Grpc.AspNetCore.Server.ClientFactory && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
41+
(cd src/Grpc.AspNetCore.Server.Reflection && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
42+
(cd src/Grpc.AspNetCore && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
43+
(cd src/Grpc.AspNetCore.Web && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)
44+
(cd src/dotnet-grpc && dotnet pack --configuration Release --output ../../artifacts -p:ContinuousIntegrationBuild=true)

perf/Grpc.AspNetCore.Microbenchmarks/Grpc.AspNetCore.Microbenchmarks.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<FrameworkReference Include="Microsoft.AspNetCore.App" />
2525

2626
<PackageReference Include="BenchmarkDotNet" Version="$(BenchmarkDotNetPackageVersion)" />
27+
<PackageReference Include="System.IO.Pipelines" Version="$(SystemIOPipelinesPackageVersion)" />
2728
</ItemGroup>
2829

2930
</Project>

test/Grpc.AspNetCore.Server.Tests/Grpc.AspNetCore.Server.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<ProjectReference Include="..\..\src\Grpc.AspNetCore.HealthChecks\Grpc.AspNetCore.HealthChecks.csproj" />
3636
<ProjectReference Include="..\..\src\Grpc.AspNetCore.Server.Reflection\Grpc.AspNetCore.Server.Reflection.csproj" />
3737

38+
<PackageReference Include="System.IO.Pipelines" Version="$(SystemIOPipelinesPackageVersion)" />
3839
<PackageReference Include="Microsoft.Extensions.Logging.Testing" Version="$(MicrosoftExtensionsPackageVersion)" />
3940
</ItemGroup>
4041

testassets/InteropTestsGrpcWebWebsite/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.201 AS build-env
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.300 AS build-env
22
WORKDIR /app
33

44
# Copy everything

testassets/InteropTestsWebsite/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.201 AS build-env
1+
FROM mcr.microsoft.com/dotnet/core/sdk:3.1.300 AS build-env
22
WORKDIR /app
33

44
# Copy everything

0 commit comments

Comments
 (0)