Skip to content

use Microsoft.NETFramework.ReferenceAssemblies for Grpc.Tools#23174

Merged
jtattermusch merged 3 commits intogrpc:masterfrom
jtattermusch:reference_assemblies
Jun 16, 2020
Merged

use Microsoft.NETFramework.ReferenceAssemblies for Grpc.Tools#23174
jtattermusch merged 3 commits intogrpc:masterfrom
jtattermusch:reference_assemblies

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch commented Jun 10, 2020

The main motivation is to make everything buildable using dotnet SDK even if mono is not installed.

  • remove some ugly msbuild hacks
  • one additional hack was needed to make Grpc.Tools.Tests work under mono, but I moved it from the .csproj file into a C# tweak. The hack is still a bit ugly but IMHO it's better to have the hack contained in a single C# file, rather than making the .csproj build messy and preventing us it from building with pure dotnet SDK.

<FrameworkPathOverride Condition="Exists('/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5-api')">/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5-api</FrameworkPathOverride>
</PropertyGroup>
<!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->
<ItemGroup>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that this is the recommended way of making net45 build work with pure dotnet SDK.
We already use it here (and Grpc.Tools and Grpc.Tools.Tests are the only remaining project that still use the old hack):

<!-- Needed for the net45 build to work on Unix. See https://github.com/dotnet/designs/pull/33 -->

@jtattermusch jtattermusch marked this pull request as ready for review June 10, 2020 15:57
@jtattermusch jtattermusch added the release notes: no Indicates if PR should not be in release notes label Jun 10, 2020
@jtattermusch
Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/C# release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants