Thanks again for the reply. I followed your steps but unfortunately I get this error:
Running U:/UnrealEngine/Epic Games/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="U:/UnrealEngine/MyProjects/sharingTest/sharingTest.uproject" -game -rocket -progress
Discovering modules, targets and source code for project...
While compiling U:\UnrealEngine\MyProjects\sharingTest\Intermediate\Build\BuildRules\sharingTestModuleRules.dll:
ERROR: u:\UnrealEngine\MyProjects\sharingTest\Plugins\Sharing\Source\Sharing\Sharing.Build.cs(80,67) : error CS0122: 'UnrealBuildTool.BuildConfiguration' is inaccessible due to its protection level
WARNING: u:\UnrealEngine\MyProjects\sharingTest\Plugins\Sharing\Source\Sharing\Sharing.Build.cs(81,5) : warning CS0618: 'UnrealBuildTool.ModuleRules.ReceiptPropertyList.Add(UnrealBuildTool.ReceiptProperty)' is obsolete: 'Constructing a ReceiptProperty object is deprecated. Call RuntimeDependencies.Add() with the path to the file to stage.'
ERROR: UnrealBuildTool Exception: Unable to compile source files.
When I “Generate visual studio project files”. and since that does not work the plugin does not appear in Visual Studio