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
Attempt to move off of separate process #71
Comments
Currently, after running the Scripty custom tool I'm not able to rebuild the solution as Scripty holds onto the references to the .dll files it loads in the csx. I must therefore close Visual Studio and reopen it in order to rebuild the solution. Would what you're proposing fix this? |
@TylerBrinkley Not sure without knowing the underlying reason why it's grabbing locks on the assemblies. I don't think this would help though. Can you open a new issue regarding the locks? It clearly shouldn't be grabbing them - there might be something with regards to the custom tool life cycle and disposing the Roslyn compilation that I've overlooked. |
Thanks, I've added it as #72. |
Just be aware you are then stuck on Windows. Not sure about your x-plat strategy, but thought I'd just give you a hint of it anyway. |
@per-samuelsson Thanks - that probably is a deal-breaker as I'd like to (eventually) move to Core. There's also other problems with the approach like having to parse out all the arguments. After looking at this for a while yesterday, I'm going to stick with the process forking for now. |
Sure thing. At the same time, I realized using |
The custom tool may still need the separate process if script debugging is still in the plans. |
Yeah, at this point what we have (mostly) works okay so I'm going to table moving away from the process fork for now. I think we're probably stuck on Windows one way or the other right now as long as we want to continue exposing the Roslyn workspace API. I'm still holding out hope that long-term the new cross platform MSBuild library will offer something akin to the old DTE model from Visual Studio and we can totally do away with the whole Roslyn/MSBuild abstraction being used right now. It's a pain.
Would love to get there, but as you may have noticed this isn't my primary project and I haven't been able to give it the attention it probably deserves. I've got no idea what the time line for that looks like. |
Right now we have to launch MSBuild in a separate process since it can't run recursively. There might be a way around this as explained at dotnet/roslyn#14206 (comment). Investigate if this will work and move to that approach if feasible.
The text was updated successfully, but these errors were encountered: