-
Notifications
You must be signed in to change notification settings - Fork 676
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
Support "csx" #23
Comments
I would like to bump this and 👍 this. There is CSX support already in OmniSharp (via scriptcs) and Atom uses it, and you can "fake-force" it in VS Code by adding an empty That said, this whole experience should be normalized (after all, scriptcs is a bit opinionated about some things). As I mentioned in a call a while ago I'd like to see "basic" CSX support as first class citizen in OmniSharp and then scriptcs (with its custom host and what have you), being the superset of regular CSX, could be an opt in plugin. I have lots of PoCs going on including one that I am working on right now so hopefully we can bring this in soonest. @DustinCampbell - hopefully it makes sense? we can even start small, single file only and grow from there |
I've installed the 'csharp' extension for Visual Studio Code. It would be neat if it fully supported .csx files from C# Interactive
|
I think this can be closed now that OmniSharp/omnisharp-roslyn#659 has been merged. There are still some issues and ongoing work (see https://github.com/OmniSharp/omnisharp-roslyn/issues?q=is%3Aissue+is%3Aopen+csx+label%3Acsx) but those can be tracked separately in the omnisharp-roslyn repo. |
Yeah, I agree. The latest beta should be much better. |
I know I'm lazily posting on a closed issue, but I can't for the life of me find details on this convention. Can someone point me to this reference material or share it here for posterity's sake? |
@peder Since last year OmniSharp has no support for scriptcs-style scripting (i.e. nuget packages via At the moment the only supported way to provide references to external assemblies in CSI is to use Aside from CSI, OmniSharp also supports Azure-Functions like references via I hope this helps - and apologies for the confusion. Updating the documentation to put all of this information together is on my list 📚 |
Awesome update--thanks. I was giving C# Scripting a whirl last night and started hitting some walls. Despite those issues, I have to think the I'll check out the Azure Functions approach. Thanks again. |
I think the confusion comes from the fact that - due to the popularity of scriptcs project - folks equate C# scripting / CSX with what scriptcs offers. In reality, scriptcs is a de facto dialect on top of standard CSX scripting and offers some extra features over CSI.exe (it's a superset of standard scripting), mainly So if you stick to CSI-only scripting, you will have excellent language support in OmniSharp - on par with "full" C# - refactoring, go to definition, go to metadata, find references, intellisense and so on. |
It's unfortunate there's confusion between scriptcs and csi.exe "C# Interactive". Ideally both would clarify the difference in their documentation: |
Here's a feature request for .csx C# script support in Visual Studio https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/7848117-add-scriptcs-csx-intellisense-and-debugging-in-v
|
Support C# script files.
Would be pretty great if csx is supported by OmniSharp.
Aside: VS 2015 Update 1 has bundled
csi
.The text was updated successfully, but these errors were encountered: