Replies: 1 comment 2 replies
-
My guess is that the Roslyn workspace is correctly updated, but the Roslyn scripting engine is not. You may need to clear the scriptstate in the scriptrunner. This is because the Roslyn scripting libraries are mostly separate from the Roslyn workspace libraries, so CSharpRepl needs to keep them in sync. There's a bit of documentation about that here: https://github.com/waf/CSharpRepl/blob/main/ARCHITECTURE.md#roslyn-libraries |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @waf
First of all thanks for making this! It's a great tool.
I forked the project and I was trying to make it possible to reload an imported
.csproj
after modifying it, but I've hit a wall.Basically I did this by:
A. Disabling cache (just in case)
B. Modifying the builder to build to a random folder
C. Clearing previous non-framework references
D. Adding the reference to the built .dll
While this works, I still get the old code running. I checked this by masking a class that returns a value and incrementing this value in the source, between imports.
Any ideas why this may be? I have double checked that the
Document
is created with the right set of references.Beta Was this translation helpful? Give feedback.
All reactions