Skip to content

Commit

Permalink
Update dependencies and use multi targeting (#15)
Browse files Browse the repository at this point in the history
* Update dependencies and use multi targeting
* Test against latest versions
* Use "Visual Studio 2019" image in appveyor
* Use Grpc 2.26.0 to fix bug
* Test with latest Google.Protobuf version
  • Loading branch information
Falco20019 authored Jan 15, 2020
1 parent 989060d commit 20a6abf
Show file tree
Hide file tree
Showing 10 changed files with 53 additions and 778 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# AppVeyor Build number is incremental and not related to actual version number of the product
version: '{build}'

image: Visual Studio 2017
image: Visual Studio 2019

init:
- cmd: git config --global core.autocrlf true
Expand Down
5 changes: 3 additions & 2 deletions OpenTracing.Contrib.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2020
# Visual Studio Version 16
VisualStudioVersion = 16.0.29411.108
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B72DE217-C3BF-4F75-9741-2B74E3847443}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -21,6 +21,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
README.md = README.md
version.props = version.props
EndProjectSection
EndProject
Global
Expand Down
6 changes: 3 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SourceLink.Create.GitHub" Version="2.8.1" PrivateAssets="All" />
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.8.1" />
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.8.1" />
<PackageReference Include="SourceLink.Create.GitHub" Version="2.8.3" PrivateAssets="All" />
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.8.3" />
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.8.3" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/OpenTracing.Contrib.Grpc/OpenTracing.Contrib.Grpc.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard1.5</TargetFramework>
<TargetFrameworks>net45;netstandard1.5;netstandard2.0</TargetFrameworks>
<IsPackable>true</IsPackable>
<Description>Adds OpenTracing instrumentation for .NET Standard apps that use GRPC.</Description>
<PackageTags>opentracing;distributed-tracing;tracing;grpc;netstandard</PackageTags>
</PropertyGroup>

<ItemGroup>
<!-- Main dependencies -->
<PackageReference Include="Grpc" Version="1.12.0" />
<PackageReference Include="OpenTracing" Version="0.12.0" />
<PackageReference Include="Grpc" Version="2.23.1" />
<PackageReference Include="OpenTracing" Version="0.12.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ public TracingAsyncStreamReader(IAsyncStreamReader<T> reader, Action<T> onMessag
_onException = onException;
}

public void Dispose() => _reader.Dispose();
public T Current => _reader.Current;

public async Task<bool> MoveNext(CancellationToken cancellationToken)
Expand Down
244 changes: 0 additions & 244 deletions test/OpenTracing.Contrib.Grpc.Test/AddressbookGrpc.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFrameworks>net45;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<RootNamespace>OpenTracing.Contrib.Grpc.Test</RootNamespace>
<AssemblyName>OpenTracing.Contrib.Grpc.Test</AssemblyName>
<LangVersion>7.3</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.5.1" />
<PackageReference Include="Grpc" Version="1.12.0" />
<Protobuf Include="protos\addressbook.proto" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.11.2" />
<PackageReference Include="Grpc.Tools" Version="2.26.0" PrivateAssets="all" />
<PackageReference Include="Grpc" Version="2.26.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/OpenTracing.Contrib.Grpc.Test/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private static async Task MainAsync()

var client = new Phone.PhoneClient(new Channel("localhost:8011", ChannelCredentials.Insecure).Intercept(tracingInterceptor));
var request = new Person { Name = "Karl Heinz" };
var response1 = await client.GetNameAsync(request);
var _ = await client.GetNameAsync(request);

var response2 = client.GetNameRequestStream();
await response2.RequestStream.WriteAsync(request);
Expand Down
Loading

0 comments on commit 20a6abf

Please sign in to comment.