This project is read-only.

MSBuild.ExtensionPack.Computer.WindowsService task was not found

Dec 21, 2010 at 9:45 PM

I have downloaded and installed MS Build Extension pack Installer with all default options

I am using CC.Net to create my builds

in my build.xml I have this line to stop a service

<MSBuild.ExtensionPack.Computer.WindowsService TaskAction="Stop" ServiceName="Service1"/> 
but when CC.Net runs it doesnt recognise the task and throws this error
errorMSB4036: The "MSBuild.ExtensionPack.Computer.WindowsService" task was not found.
Do i need to do anything after i install MS Build Extenstion pack so that build recognises presense of MSBuild Extension pack?
Dec 22, 2010 at 4:45 PM

You need an import to link ot the tasks


  • 3.5 --- <Import Project="$(MSBuildExtensionsPath)\ExtensionPack\MSBuild.ExtensionPack.tasks"/>
  • 4.0 --- <Import Project="$(MSBuildExtensionsPath)\ExtensionPack\4.0\MSBuild.ExtensionPack.tasks"/>