Note that there are some explanatory texts on larger screens.

plurals
  1. POTeamCity MSBuild 4.0 Help
    text
    copied!<p>I need some help with my MSBuild file i created a while ago. </p> <p>All i want to do is build the solution, publish a project inside the solution and than copy the files to a directory</p> <p>At the moment when i set Teamcity to .net 4 msbuild, msbuild 4.0 tools and for 86 i get an error stating</p> <blockquote> <p>error MSB4067: The element <code>&lt;ItemDefinitionGroup&gt;</code> beneath element <code>&lt;Project&gt;</code> is unrecognized.</p> </blockquote> <hr> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Run"&gt; &lt;Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets"/&gt; &lt;Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets"/&gt; &lt;PropertyGroup&gt; &lt;OutputFolder&gt;$(OutputDir)&lt;/OutputFolder&gt; &lt;DeploymentFolder&gt;$(DeploymentDir)&lt;/DeploymentFolder&gt; &lt;CompilationDebug /&gt; &lt;CustomErrorsMode /&gt; &lt;ContentEditorsEmail /&gt; &lt;AdministratorsEmail /&gt; &lt;/PropertyGroup&gt; &lt;Target Name="Run"&gt; &lt;CallTarget Targets="Compile" /&gt; &lt;CallTarget Targets="Publish" /&gt; &lt;CallTarget Targets="Deploy" /&gt; &lt;/Target&gt; &lt;Target Name="Clean"&gt; &lt;ItemGroup&gt; &lt;BinFiles Include="bin\*.*" /&gt; &lt;/ItemGroup&gt; &lt;Delete Files="@(BinFiles)" /&gt; &lt;/Target&gt; &lt;Target Name="Compile" DependsOnTargets="Clean"&gt; &lt;MSBuild Projects="WebCanvas.ZakisCatering.Website.sln" Properties="Configuration=Release"/&gt; &lt;/Target&gt; &lt;Target Name="Publish"&gt; &lt;RemoveDir Directories="$(OutputFolder)" ContinueOnError="true" /&gt; &lt;MSBuild Projects="WebCanvas.ZakisCatering.Website\WebCanvas.ZakisCatering.Website.csproj" Targets="ResolveReferences;_CopyWebApplication" Properties="Configuration=Release;WebProjectOutputDir=$(OutputFolder);OutDir=$(WebProjectOutputDir)\" /&gt; &lt;/Target&gt; &lt;Target Name="Deploy"&gt; &lt;RemoveDir Directories="$(DeploymentFolder)" ContinueOnError="true" /&gt; &lt;ItemGroup&gt; &lt;DeploymentFiles Include="$(OutputFolder)\**\*.*" /&gt; &lt;/ItemGroup&gt; &lt;Copy SourceFiles="@(DeploymentFiles)" DestinationFolder="$(DeploymentFolder)\%(RecursiveDir)" /&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