MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Sample code not running- for me getting the below - I created a .net core console app #52165

Closed maseedat closed 4 years ago

maseedat commented 4 years ago

CS5001 C# Program does not contain a static 'Main' method suitable for an entry point


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

YutongTie-MSFT commented 4 years ago

@maseedat Thanks for the feedback! We are currently investigating and will update you shortly.

YutongTie-MSFT commented 4 years ago

@maseedat I have tried the sample and it works for me well as following: image

Could you please check if you are using the whole sample and you have set the environment variables in your system as https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account?tabs=multiservice%2Cwindows#configure-an-environment-variable-for-authentication

Please let me know if you still have problem. Thanks.

YutongTie-MSFT commented 4 years ago

@maseedat We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.