Skip to content

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Jul 1, 2022

No description provided.

@JamesNK JamesNK force-pushed the jamesnk/net7 branch 3 times, most recently from 21fb3f6 to 3ae6a3c Compare July 30, 2022 08:41
Copy link
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

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

Left a few comments. I'd also like @captainsafia to review.

Copy link
Contributor

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

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

Is the inclusion of src/Grpc.AspNetCore/lib/net7.0/_._ intentional?

Looks good other than some non-blocking comments inline.

<PropertyGroup>
<TargetFrameworks Condition="'$(LatestFramework)'!='true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(LatestFramework)'=='true'">net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(LatestFramework)'!='true'">net7.0</TargetFrameworks>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not directly related to this change, but why are two different conditions needed here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Interop tests are also run from grpc/grpc repo, and may specify a different framework.

</ItemGroup>

<ItemGroup Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), 5.0))">
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0' OR '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net7.0'">
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we're no longer VersionGreaterThanOrEquals? It's a bit more future-proof.

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't get it to work after adding net7.0 target 🤷

@JamesNK
Copy link
Member Author

JamesNK commented Aug 27, 2022

Is the inclusion of src/Grpc.AspNetCore/lib/net7.0/_._ intentional?

Yes. Grpc.AspNetCore is a metapackage and doesn't have a DLL itself. Adding this file keeps the build happy.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants