加载用于调试 MSProject 插件的特定测试文件 [英] Loading specific test file for debugging MSProject Add-In
问题描述
我正在使用 VSTO 开发 MSProject 插件,但我有一个关于调试的问题.
I am developing a MSProject add-in with VSTO and I have a question about debugging.
如何使用开始选项->命令行参数加载特定的 MS Project 文件?
How do I use the Start Option->Command line arguments to load a specific MS Project file?
我尝试过使用 [drive:][path]filename.mpp
但文件没有加载.
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.
感谢您的帮助.
推荐答案
您可以使用以下命令行示例加载带有特定 MPP 文件的 MS 项目:
You can use the following command line example to load MS Project with a specific MPP file:
winproj "c:\projects\Annual Report Preparation.mpp"
winproj "c:\projects\Annual Report Preparation.mpp"
对于 Visual Studio Project->Debug->Start Options->Command Line arguments - 您可以使用用引号括起来的路径.这里的问题是,您还必须指定 Start Action->Start External program 才能使其工作 - 这是一个 VS 错误.
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\年度报告准备.mpp"
"c:\projects\Annual Report Preparation.mpp"
使用 ... 并设置启动外部程序(取决于您的 Office 版本):
C:\Program Files (x86)\Microsoft Office\Office15\WINPROJ.EXE
C:\Program Files (x86)\Microsoft Office\Office15\WINPROJ.EXE
请参阅 MS Office 以获取进一步的 MS Project 命令行参考.
这篇关于加载用于调试 MSProject 插件的特定测试文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!