Skip to content
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

VS code issue to execute C#.Net code due to config #133858

Closed
sachinmittal2212 opened this issue Sep 27, 2021 · 4 comments
Closed

VS code issue to execute C#.Net code due to config #133858

sachinmittal2212 opened this issue Sep 27, 2021 · 4 comments
Assignees

Comments

@sachinmittal2212
Copy link

sachinmittal2212 commented Sep 27, 2021

Hi Team,

Can some one help me configure VS Code for C#.Net coding.

1. launch.json:

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug//<project-name.dll>",
"args": [],
"cwd": "${workspaceFolder}",
"stopAtEntry": false,
"console": "internalConsole"
},
{
"name": ".NET Core Launch (console)",
"type": "coreclr",
"request": "launch",
"WARNING01": "",
"WARNING02": "The C# extension was unable to automatically decode projects in the current",
"WARNING03": "workspace to create a runnable launch.json file. A template launch.json file has",
"WARNING04": "been created as a placeholder.",
"WARNING05": "",
"WARNING06": "If OmniSharp is currently unable to load your project, you can attempt to resolve",
"WARNING07": "this by restoring any missing project dependencies (example: run 'dotnet restore')",
"WARNING08": "and by fixing any reported errors from building the projects in your workspace.",
"WARNING09": "If this allows OmniSharp to now load your project then --",
"WARNING10": " * Delete this file",
"WARNING11": " * Open the Visual Studio Code command palette (View->Command Palette)",
"WARNING12": " * run the command: '.NET: Generate Assets for Build and Debug'.",
"WARNING13": "",
"WARNING14": "If your project requires a more complex launch configuration, you may wish to delete",
"WARNING15": "this configuration and pick a different template using the 'Add Configuration...'",
"WARNING16": "button at the bottom of this file.",
"WARNING17": "
",
"preLaunchTask": "build",
"program": "${workspaceFolder}/bin/Debug//.dll",
"args": [],
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}

2. App.config

image

3. WorldQuant_Module3_CSA_SkeletonCode.csproj:

image

@roblourens
Copy link
Member

Please file this on the C# extension with more details about what you are trying to do and what the problem is

@sachinmittal2212
Copy link
Author

sachinmittal2212 commented Sep 28, 2021

Hi Team,

@mojodna, @doudou, @threeve, @AArnott, @mitsuhiko : I am new to VS code and would like to know what configuration settings are needed to execute, debug and build the C#.Net code in VS Code

@AArnott
Copy link
Member

AArnott commented Sep 28, 2021

@sachinmittal2212 please do not @ mention a bunch of folks to drive attention. I'm not even on the VS Code team. Let the triage team do their work.

@sachinmittal2212
Copy link
Author

@sachinmittal2212 please do not @ mention a bunch of folks to drive attention. I'm not even on the VS Code team. Let the triage team do their work.

Hi Team,

I was not aware that all the folks are not from VS code team. I just needed some help in configuring the launch.json file to execute, debug and build C#.net code. I am new to VS code editor

@microsoft microsoft locked as off-topic and limited conversation to collaborators Sep 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants