Skip to content
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

Build Nuget package for the .NET interface #1596

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

burkenyo
Copy link
Contributor

Nuget packages are the standard way to share .NET libraries (called assemblies). This change allows us to release the preview .NET interface on Nuget

WIP

Changes proposed in this pull request

If applicable, fill in the issue number this pull request is fixing

Closes #

If applicable, provide an example illustrating new features this pull request is introducing

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

@burkenyo burkenyo force-pushed the dotnet-interface branch 6 times, most recently from 1ec249c to df237c4 Compare August 19, 2023 18:17
Previously, it relied on string matching and StackTrace.ToString() implementation detail that omits methods with the MethodImplOptions.AggressiveInlining flag. The new version looks at the method itself and makes it explicit under what conditions it might not have been inlined yet the test should still pass.
This avoids needing to have all objects created via factory methods in the Application class.
This will facilitate pulling the readme file directly into packages,
i.e. the Nuget package
@codecov
Copy link

codecov bot commented Aug 19, 2023

Codecov Report

Attention: Patch coverage is 45.83333% with 52 lines in your changes missing coverage. Please review.

Project coverage is 70.55%. Comparing base (cde1e79) to head (689266a).
Report is 677 commits behind head on main.

Files with missing lines Patch % Lines
...terfaces/dotnet/Cantera/src/Interop/InteropUtil.cs 27.77% 52 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1596      +/-   ##
==========================================
- Coverage   70.61%   70.55%   -0.06%     
==========================================
  Files         379      380       +1     
  Lines       59153    59222      +69     
  Branches    21252    21252              
==========================================
+ Hits        41768    41785      +17     
- Misses      14311    14363      +52     
  Partials     3074     3074              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Due to an idiosyncrasy in the native lib, separate loggers are created per thread. We need all tests that call the native lib to be on the same thread to ensure the LogWriter_MessageLogged test passes.
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