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 272 forks source link

Set launch settings in Rider #631

Open Myaukolka opened 10 months ago

Myaukolka commented 10 months ago

While building under JetBrains Rider with both <RunExcelDnaSetDebuggerOptions> and <RunExcelDnaSetDebuggerOptionsOutsideVisualStudio> set to true, no launchSettings.json file is being created on build. This is caused by a condition of ExcelDnaSetLaunchSettings task in ExcelDna.AddIn.targets, where it is never run if BuildingByReSharper property is set to true (which is the case for Rider). While this condition is correct for ExcelDnaSetDebuggerOptions task to never try to set Visual Studio debugger options using Rider, ExcelDnaSetLaunchSettings task should be run with respect to <RunExcelDnaSetDebuggerOptions> and <RunExcelDnaSetDebuggerOptionsOutsideVisualStudio> properties.

Condition in question: https://github.com/Excel-DNA/ExcelDna/blob/65693386abdda677668b934ff86f66df6eef5fef/Package/ExcelDna.AddIn/build/ExcelDna.AddIn.targets#L122C6-L122C6