代码如下:
public void InstallmyService(IDictionary stateSaver, string filepath)
{
using (AssemblyInstaller AssemblyInstaller1 = new AssemblyInstaller())
{
AssemblyInstaller1.UseNewContext = true;
AssemblyInstaller1.Path = filepath;
AssemblyInstaller1.Install(stateSaver);
AssemblyInstaller1.Commit(stateSaver);
}
}
第二次值过来filepath的值是对的,但是给值后 path的值还是第一次的值