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
Openvs #1109
Openvs #1109
Conversation
Going to tag in @nosami and @david-driscoll as they can probably offer seem contributions here |
dc6673a
to
3be6c85
Compare
…lder, and launches. Fix for scriptcs#211
@scriptcs/core this has been completely refactored / cleaned up and now has full unit test coverage. One breaking change, it introduces a |
@scriptcs/core I ended up moving everything in hosting, rather than core. The main reason is because it seemed inappropriate / heavy to put it in core. |
void AddScriptcsProject(string scriptcsPath, string workingPath, string args, bool attach, string projectGuid); | ||
void AddProject(string path, string name, string guid, string[] files); | ||
void AddGlobalHeader(string projectGuid); | ||
void AddGlobalNestedProjects(IList<Tuple<string, string>> nestedItems); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get a better signature on a public member here? i.e. a descriptive type instead of a list
of Tuple
which is very difficult to comprehend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
On Sun, Feb 14, 2016 at 4:41 AM Filip W notifications@github.com wrote:
In src/ScriptCs.Hosting/IVisualStudioSolution.cs
#1109 (comment):@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+
+namespace ScriptCs.Contracts
+{
- public interface IVisualStudioSolution
- {
void AddHeader();
void AddScriptcsProject(string scriptcsPath, string workingPath, string args, bool attach, string projectGuid);
void AddProject(string path, string name, string guid, string[] files);
void AddGlobalHeader(string projectGuid);
void AddGlobalNestedProjects(IList<Tuple<string, string>> nestedItems);
can we get a better signature on a public member here? i.e. a descriptive
type instead of a list of Tuple which is very difficult to comprehend—
Reply to this email directly or view it on GitHub
https://github.com/scriptcs/scriptcs/pull/1109/files#r52842100.
@filipw your move mate :-) |
👍 |
Sending the PR to give visibility and get some other eyes on it. Unit tests are still missing.
This introduces a new
:openvs
REPL command which creates a debuggable solution for scripts and then launches Visual Studio. You get full debugger support, step through, watches, etc!Essentially it automates the approach here which @dschenkelman came up with. When you run the command, it will grab all scripts in the folder (including sub-folders) of the script you specified and add them to the solution.
Below you can see a screenshot of debugging a script in VS 2015 after running the command.
Today this only supports Visual Studio as the project structure which it creates is not supported in VS Code, OR in Xamarin Studio. XS doesn't "seem" to have as rich support for an "exe" style project. I tried hacking the equivalent in using an XBuild project, but that didn't work. For reference, here is the .sln created for the screenshot.
A few community requests: