Excel-DNA / ExcelDna

Excel-DNA - Free and easy .NET for Excel. This repository contains the core Excel-DNA library.
https://excel-dna.net
zlib License
1.26k stars 270 forks source link

RunExcelDnaSetDebuggerOptions: open Excel file at launch #677

Open dubeg opened 4 months ago

dubeg commented 4 months ago

Isn't there a way to load the .xll & open an Excel file at the same time?

I usually add a template Excel file with which I develop my add-in, which I always open when debugging. If I understand RunExcelDnaSetDebuggerOptions correctly, it overrides the "Excel" profile on every build, so I can't just set add the Excel file to the commandLineArgs there.

So I'm left wondering how other people are doing it, if they are doing it.

dubeg commented 4 months ago

Ah, I guess that's still up for grabs: https://github.com/Excel-DNA/ExcelDna/issues/238

govert commented 4 months ago

If you set

    <RunExcelDnaSetDebuggerOptions>false</RunExcelDnaSetDebuggerOptions>

then the build should not interfere with your debug settings. You can then put both the .xll and your workbook in the command line arguments.