Posted April 6, 201114 yr QueryAssemblyInfo ****s my brainif I remove the two comment (lines) gacfilepath will have the right path;if I don't gacfilepath will be null;Assembly executingasm = Assembly.GetExecutingAssembly();string currentassemblyname = executingasm.Location;string asmname = executingasm.GetName().ToString();//int untilat = asmname.IndexOf(", PublicKeyToken=");//asmname = asmname.Remove(untilat, asmname.Length-untilat);string gacfilepath = Fusionhelper.QueryAssemblyInfo(asmname);Any idea guys? Edited April 12, 201114 yr by CodeRipper
April 6, 201114 yr hmm i think when it tries to resolve the assembly and u cut out PKT before it can't find it .. (prolly checks FullName which includes Token Info ..but not 100% anyomre
April 6, 201114 yr Author Solved! I just removed Culture;Now works fineAssembly executingasm = Assembly.GetExecutingAssembly();string currentassemblyname = executingasm.Location;AssemblyName asmname = executingasm.GetName();string builded =asmname.Name+", Version="+asmname.Version+", PublicKeyToken="+BitConverter.ToString(asmname.GetPublicKeyToken()).Replace("-","");string gacfilepath = Fusionhelper.QueryAssemblyInfo(builded);
Create an account or sign in to comment