How to read/get a PropertyGroup value from a .csproj file using C# in a .NET Core 2 classlib project?
问题 I want to get the value of the element <Location>SourceFiles/ConnectionStrings.json</Location> that is child of <PropertyGroup /> using C#. This is located at the .csproj file for a .NET Core 2 classlib project. The structure is as follow: <PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> <Location>SharedSettingsProvider.SourceFiles/ConnectionStrings.json</Location> </PropertyGroup> Which class can I use from .NET Core libraries to achieve this? (not .NET framework) Update 1: I