
Dear Sir/Mdm,
We are using actipro in our product which work similar in function as Visual Studio. Our product allows user to Add and Remove Assembly Reference from a Project. We currently face a problem in refreshing the DotNetProjectResolver ExternalReferences.
The scenario is as below:
1. User add an assembly (asm1.dll) to the project. Below is the simplified code just to show the logic behind the UI operation just for your understanding only:2. User has made some changes to asm1.dll, say add a new Property "Age" to "Customer" class in this assembly. Thus he choose to remove the assembly reference from the project and then add the newly modified assembly to the resolver again.
3. In the Actipro Syntax Editor, the newly added "Age" Property is not showing in the intellisense of "Customer" object. The intellisense list still give the same list as Version1 of the asm1.dll.
I need to know how to get the resolver refreshed when someone remove an assembly from the project and then add a new version of the same assembly back to project again.
Thanks.
We are using actipro in our product which work similar in function as Visual Studio. Our product allows user to Add and Remove Assembly Reference from a Project. We currently face a problem in refreshing the DotNetProjectResolver ExternalReferences.
The scenario is as below:
1. User add an assembly (asm1.dll) to the project. Below is the simplified code just to show the logic behind the UI operation just for your understanding only:
byte[] assemblyBytes = ReadAssemblyFileBinaries(@"C:\Version1\asm1.dll");
Assembly assembly1 = Assembly.Load(assemblyBytes);
resolver1.AddExternalReference(assembly1); //resolver1 is DotNetProjectResolver
resolver1.RemoveExternalReference(assembly1.FullName);
byte[] assemblyBytes = ReadAssemblyFileBinaries(@"C:\Version2\asm1.dll"); //new version
Assembly assembly2 = Assembly.Load(assemblyBytes);
resolver1.AddExternalReference(assembly2);
I need to know how to get the resolver refreshed when someone remove an assembly from the project and then add a new version of the same assembly back to project again.
Thanks.