title: The name 'InitializeControl' does not exist in the current context (SharePoint 2010, Visual Studio 2012)
body: <p>i have visual studio 2012 SP1 ,and i am using visual web part  and i am having { The name 'InitializeControl' does not exist in the current context } and the "ascx.g.cs" file is not filled. but it does not disappear as it happeneds in VS 2010</p>
  
  <p>I know there is a lot of links about it but i tried the most of them and it seems now its something with VS 2012. </p>
  
  <p>I tried the following</p>
  
  <p>1) install VS 2012 SP1 </p>
  
  <p>2) my contents length below visual studio 2010 limitation of  8256 characters main is (3399  with spaces)</p>
  
  <p>4) restart VS / Restart PC.</p>
  
  <p>5) I am only referencing  a SharePoint custom WCF services</p>
  
  <p><strong>the wired thing is this.</strong></p>
  
  <p>i created a new visual webpart , and copy past the content without the CSS link. every thing worked fine. but when i added the CSS link. i got the same building error.</p>
  
  <p>here is the link css code</p>
  
  <pre><code>&lt;link href='&lt;asp:Literal runat="server" ID="TaskModuleCSS" Text="    &lt;%$Resources:TMS.UI,TaskModuleCSS%&gt;"/&gt;' rel="stylesheet" type="text/css" /&gt;
  </code></pre>
  
  <p>so i remove it , but that did not remove the error. </p>
  
  <p>Any idea , i stucked here and begin to think to remove the VS2012 and rebuild my solution in VS 2010. :/</p>