Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Alright, I figured it out. It's a "Configuration" mismatch. You have one project building with Configuration=MSBuildRelease and two other projects building with Configuration=Release. MSBuild then looks in the wrong place for the "intermediate" assemblies.</p> <p>Change your code to this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="Build"&gt; &lt;PropertyGroup&gt; &lt;OutputDir&gt;C:\MSBUILDRELEASE&lt;/OutputDir&gt; &lt;/PropertyGroup&gt; &lt;ItemGroup&gt; &lt;ProjectToBuild Include="UtilityApp.sln" &gt; &lt;Properties&gt;OutputPath=$(OutputDir);Configuration=MSBuildRelease;Platform=x86&lt;/Properties&gt; &lt;/ProjectToBuild&gt; &lt;/ItemGroup&gt; &lt;Target Name="Build"&gt; &lt;MSBuild Projects="@(ProjectToBuild)"/&gt; &lt;CallTarget Targets="Publish WebProject1" /&gt; &lt;CallTarget Targets="Publish WebProject2" /&gt; &lt;/Target&gt; &lt;Target Name="Publish WebProject1"&gt; &lt;RemoveDir Directories="$(OutputFolder)" ContinueOnError="true" /&gt; &lt;MSBuild Projects="WebProject1\WebProject1.csproj" Targets="ResolveReferences;_CopyWebApplication" Properties="WebProjectOutputDir=$(OutputDir)\WebProject1\; OutDir=$(OutputDir)\WebProject1\;Configuration=MSBuildRelease;Platform=AnyCPU" /&gt; &lt;/Target&gt; &lt;Target Name="Publish WebProject2"&gt; &lt;RemoveDir Directories="$(OutputFolder)" ContinueOnError="true" /&gt; &lt;MSBuild Projects="WebProject2\WebProject2.csproj" Targets="ResolveReferences;_CopyWebApplication" Properties="WebProjectOutputDir=$(OutputDir)\WebProject2\; OutDir=$(OutputDir)\WebProject2\;Configuration=MSBuildRelease;Platform=AnyCPU" /&gt; &lt;/Target&gt; &lt;/Project&gt; </code></pre>
 

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