Hi,
I created a dll, MyForm.dll which contains a form inherited from System.Windows.Forms.Form. And would like to automatically add a reference to MyForm.dll when I add a MyForm to a project.
I signed it with sn.exe, and created an install program that installs this dll into the GAC.
I also run a custom action which installs all the necessary files (vsz, vsdir, ... ) for this form to appear in the add new item dialog.
In the default.js file for the MyAddFormWizard, I added the following code:
var refmanager = GetCSharpReferenceManager(selProj);
refmanager.Add("MyForm" );
I also tried
var refmanager = GetCSharpReferenceManager(selProj);
refmanager.Add("MyForm.dll" );
In hopes that a reference to my dll would be added to the project when I add my form to the project.
Instead I get a message saying that the dll cannot be found.
Also, When I open the Add Reference dialog on a project. MyForm.dll does not appear in the list on the .NET tabpage.
I have verified all the VS files, and MyForm.dll is in the GAC.
Is there something else I must do to accomplish what I am trying to do?