How to get location of extensions in version 10

-3

With the line of code below, in V10 (10.0003) was obtained the folder of extensions ie in my case

  

"C: \ Gestao \ SG100 \ Config \ LP \ Extensions \ CompanyName".

With version 10.0004 with the same line of code you get the folder

  

c: \ users \ username \ appdata \ local \ temp \ Spring.Extensions

What has changed? How can I get the folder where the extension is as before?

Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
    
asked by anonymous 28.12.2018 / 18:12

1 answer

4

You can always do this (after opening the engine):

// pressupõe-se que o objeto "Motor" já está inicializado
string strCaminhoExtensoes = Path.Combine(Motor.DSO.Plat.RegistryPrimavera.DaPercursoConfig, "Extensions", Motor.Contexto.CodEmp);

The Path.Combine method needs import System.IO .

    
30.12.2018 / 15:27