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

When change target to net6.0-macos, app fails to load assembly System.ComponentModel.EventBasedAsync 6.0.0 #87

Open
lanyusan opened this issue Dec 21, 2022 · 1 comment

Comments

@lanyusan
Copy link

I have an app under development that uses your extension. It works great when the target framework is generic net6.0. When I change the target framework to net6.0-macos, following exception was thrown during run time.

image

When I comment out the code that uses markdown, the exception was gone.

Is there any workaround for this?

Thanks.

@jonthysell
Copy link

Are you trimming your output? Try the following in your csproj to make sure the assembly doesn't get trimmed:

<ItemGroup>
  <TrimmerRootAssembly Include="System.ComponentModel.EventBasedAsync" />
</ItemGroup>

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

No branches or pull requests

2 participants