G
GD
Hi,
I need to uninstall an assembly from GAC programmatically. It only works on
the assemblies with no white spaces in the assembly name. I have tried
multiple combination without success. As there are while spaces in the name,
I have to put two double quotes on the two ends of the file name:
string strTestLib = "CF Test Lib For GAC"; //The dll without extension
string strCommand = "\" + strTestLib + \"" + " ,Version=1.0.9.0,
Culture=neutral, PublicKeyToken=70b83542ad6dde68";
or
string strCommand = '"' + strTestLib + '"' + " ,Version=1.0.9.0,
Culture=neutral, PublicKeyToken=70b83542ad6dde68";
Process.Start("cgacutil.exe", " /uf " + strCommand);
Any ideas?
Thanks.
GD
I need to uninstall an assembly from GAC programmatically. It only works on
the assemblies with no white spaces in the assembly name. I have tried
multiple combination without success. As there are while spaces in the name,
I have to put two double quotes on the two ends of the file name:
string strTestLib = "CF Test Lib For GAC"; //The dll without extension
string strCommand = "\" + strTestLib + \"" + " ,Version=1.0.9.0,
Culture=neutral, PublicKeyToken=70b83542ad6dde68";
or
string strCommand = '"' + strTestLib + '"' + " ,Version=1.0.9.0,
Culture=neutral, PublicKeyToken=70b83542ad6dde68";
Process.Start("cgacutil.exe", " /uf " + strCommand);
Any ideas?
Thanks.
GD