MSBuild.ExtensionPack.Computer.WindowsService task was not found

Dec 21, 2010 at 8:45 PM

I have downloaded and installed MS Build Extension pack 3.5.8.0 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 CC.net/ms build recognises presense of MSBuild Extension pack?
Coordinator
Dec 22, 2010 at 3: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"/>