title: c++ -- Visual Studio 2010 Linker Error LNK1104: 'cannot open file Debug\AssemblyInfo.obj' [.obj files are not created at compile time]
body: <p>After a great deal of searching and head banging, i'm asking this question.</p>
  
  <p>I started a new Windows Forms Application in Visual Studio 2010. Gave it a name and stored it in a location. Nothing added or edited in the same. No changes in the project properties either.</p>
  
  <p><a href="http://i299.photobucket.com/albums/mm298/aabond/Capture_zpsdc5768a4.jpg" rel="nofollow">Here</a> is a copy of the Solutions Explorer.</p>
  
  <p>I'm building the empty form and I get the following error.</p>
  
  <pre><code>1&gt;------ Build started: Project: TestProject, Configuration: Debug Win32 ------
  1&gt;Build started 27/11/2013 1:35:27 PM.
  1&gt;InitializeBuildStatus:
  1&gt;  Touching "Debug\TestProject.unsuccessfulbuild".
  1&gt;GenerateTargetFrameworkMonikerAttribute:
  1&gt;Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
  1&gt;CoreResGen:
  1&gt;  Processing resource file "Form1.resX" into "Debug\TestProject.Form1.resources".
  1&gt;LINK : fatal error LNK1104: cannot open file 'Debug\AssemblyInfo.obj'
  1&gt;
  1&gt;Build FAILED.
  1&gt;
  1&gt;Time Elapsed 00:00:01.41
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>Now I have checked every damn page relevant to the error (6 hrs. of googling!!)
  <a href="http://msdn.microsoft.com/en-us/library/ts7eyw4s.aspx" rel="nofollow">Here</a> is a list of the possible errors as suggested by MSDN. Now I'm new to MSVS 10, so I figure out that the <code>.obj</code> file is not present in the Debug Window, but <code>AssemblyInfo.cpp</code> is present. What should I do in the project settings so that the <code>.obj</code> gets compiled and the error goes away.</p>
  
  <p><strong>Update</strong>: Still no answers!! I'm amazed how NOBODY is getting this issue. Here is what I have tried soo far and the following happens:</p>
  
  <ol>
  <li>Opened new Visual C++ Windows Forms Application (no modifications!)</li>
  <li>Write ABSOLUTELY NO CODE.</li>
  <li>Build Project</li>
  </ol>
  
  <p>And the error occurs.</p>
  
  <p><strong>Next</strong></p>
  
  <ol>
  <li>Opened an old solution, where the .obj files were present.</li>
  <li>Made a rebuild of the solution.</li>
  </ol>
  
  <p>Same Error.
  I look up the solution in the windows explorer. All .obj files are gone(which should happen as a rebuild would clean the .obj files). But what remains are onlt the <code>.log</code> files.</p>
  
  <p>Thus, I have isolated the error that the compilation is not occuring as the linker files are not being created. As a result, the linker error <code>LNK1104</code> or <code>LNK1181</code> happen.</p>
  
  <p>Can somebody tell me <em>why</em> is this problem. Has anyone seen this before. Can anyone provide a solution, if possible??</p>