Instruction
1️⃣ Create a new Console App (.NET Framework)
project
2️⃣ Paste the existing logic from Program.cs
/Program.vb
while ensuring program namespace/module name same as source code file name)
3️⃣ Navigate to https://developers.google.com/calendar/quickstart/dotnet and click on ENABLE THE GOOGLE CALENDAR API button
4️⃣ After setting up OAuth credential, download the configuration file credentials.json
and paste it to project root path in Microsoft Visual Studio
5️⃣ Right click credentials.json
, select Properties and set Copy to Output Directory
to Copy always
6️⃣ Build the project and Run it
7️⃣ Voilà!