title: Error MSB4062 when trying to use ServiceController
body: <p>I use Visual Studio 2010 with TFS 2010 on a x64 machine.</p>
  
  <p>I am trying to use the MSBuild Community Tasks target in my build. This target exists in source control. So in my csproj file i am import that particular target but i now get the following error:</p>
  
  <p>error MSB4062: The "MSBuild.Community.Tasks.Attrib" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\MSBuildCommunityTasks\MSB
  uild.Community.Tasks.dll. Could not load file or assembly 'file:///C:\Program F
  iles (x86)\MSBuild\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll' or one of
   its dependencies. The system cannot find the file specified. Confirm that the
   declaration is correct, that the assembly and all its dependencies
  are available, and that the task contains a public class that implements Micros
  oft.Build.Framework.ITask. [C:\SampleTest\SampleTest.csproj]</p>
  
  <p>Here is my code:</p>
  
  <pre><code>   &lt;Import Project="..\..\Builds\Common\MSBuildTasks\MSBuild.Community.Tasks\MSBuild.Community.Tasks.Targets" /&gt;
     &lt;Target Name="BeforeBuild"&gt;
      &lt;PropertyGroup&gt;
        &lt;MyService&gt;ServiceName&lt;/MyService&gt;
      &lt;/PropertyGroup&gt;
      &lt;ServiceController ServiceName="$(MyService)" Action="Stop" /&gt;--&gt;
    &lt;/Target&gt;
  </code></pre>
  
  <p>Any thoughts on the above?</p>
  
  <p>Why is MSBuild trying to look for the dll elsewhere when i have specified it in the project file?</p>
  
  <p>Thanks in advance,</p>