• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Doubts in installation setup for C#?  RSS feed

 
Ranch Hand
Posts: 1045
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a beginner in C#. I tried to do the required installation for running a hello world program. I installed Dot Net Core and Visual Studio.

When I created a dot net core application and pressed F5 to run it I got an error message saying "unable to start program".

When I created a dot net framework application and pressed F5 to run, it ran successfully.

What is the difference? Although I had installed dot net core. Instead of dot net core, I am able to run dot net framework successfully and not dot net core.

Thanks.
 
Saloon Keeper
Posts: 1112
36
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the program compile  in visual studio ? You've got only the "unable to run program" error message, or there's more info about what went wrong ? And which version of VS are you using ?
 
Monica Shiralkar
Ranch Hand
Posts: 1045
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

The complete error message is "Unable to start program "C\Program Files\dotnet\dotnet.exe.The remote debugger was unable to locate a resource dfl (vsdebugeng.impl.resources.dll)"

The version of visual studio is visual studio 2017.

 
Claude Moore
Saloon Keeper
Posts: 1112
36
IBM DB2 Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With visual studio 2017, you should be able to select which .NET runtime to use when creating a new project.
Is .NET core listed among availables runtimes ?
 
Master Rancher
Posts: 58
6
Mac Mac OS X Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.NET Core is what it takes to do the runtime. However Visual Studio has designers, editors, debugging that is not part of the .NET Core runtime. So you would want to install .NET core support as a Visual studio component. As a bonus, when you update your Visual Studio, you will also get new versions of .NET Core as well. This is the same with Visual Studio Code. It's just that any extra features are part of the Extensions, so it is a bit easier to just pull what you need.
 
Monica Shiralkar
Ranch Hand
Posts: 1045
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!