Suppor for single .cs (.csx) file
See original GitHub issueSteps to reproduce
Open a *.cs file with VS Code.
Expected behavior
Get autocompletion for the script.
Actual behavior
There is no autocompletion.
Why?
It would be really nice if this would be supported, because it would really bring .net scripting to the next level.
I could write script fast and efficiently and the use the dotnet script
command to run them, avoiding all the soultion mesiness.
Just doing simple stuff in C# super fast and easy.
Note: if I open a C# solution and then open a cs script which is not in the solution, everything is already working 😃.
How could this work wihtout solution?
Because .NET 6 already introduced that you don’t have to have an actual Main
function in order to run a console app, I believe all the support should already be there.
These scripts would just behave as if there is an .NET 6 console project soution in “the background”.
Extra
If I could run the code without saving it to the file that would be even more awesome, then C# would feel like an interprete language.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Oh I see, I am very sorry for the inconvenience and my inexperience … Thank you very much for your time and effort. And thank you for all your work on the Omnisharp and
dotnet script
project I like it very much 😄.Will be closing thing issue now.
thanks!