Skip to content

Conversation

@DustinCampbell
Copy link
Member

Here is the current design:

When the OmniSharp server starts up and there is project.json file in VS Code's workspace root directory, we check to see if there is a tasks.json and launch.json and prompt the user to add them if they're missing. For launch.json, OmniSharp is queried to find the .NET Core project with emitEntryPoint set to true to use for the correct paths.

This works really well for simple .NET Core apps with just a single project.json. Further work is needed to properly handle multi-project apps.

Note: This requires a change on the OmniSharp side to function properly. A PR is out for that change here: OmniSharp/omnisharp-roslyn#462.

cc @gregg-miskelly, @chuckries, @Pilchie

@DustinCampbell DustinCampbell force-pushed the add-launch-json-automagically branch from 83a12b4 to 19309dc Compare March 24, 2016 02:20
@gregg-miskelly
Copy link
Contributor

👍

This change refactors that code that adds or updates the user's tasks.json file to include a build task, to also add a launch.json file if it is missing.
@DustinCampbell DustinCampbell force-pushed the add-launch-json-automagically branch from 19309dc to 1c2b569 Compare March 24, 2016 17:50
@DustinCampbell
Copy link
Member Author

Fixed conflicts and rebased

@DustinCampbell DustinCampbell merged commit fb08f41 into dotnet:dev Mar 24, 2016
@Pilchie
Copy link
Member

Pilchie commented Mar 24, 2016

👍

@DustinCampbell DustinCampbell deleted the add-launch-json-automagically branch April 14, 2016 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants