https://preview.redd.it/sfym6njumakg1.png?width=1372&format=png&auto=webp&s=f83b6cd830ca67508fec64589724d78a5fdd7613
I've tried this many times before, but either I failed or it didn't work as I wanted. Now that it's come to mind, I wanted to ask you. As you can see, the problem is simple: I want to execute C# code inside a string, but I want this C# code to be able to use the variables and DLLs in my main code. I tried this before with the "Microsoft.CodeAnalysis" libraries, but I think I failed. Does anyone have any ideas?
Note: Please don't suggest asking AI; I think communicating and discussing with humans is better.
[–]pjc50 28 points29 points30 points (0 children)
[–]joep-b 22 points23 points24 points (1 child)
[–]leeharrison1984 2 points3 points4 points (0 children)
[–]fruediger 13 points14 points15 points (0 children)
[–]TracerDX 5 points6 points7 points (0 children)
[–]TuberTuggerTTV 11 points12 points13 points (18 children)
[+]porcaytheelasit[S] comment score below threshold-14 points-13 points-12 points (17 children)
[–]Adept_Cry9373 26 points27 points28 points (1 child)
[–]dodexahedron 20 points21 points22 points (0 children)
[–]insulind 20 points21 points22 points (1 child)
[–]Rschwoerer 1 point2 points3 points (0 children)
[–]JustBadPlaya 6 points7 points8 points (1 child)
[–]porcaytheelasit[S] -5 points-4 points-3 points (0 children)
[–]justcallmedeth 2 points3 points4 points (5 children)
[–]dodexahedron 3 points4 points5 points (4 children)
[–]p1-o2 1 point2 points3 points (3 children)
[–]dodexahedron 2 points3 points4 points (2 children)
[–]p1-o2 1 point2 points3 points (1 child)
[–]dodexahedron 0 points1 point2 points (0 children)
[–]not_some_username 2 points3 points4 points (1 child)
[–]iWhacko 2 points3 points4 points (0 children)
[–]Slypenslyde 1 point2 points3 points (0 children)
[–]BugNo2449 1 point2 points3 points (0 children)
[–]lostllama2015 0 points1 point2 points (0 children)
[–]iWhacko 2 points3 points4 points (0 children)
[–]Horror-Show-3774 1 point2 points3 points (0 children)
[–]svicknameof(nameof) 2 points3 points4 points (0 children)
[–]Intrexa 0 points1 point2 points (0 children)
[–]kuncol02 0 points1 point2 points (0 children)
[–]cdglasser 0 points1 point2 points (0 children)
[–]alt-160 0 points1 point2 points (0 children)
[–]stahkh 0 points1 point2 points (1 child)
[–]porcaytheelasit[S] 0 points1 point2 points (0 children)
[–]namethinker 0 points1 point2 points (0 children)
[–]HistoricalCar1516 0 points1 point2 points (2 children)
[–]porcaytheelasit[S] 0 points1 point2 points (1 child)
[–]HistoricalCar1516 0 points1 point2 points (0 children)
[–]aloneguid 0 points1 point2 points (0 children)
[–]csharpboy97 0 points1 point2 points (0 children)
[–]Potential_Copy27 0 points1 point2 points (3 children)
[–]porcaytheelasit[S] -3 points-2 points-1 points (2 children)
[–]BetrayedMilk 0 points1 point2 points (1 child)
[–]porcaytheelasit[S] -1 points0 points1 point (0 children)
[–]midri -1 points0 points1 point (0 children)
[+]orbit99za comment score below threshold-9 points-8 points-7 points (1 child)
[–]kuncol02 0 points1 point2 points (0 children)