Skip to content

Conversation

@Jens-G
Copy link
Member

@Jens-G Jens-G commented Jul 18, 2024

  • JensG: added testcase for THRIFT-5794 + reverted most of the changes

from #2999:

netstd: tests: also run tests with "net8" option of thrift-compiler

Add a project which is a copy of the PublicInterfaces.Compile.Tests, but use the "net8" compiler option to generate code that uses C#12-features.
Use the thrift-files from the existing test, to avoid code-duplication.
This is effectively the tests that are run till v0.20.0.

netstd: use default CSharp-language level of compiler instead of using Net8/C#12 for PublicInterfaces.Compile.Tests

netstd: update readme for local building

netstd: tests: include .exe extension, when looking for compiler

It will not be found without this and causes na error and abort.

netstd: tests: make MSBuild ignore errors when thrift-binary is not found and continue search

Windows copmmand "where" errors when thrift-binary is not found in PATH. This will cause MSBuild to abort instead of searching in alternative paths.
So just ignore potential erros and make it go on. Adapt this also for Unix "which", so we don't need to suppress the returncode.

@Jens-G Jens-G added the c# label Jul 18, 2024
@Jens-G Jens-G self-assigned this Jul 18, 2024
@Jens-G Jens-G force-pushed the THRIFT-5794-tests branch 2 times, most recently from fb4b6fd to d77b534 Compare July 18, 2024 07:27
----

netstd: tests: also run tests with "net8" option of thrift-compiler

Add a project which is a copy of the PublicInterfaces.Compile.Tests, but use the "net8" compiler option to generate code that uses C#12-features.
Use the thrift-files from the existing test, to avoid code-duplication.
This is effectively the tests that are run till v0.20.0.

netstd: use default CSharp-language level of compiler instead of using Net8/C#12 for PublicInterfaces.Compile.Tests

netstd: update readme for local building

netstd: tests: include .exe extension, when looking for compiler

It will not be found without this and causes na error and abort.

netstd: tests: make MSBuild ignore errors when thrift-binary is not found and continue search

Windows copmmand "where" errors when thrift-binary is not found in PATH. This will cause MSBuild to abort instead of searching in alternative paths.
So just ignore potential erros and make it go on. Adapt this also for Unix "which", so we don't need to suppress the returncode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants