I am trying to create small application to list the portals configured in a machine/user.
I initialize the Host object:
ArcGIS.Core.Hosting.Host.Initialize();
then I try to use the singleton ArcGISPortalManager, but i keep getting a NullReferenceException
How can i use that object without having to create an Add-in?
neither here:
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Portal
nor here:
https://pro.arcgis.com/en/pro-app/3.1/sdk/api-reference/topic14684.html
are restrictions or constrains about it.