Error message “CS5001 Program does not contain a static ‘Main’ method suitable for an entry point”

It means that you don’t have a suitable entry point for your application at the moment. That code will nearly work with C# 7.1, but you do need to explicitly enable C# 7.1 in your project file: <LangVersion>7.1</LangVersion> or more generally: <LangVersion>latest</LangVersion> You also need to rename MainAsync to Main. So for example: Program.cs: using … Read more

How can I run NUnit tests in Visual Studio 2017?

Add the NUnit test adapter NuGet package to your test projects 2.* (https://www.nuget.org/packages/NUnitTestAdapter/) 3.* (https://www.nuget.org/packages/NUnit3TestAdapter/) Or install the Test Adapter Visual Studio extension. There is one for 2.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnitTestAdapter) 3.* (https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter). I prefer the NuGet package, because it will be in sync with the NUnit version used by your project and will thus automatically match the … Read more

Access Visual Studio 2017’s private registry hive

To manually review, you can use the regedit.exe application to load the privateregistry.bin file by doing the following: Launch RegEdit.exe Select the Computer\HKEY_LOCAL_MACHINE node in the left-hand pane Select the File | Load Hive… menu item, and load the privateregistry.bin When prompted for a key name, just type in something like “VSRegHive” This will load … Read more