c# - Deploy addin project with ppt slide within solution and include it in deployed folder -


i trying deploy project having power point slide in solution exlorer. after build these gives me error not find @@.ppt file in bin debug. used build action content , copy output directory copy seems of no help. there other option

enter image description here

below code trying copy shapes ppt saved in solution explorer current ppt after deploy since ppt doesnt add deployed files cannot find ppt doesnt add shapes.

   powerpoint.application ppapp = globals.thisaddin.application;          string programfilespath = appdomain.currentdomain.basedirectory;         //var filespath = directory.getparent(directory.getparent(directory.getparent(programfilespath).tostring()).tostring());         string fullpath = programfilespath;          string pptname = "moons.ppt";          string themepresentationpath = fullpath + pptname;         // powerpoint.application ppapp2 =          var temporarypresentation = ppapp.presentations.open(themepresentationpath, msotristate.msofalse, msotristate.msotrue, msotristate.msotrue);         powerpoint.sliderange ppslr = ppapp.activewindow.selection.sliderange;         int countlargest = ppslr.shapes.count;         string shapecount = harveyballs.selecteditem.label.tostring();         int count = convert.toint32(shapecount);         ppslr.shapes.selectall();         powerpoint.shaperange ppshr = ppapp.activewindow.selection.shaperange;         ppshr[count + 1].copy();         temporarypresentation.close();         powerpoint.sliderange ppslr2 = ppapp.activewindow.selection.sliderange;         ppslr2.shapes.paste(); 

it not find @@.ppt file in bin debug

the debug folder used output when current configuration set debug. sure have debug configuration set in visual studio?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -