BUG ?: SolutionItemsEvents not fired

  • Thread starter Thread starter Cedric
  • Start date Start date
C

Cedric

Hello,

I trying to develop an addin but I not able to catch SolutionItemsEvents.

Is there somebody reach to do that ?
 
Hi Cedric,

SolutionEvents is of type SolutionEvents, but both MiscFilesEvents and
SolutionItemsEvents are of type ProjectItemsEvents.

You may try to have a look at the sample code.
Microsoft Visual Studio .NET Automation Sample: EventWatcher Add-in
http://msdn.microsoft.com/code/default.asp?URL=/code/sample.asp?url=/MSDN-FI
LES/026/002/525/msdncompositedoc.xml

Have a nice day.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
 
SolutionEvents is of type SolutionEvents, but both MiscFilesEvents and
SolutionItemsEvents are of type ProjectItemsEvents.

You may try to have a look at the sample code.
Microsoft Visual Studio .NET Automation Sample: EventWatcher Add-in
http://msdn.microsoft.com/code/default.asp?URL=/code/sample.asp?url=/MSDN-FI
LES/026/002/525/msdncompositedoc.xml
Your URL is wrong correct one is
:http://msdn.microsoft.com/vstudio/downloads/samples/automation.aspx

Ok thanks for that but try to run it. And you'll never see these events (in
..net 2003 at least):
SolutionItemsEvents.ItemAdded, ItemRenamed ItemRemoved

and same thing for MiscFilesEvents

So my question is not so bad and become really a bug report.
 
Hi,

Solution items is not a Common project e.g. VB. C#. It is a special project.

You may try to follow the steps below to see if the
SolutionItemsEvents_ItemAdded has been fired.
[I tested with the EventWatcher Add-In in the link below]
http://msdn.microsoft.com/vstudio/downloads/samples/automation.aspx
[STEPS]
1. In the Solution Explorer Panel, Right click on the Solution and select
Add-->Add New Item
2. In the Add New Item dialog, select a item ,e.g. Text File.
3. Click Open
Observe the Output panel[DTE Events Information] to see if the
SolutionItemsEvents_ItemAdded has been fired.

You may have a try and let me know the result.
Cheers.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
 
Back
Top