Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3671230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:27:42+00:00 2026-05-19T02:27:42+00:00

I have a C# project in VS 2008, that is being rebuilt every time

  • 0

I have a C# project in VS 2008, that is being rebuilt every time I build the solution, even though nothing in this project, nor any of its dependencies, was changed. This is causing a huge problem, because the solution is pretty large (>100 projects), and this one project is very low down the dependency chain, so it is now causing most of the other projects to also rebuild, when no rebuild should have been necessary. (I am doing “Build Solution” and not “Rebuild Solution.”)

I know this one project is the culprit, since I turned “MSBuild project build output verbosity” to “Diagnostic.” I then build the solution twice without changing anything in between builds. On the second build, this is the 1st project in the solution that is being rebuilt, as determined by noting that Csc.exe is getting executed.

Here’s what I see in the Build Output:

------ Build started: Project: COS.BusinessEntities, Configuration: Debug Any CPU ------

...

Target "CoreCompile" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets":
 Building target "CoreCompile" completely.
 Output file "bin\Debug\COS.BusinessEntities.XML" does not exist.
 Task "Csc"
  Command:
  c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1591,1573,0219,0168,1572,1587,1570,1701,1702 /errorreport:prompt /warn:4 /doc:bin\Debug\COS.BusinessEntities.XML /define:DEBUG;TRACE ...

So it appears that when it gets to the COS.BusinessEntities project, it doesn’t find the “bin\Debug\COS.BusinessEntities.XML” file. But I have verified that this file is indeed there after the first build, and I don’t believe it is getting deleted and re-created (but am open to suggestions on how to verify this). I tried watching the folder while doing the second build, and I never saw it disappear.

Another clue is that this behavior began on a specific check-in, where a developer added two files to the project: an OptionsEntities.edmx file and OptionsEntities.Designer.cs . The following was also added to the COS.BusinessEntities.prj file:

  <Compile Include="Options\Entities\OptionsEntities.Designer.cs">
   <AutoGen>True</AutoGen>
   <DesignTime>True</DesignTime>
   <DependentUpon>OptionsEntities.edmx</DependentUpon>
  </Compile>

  ...

  <EntityDeploy Include="Options\Entities\OptionsEntities.edmx">
   <Generator>EntityModelCodeGenerator</Generator>
   <LastGenOutput>OptionsEntities.Designer.cs</LastGenOutput>
  </EntityDeploy>

Obviously these entries are necessary for the edmx file, but I’m wondering if some of the values are incorrect, causing this behavior. I know for sure that this is the culprit, as if I get the previous changeset, this problem goes away; the project does not rebuild itself when building the solution after no code changes.

Any help is appreciated! I’ve been racking my brain for a few days now!

Thanks,

Chris

EDIT:
After removing the XML documentation XML file from the project, I’m still getting the same problem, but here’s the new output:

Target "CoreCompile" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets":
  Building target "CoreCompile" completely.
  Input file "C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D36.tmp" is newer than output file "obj\Debug\COS.BusinessEntities.pdb".
  Task "Csc"
    Command:
    c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1591,1573,0219,0168,1572,1587,1570,1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE ...

…and that temp file is different every time! Yikes! What to try now?

EDIT 2:
Here are the relevant portions of the Build Output, related to this temp file (these begin within the BusinessEntities project):

Target "SplitResourcesByCulture" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Task "Warning" skipped, due to false condition; ('@(ResxWithNoCulture)'!='') was evaluated as (''!='').
  Task "Warning" skipped, due to false condition; ('@(ResxWithCulture)'!='') was evaluated as (''!='').
  Task "Warning" skipped, due to false condition; ('@(NonResxWithCulture)'!='') was evaluated as (''!='').
  Task "Warning" skipped, due to false condition; ('@(NonResxWithNoCulture)'!='') was evaluated as (''!='').
  Task "AssignCulture"
    Culture of "" was assigned to file "C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D36.tmp".
    Culture of "" was assigned to file "C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D38.tmp".
    Culture of "" was assigned to file "C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D37.tmp".
  Done executing task "AssignCulture".
Done building target "SplitResourcesByCulture" in project "COS.BusinessEntities.csproj".
Target "CreateManifestResourceNames" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.CSharp.targets":
  Task "CreateCSharpManifestResourceName"
    Root namespace is 'COS.BusinessEntities'.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D36.tmp' doesn't depend on any other file.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D36.tmp' gets manifest resource name 'COS.BusinessEntities.tmp6D36.tmp'.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D38.tmp' doesn't depend on any other file.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D38.tmp' gets manifest resource name 'COS.BusinessEntities.tmp6D38.tmp'.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D37.tmp' doesn't depend on any other file.
    Resource file 'C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D37.tmp' gets manifest resource name 'COS.BusinessEntities.tmp6D37.tmp'.
  Done executing task "CreateCSharpManifestResourceName".
  Task "CreateCSharpManifestResourceName" skipped, due to false condition; ('%(EmbeddedResource.ManifestResourceName)' == '' and '%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx') was evaluated as ('' == '' and 'false' == 'true' and 'Non-Resx' == 'Non-Resx').
Done building target "CreateManifestResourceNames" in project "COS.BusinessEntities.csproj".

And then a little further down:

Target "_GenerateCompileInputs" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets":
  Task "Warning" skipped, due to false condition; ('@(ManifestResourceWithNoCulture)'!='' and '%(ManifestResourceWithNoCulture.EmittedForCompatibilityOnly)'=='') was evaluated as (''!='' and ''=='').
  Task "Warning" skipped, due to false condition; ('@(ManifestNonResxWithNoCultureOnDisk)'!='' and '%(ManifestNonResxWithNoCultureOnDisk.EmittedForCompatibilityOnly)'=='') was evaluated as ('C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D36.tmp;C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D38.tmp;C:\Documents and Settings\<my username>\Local Settings\Temp\tmp6D37.tmp'!='' and 'true'=='').
Done building target "_GenerateCompileInputs" in project "COS.BusinessEntities.csproj".

So it looks like there are a few other temp files as well, but I’m not sure why they’re being generated, or why they’re considered inputs to the project.

Thanks so much for the help so far!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:27:43+00:00Added an answer on May 19, 2026 at 2:27 am

    Well, I finally figured it out. Posting the answer for posterity.

    In Solution Explorer, I double-clicked the .edmx file that was causing this to open the Model Browser. In the Model Browser, I selected my model, and in the Properties window, I changed “Metadata Artifact Processing” to “Copy to Output Directory.”

    After that, it works fine (no unnecessary rebuilds)!

    Also, I’ve been told that this doesn’t happen in VS2010 (have not tested this, though).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a visual studio 2008 solution that includes an asp.net-hosted remoting project in
I have a project stored in TFS Source Control (2008) that is being worked
I have a Visual Studio 2008 solution with two projects (a Word-Template project and
In Visual C# 2008, I have a solution with two projects. First project contains
We have a database project in Visual Studio 2008 that has been working great.
I have a project that I'm upgrading from 2008 to 2010. My problem is
Wondering if anyone has a solution to this 2010 bug. I have a project
I have a Visual Studio 2008 C++ project with a class that manages a
I have a project converted from .NET 1.1 to 3.5 being developed in 2008.
I have a VS 2008 project under TortoiseSVN source control. I am the only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.