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

ExcelDNA support independent deployment? #697

Closed zzzqgrelax closed 4 days ago

zzzqgrelax commented 1 month ago

I migirate an addin from .NET 4.6.2 to .NET6 and it works well with vs ide when i publish the project with --self-contained true throw many exceptions like 1>Assembly at bin\Release\net6.0-windows\win-x86\Microsoft.CSharp.dll could not be packed. Possibly a mixed assembly? (These are not supported yet.)
does it not support? and .net6 addin can only load with runtime installed in system?

govert commented 1 month ago

We currently don't support the self-contained runtime option. You need to have the runtime (in fact the Desktop runtime) installed. Not supporting the self-contained option is a limitation of the .NET hosting interface we're using, though I can't remember the details exactly.

zzzqgrelax commented 1 month ago

ok thanks