I use Pickit2 for ICSP programming.

When I use it directly to my board ( with PICKIT2 programmer software ) everything run well.

But when I use it inside MCS ( Compile and Program ) it hold the PIC on reset at the end of programming ( similar to condition when you tick the option "Programmer-Hold Device in Reset" on Pickit2 software) . Manual reset does not work, so I have to run the PICKIT2 programmer software to reset it.

How to fix this problem ? Thank you

I use following on MCS :
PK2CMD.EXE v1.01
Device File v1.41.00
PICkit 2 Firmware v2.10.00