Closed mike3sullivan closed 5 months ago
Per Govert, a workaround:
I temporarily used <ExcelDnaUnpack>true</ExcelDnaUnpack>
in the csproj file to get a copy of the ExcelDna.ManagedHost.dll.
Included that file in my project as Content, copy always, and removed the line from the csproj.
Built as previously and seems to work fine.
In a customer's locked-down environment, they get the following error when trying to run an add-in with any of the recent versions of Excel-DNA:
Blocked by: Attack surface reduction Rule: Block Office apps from creating executable content Affected items: C:\Users\xxxx\AppData\Local\Temp\ExcelDna.Host\\ExcelDna.ManagedHost.dll
Is there a technical reason why ExcelDna.ManagedHost.dll is copied to a temp folder and is not run from the installation folder?
Edit: fixed typo