I use SMO objects in my c# app to get it. I.e. I use Microsoft.SqlServer.Management.Smo.Server.Information class and use RootDirectory and MasterDBPath. It works ok. But for LocalDB there no tehse properties. I neetd it to have a possibility to install extended stored procedires.
How to get it for LocalDB?