c# - Visual Studio 2013 interprets my file as a form file -


i create simple cs file 1 class:

using system; using system.collections.generic; using system.linq; using system.net; using system.text; using system.threading.tasks;  namespace bed {     public class timeoutwebclient : webclient     {         protected override webrequest getwebrequest(uri uri)         {             webrequest w = base.getwebrequest(uri);             w.timeout = 30 * 1000;             return w;         }     } } 

suddenly visual studio has interpreted form class.. did go wrong?

vs screen

these versions use:

microsoft visual studio ultimate 2013
version 12.0.21005.1 rel
microsoft .net framework
version 4.5.50938

i'm not sure how happened how fix it:

  • right-click on project , choose 'unload'
  • right-click on project , choose 'edit'
  • find in file 'timeoutwebclient'

i expect find this:

 <itemgroup>     <compile include="timeoutwebclient.cs">       <subtype>form</subtype>     </compile>     <compile include="timeoutwebclient.designer.cs">       <dependentupon>timeoutwebclient.cs</dependentupon>     </compile>     <!-- other files go here --> 

remove subtype tag. if want undo dependencies remove <dependentupon> tag well.

save project file, right-click , choose 'reload'.
verify if achieved need.


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -