Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm assuming that the projects reference each other? So:</p> <ul> <li>ASP.NET Web App references at least the SilverLight App.</li> <li>Win Forms App references the Silverlight App.</li> </ul> <p>Visual Studio will automatically copy dependant files into the project hierarchy unless you tell it not to. so the steps Visual Studio will take are:</p> <ol> <li>Build SilverLight App, and copy its output to the Forms App and Web App</li> <li>Run any post build events defined in the "Build" tab for the SilverLight App project.</li> <li>Build the Win Forms App, and if it's referenced by anything else, copy the output appropriately.</li> <li>Run any post build events defined in the "Build" tab for the Win Forms App project.</li> <li>Build the Web App</li> <li>Run any post build events defined in the "Build" tab for the Web App project.</li> <li>Run any "After build" events defined through MSBuild.</li> </ol> <p>Basically, most of the dependant moves happen <em>before</em> the post build events:</p> <pre><code>Task "FindUnderPath" Comparison path is "D:\Projects\PublicSites\WebTest". Path [...] [...] Done executing task "FindUnderPath". Task "FindUnderPath" Comparison path is "bin\". Path [...] [...] Done executing task "FindUnderPath". Task "FindUnderPath" Comparison path is "obj\Debug\". Path [...] [...] Done executing task "FindUnderPath". Task "RemoveDuplicates" Done executing task "RemoveDuplicates". Done building target "_CleanGetCurrentAndPriorFileWrites" in project "WebTest.csproj". Target "IncrementalClean" in file "c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets": Task "FindUnderPath" Comparison path is "bin\". Done executing task "FindUnderPath". Task "FindUnderPath" Comparison path is "obj\Debug\". Done executing task "FindUnderPath". Task "Delete" Done executing task "Delete". Task "RemoveDuplicates" Done executing task "RemoveDuplicates". Task "WriteLinesToFile" Done executing task "WriteLinesToFile". Done building target "IncrementalClean" in project "WebTest.csproj". </code></pre> <p>Then the build and AfterBuild events happen.</p> <p>My guess is that VS is noticing the output of the SilverLight app is different to the version it has under it, and so goes and fetches a new copy.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload