in a .NET 4.x C# project to dynamically execute .NET 9 code?
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reading the project's runtime-compilation and scripting entry points; no specific file or test is named in the issue. Compare the .NET 4.8 and .NET 9 environments with the provided PowerShell example, and establish whether this cross-runtime scenario is supported or what compatibility limitation must be documented.
Written by the indexing model from the issue text.
Description
Thank you for sharing this useful project.
I would like to know whether it is possible to use the westwind.script component in a .NET 4.x C# project to dynamically execute .NET 9 code.
My system environment:
- .NET 4.8.0 runtime
- .NET 9.0 runtime
By using the following code, I am able to execute .NET 9 code under PowerShell 5.1 (.NET 4.5).
pwsh -c {
$code = @'
using System;
public static class __cla
{
public static void __fun()
{
Console.WriteLine("hello from .NET9!");
}
}
'@
Add-Type -TypeDefinition $code -ReferencedAssemblies 'System.Console'
[__cla]::__fun()
}
- Dominant language
- C#
- Stars
- 256
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RickStrahl/Westwind.Scripting
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
RickStrahl/Westwind.Scripting#33 · 1 comment · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
RickStrahl/Westwind.Scripting#28 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
RickStrahl/Westwind.Scripting#26 · 3 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in RickStrahl/Westwind.Scripting
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·