compile-time warnings, hides inherited member, fyi

Topics: Developer Forum, Project Management Forum
Mar 19, 2008 at 6:38 PM
...compile-time warnings, hides inherited member, fyi...

...as noted below...

...with version downloaded about 1 minute ago...

...not a big issue for me but I thought you would want to know...

------ Build started: Project: C:\...\Web\, Configuration: Debug .NET ------
Validating Web Site
Building directory '/Web/Administration/'.
Building directory '/Web/'.
Building directory '/Web/EasyControls/'.
Building directory '/Web/FCKeditor/editor/dialog/common/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_flash/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_image/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_link/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_select/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_universalkey/'.
Building directory '/Web/FCKeditor/editor/filemanager/browser/default/connectors/aspx/'.
Building directory '/Web/FCKeditor/editor/filemanager/browser/default/js/'.
Building directory '/Web/FCKeditor/editor/filemanager/upload/aspx/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/browser/default/connectors/aspx/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/browser/default/js/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/upload/aspx/'.
Building directory '/Web/FCKeditor/editor/js/'.
Building directory '/Web/FCKeditor/editor/lang/'.
Building directory '/Web/FCKeditor/editor/plugins/autogrow/'.
Building directory '/Web/FCKeditor/editor/plugins/placeholder/lang/'.
Building directory '/Web/FCKeditor/editor/plugins/placeholder/'.
Building directory '/Web/FCKeditor/editor/plugins/simplecommands/'.
Building directory '/Web/FCKeditor/editor/plugins/tablecommands/'.
Building directory '/Web/FCKeditor/editor/_source/classes/'.
Building directory '/Web/FCKeditor/editor/_source/commandclasses/'.
Building directory '/Web/FCKeditor/editor/_source/internals/'.
Building directory '/Web/FCKeditor/editor/_source/'.
Building directory '/Web/FCKeditor/'.
Building directory '/Web/PopCalendar2005/'.
Building directory '/Web/SectionControls/'.
Building directory '/Web/Silverlight/js/'.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.4.cs(190,40): warning CS0436: The type 'Search' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.5.cs' conflicts with the imported type 'Search' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebh83r10gb.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.5.cs'.
C:\Code\Test\MyWebPages\Web\Search.aspx.cs(40,20): warning CS0108: 'Search.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.PagePreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
C:\Code\Test\MyWebPages\Web\Default.aspx.cs(50,20): warning CS0108: 'Default.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.Page_PreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
C:\Code\Test\MyWebPages\Web\Administration\WebSite.aspx.cs(66,20): warning CS0108: 'AdministrationWebSite.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.Page_PreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
Validation Complete
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========

May 29, 2008 at 10:42 PM
Edited May 30, 2008 at 3:17 AM
There are two classes named "Search". The first is in Search.ascx.cs. The second is in SearchLink.ascx.cs. Rename the one in SearchLink.ascx.cs to SearchLink and the problem goes away.

mkamoski wrote:
...compile-time warnings, hides inherited member, fyi...

...as noted below...

...with version downloaded about 1 minute ago...

...not a big issue for me but I thought you would want to know...

------ Build started: Project: C:\...\Web\, Configuration: Debug .NET ------
Validating Web Site
Building directory '/Web/Administration/'.
Building directory '/Web/'.
Building directory '/Web/EasyControls/'.
Building directory '/Web/FCKeditor/editor/dialog/common/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_flash/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_image/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_link/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_select/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/'.
Building directory '/Web/FCKeditor/editor/dialog/fck_universalkey/'.
Building directory '/Web/FCKeditor/editor/filemanager/browser/default/connectors/aspx/'.
Building directory '/Web/FCKeditor/editor/filemanager/browser/default/js/'.
Building directory '/Web/FCKeditor/editor/filemanager/upload/aspx/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/browser/default/connectors/aspx/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/browser/default/js/'.
Building directory '/Web/FCKeditor/editor/images/filemanager/upload/aspx/'.
Building directory '/Web/FCKeditor/editor/js/'.
Building directory '/Web/FCKeditor/editor/lang/'.
Building directory '/Web/FCKeditor/editor/plugins/autogrow/'.
Building directory '/Web/FCKeditor/editor/plugins/placeholder/lang/'.
Building directory '/Web/FCKeditor/editor/plugins/placeholder/'.
Building directory '/Web/FCKeditor/editor/plugins/simplecommands/'.
Building directory '/Web/FCKeditor/editor/plugins/tablecommands/'.
Building directory '/Web/FCKeditor/editor/_source/classes/'.
Building directory '/Web/FCKeditor/editor/_source/commandclasses/'.
Building directory '/Web/FCKeditor/editor/_source/internals/'.
Building directory '/Web/FCKeditor/editor/_source/'.
Building directory '/Web/FCKeditor/'.
Building directory '/Web/PopCalendar2005/'.
Building directory '/Web/SectionControls/'.
Building directory '/Web/Silverlight/js/'.

c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.4.cs(190,40): warning CS0436: The type 'Search' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.5.cs' conflicts with the imported type 'Search' in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebh83r10gb.dll'. Using the one in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\web\3d89f2e6\d5f88167\AppWebwvx2si0j.5.cs'.
C:\Code\Test\MyWebPages\Web\Search.aspx.cs(40,20): warning CS0108: 'Search.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.PagePreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
C:\Code\Test\MyWebPages\Web\Default.aspx.cs(50,20): warning CS0108: 'Default.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.Page_PreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
C:\Code\Test\MyWebPages\Web\Administration\WebSite.aspx.cs(66,20): warning CS0108: 'AdministrationWebSite.PagePreRender(object, System.EventArgs)' hides inherited member 'MyWebPagesStarterKit.Controls.PageBaseClass.Page_PreRender(object, System.EventArgs)'. Use the new keyword if hiding was intended.
Validation Complete
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========