Loading specific test file for debugging MSProject Add-In

核能气质少年 提交于 2019-12-24 08:59:07

问题


I am developing a MSProject add-in with VSTO and I have a question about debugging.

How do I use the Start Option->Command line arguments to load a specific MS Project file?

I have tried using [drive:][path]filename.mpp but the file doesn't load.

Otherwise everything is fine. I can load a file manually and debug properly.

Thanks for any assistance.


回答1:


You can use the following command line example to load MS Project with a specific MPP file:

winproj "c:\projects\Annual Report Preparation.mpp"

For Visual Studio Project->Debug->Start Options->Command Line arguments - you can use the path enclosed in quotations. The gotcha here is that you must also assign the Start Action->Start External program for this to work - this is a VS bug.

"c:\projects\Annual Report Preparation.mpp"

Use ... and set Start External Program (depending on your Office version):

C:\Program Files (x86)\Microsoft Office\Office15\WINPROJ.EXE

See MS Office for further MS Project command line reference.



来源:https://stackoverflow.com/questions/12306289/loading-specific-test-file-for-debugging-msproject-add-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!