-1
I am trying to open a file . shp which is inserted in a folder(Sampledata) within the project, however returns the Exception >>> System.IO.Ioexception: 'The file specified does not exist.'
First attempt...
var backingFile = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "SampleData/WorldCapitals.shp");
if (backingFile == null || !File.Exists(backingFile))
{
DisplayAlert("Alert", "Object não encontrato", "ok");
}
Second attempt...
ShapeFileFeatureLayer worldCapitalsFeatureLayer = new ShapeFileFeatureLayer(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "SampleData/WorldCapitals.shp"));
Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.
–