Skip to content

Support runtime-async with IL emit - #3284

Merged
timcassell merged 1 commit into
masterfrom
emit-runtime-async
Oct 7, 2026
Merged

timcassell merged 1 commit into
masterfrom
emit-runtime-async

Conversation

@timcassell

Copy link
Copy Markdown
Collaborator

Runtime-async APIs are still experimental, but I think it's worth adding for in-process benchmarks. We can update it later if the APIs change.

{
// we never want to do that in our official NuGet.org package, it's a hack
return config.Options.IsSet(ConfigOptions.KeepBenchmarkFiles) && Portability.RuntimeInformation.IsFullFramework;
return config.Options.IsSet(ConfigOptions.KeepBenchmarkFiles);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it safe to remove IsFullFramework check here?

It looks like IsFullFramework check exists to avoid issue assemblyBuilder.Save is not supported on .NET Core.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This path is only reached with debug BDN, the only way for it to fail is if someone goes out of their way to test it locally on an older tfm. So it's safe enough, not worth the extra code.

@@ -0,0 +1,45 @@
<Project Sdk="Microsoft.NET.Sdk">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it able to add this project on slnx also.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No, it will break the CI because it's still using net10 sdk.

@timcassell
timcassell merged commit 61ebda8 into master Oct 7, 2026
21 checks passed
@timcassell
timcassell deleted the emit-runtime-async branch October 7, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants