-
Notifications
You must be signed in to change notification settings - Fork 17
feat: Add Support for .Net Standard 2.0 #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Support for .Net Standard 2.0 #90
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
b2c4f7c to
614b184
Compare
|
Hi @rogerbarreto thank you so much for your contribution on this. There are two testing projects https://github.com/googleapis/dotnet-genai/blob/main/Google.GenAI.Tests/Google.GenAI.Tests.csproj and https://github.com/googleapis/dotnet-genai/blob/main/Google.GenAI.E2E.Tests/Google.GenAI.E2E.Tests.csproj Currently they target net6 and net8, so the net6 will test the netstandard2.1 assembly and net8 will test the net8 assembly. If you would like to include netstandard2 into Google.GenAI, we need to make sure that the two testing projects test against the netstandard2 assembly as well. Once the testing projects test against netstand2 assembly, we also need to update
Do you have some ideas how to make sure the test coverage over the 3 assemblies? Again thank you very much for this PR. |
|
@yyyu-google Thanks for the ask, currently when I was attempting in doing so I noticed that the dependency Once we have a valid version for the |
|
Is the netstandard2.1 target necessary? Even for the core .NET library nuget packages we don't include a target for that. It was kind of a misfire. I'd suggest just replacing the netstandard2.1 TFM with netstandard2.0. |
|
I will do a release to the TestServerSdk soon, to enable netstandard2. will reply here once ready |
|
Hi, I got into some urgent tasks, so there will be a little delay on updating the TestServerSdk for netstandard2. Meanwhile, if this PR is urgent, here is the TestServerSdk https://github.com/google/test-server/tree/main/sdks/dotnet repo, we welcome PR :) Otherwise, please allow me some more time for the TestServerSdk update. |
yes netstandard2.1 is necessary, and it is requested by another user. moreover, we'd like to support modern unity developers. |
|
Thank you for the patience. I have updated the TestServerSdk to |
|
Thank you @rogerbarreto for the PR, it looks good to me. I just followed @stephentoub 's advise to use net8 to test all the targets of this repo, like in #145 Could you do a similar change to the e2e tests and unit tests to test the netstandard2.0? A special reminder to update https://github.com/googleapis/dotnet-genai/blob/main/.github/workflows/dotnet-tests.yml to reflect the test on the new targets for GitHub workflow. Thank you! |
|
@yyyu-google Changes made to the PR, took liberty also to:
|
-- 614b184 by Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>: feat: Add Support for .Net Standard 2.0 -- 21bf160 by Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>: feat: Add Support for .Net Standard 2.0 -- fbc2c31 by Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>: Update PR Comments + Small Adjustments for Net 2 + Add missing Sln -- de3b592 by Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>: Remove unneeded dependencies -- f709252 by Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>: Remove launch settings -- 230f98b by Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>: Revert changes in generated files -- d71f5fd by Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>: Revert .editorconfig xmldoc warning skip COPYBARA_INTEGRATE_REVIEW=#90 from rogerbarreto:netstandard2.0+vulnerabilityfix d71f5fd PiperOrigin-RevId: 843772219
.netstandard 2.0.#89.gitignoreand.editorconfigsuppressions.