Can i comment out "private System.ComponentModel.Container components = null;" to avoid warning in w

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

When ever I add a projectinstaller to a C# windows service the wizard
generated code causes this compile time warning:
C:\foo\foo\ProjectInstaller.cs(21): The private field
'foo.ProjectInstaller.components' is never used -- Is it safe to resolve
this by just commenting out "private System.ComponentModel.Container
components = null;" from the ProjectInitiallizer.cs?
 
Daniel said:
When ever I add a projectinstaller to a C# windows service the wizard
generated code causes this compile time warning:
C:\foo\foo\ProjectInstaller.cs(21): The private field
'foo.ProjectInstaller.components' is never used -- Is it safe to resolve
this by just commenting out "private System.ComponentModel.Container
components = null;" from the ProjectInitiallizer.cs?

I usually add "components = components;"
 
Back
Top