Console.Write in .Net Core

后端 未结 3 471
挽巷
挽巷 2021-01-08 01:22

I start to learn .Net Core. I want to write a simple \'Hello World\' console application.

Unfortunately the System.Console is not available initially. T

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-08 01:52

    Also, just to save someone else the minor headache: Don't make the mistake of naming your project "MyThing.Console" like I did, or the Console reference in your code won't be referencing System.Console, it will be referencing your namespace looking for a type called WriteLine!

提交回复
热议问题