Jim Bennett

Senior Cloud Advocate at Microsoft, Xamarin Certified Developer, author of Xamarin In Action, blogger, speaker, father and lover of beer, whisky and Thai food. Opinions are my own.

  Reading, UK

See me soon at:

NDC London
FSharp Exchange
Techorama BE

My book:

Xamarin In Action

My podcast:

The Jim And Tonic Show
The Jim And Tonic Show on iTunes

Contact me:

  Xamarin In Action
  Twitter
  The Jim And Tonic Show
  GitHub
  LinkedIn
  YouTube
  Email
  CV

I've been playing a lot with Try .NET. I even blogged about it recently - jimbobbennett.io/trying-out-try-net.

One thing that was beginning to annoy me slightly was having to constantly launch the terminal and type dotnet try to test out what I was working in. My life would be infinitely improved (not really), if I could run it via F5 or the debug menu/tab instead of the terminal.

Turns out its pretty easy to do - just add a new entry to your launch.json file either directly from the file in the .vscode folder, or adding a configuration using the debug menu.

Add this to it:

{
    "name": "Try .NET",
    "type": "coreclr",
    "request": "launch",
    "program": "dotnet",
    "args":"try"
}

That's all you need. Now you can run dotnet try just by pressing F5.




About the Author

Jim Bennett
Jim Bennett

Senior Cloud Advocate at Microsoft, Xamarin Certified Developer, blogger, author of Xamarin in Action, speaker, father and lover of beer, whisky and Thai food. Opinions are mine

 

I've been playing a lot with Try .NET. I even blogged about it recently - jimbobbennett.io/trying-out-try-net.

One thing that was beginning to annoy me slightly was having to constantly launch the terminal and type dotnet try to test out what I was working in. My life would be infinitely improved (not really), if I could run it via F5 or the debug menu/tab instead of the terminal.

Turns out its pretty easy to do - just add a new entry to your launch.json file either directly from the file in the .vscode folder, or adding a configuration using the debug menu.

Add this to it:

{
    "name": "Try .NET",
    "type": "coreclr",
    "request": "launch",
    "program": "dotnet",
    "args":"try"
}

That's all you need. Now you can run dotnet try just by pressing F5.