Comments (6)
Related thread:
https://groups.google.com/forum/#!topic/exceldna/ZUd1kckJblA
from exceldna.
Below is a reproduction scenario.
(0. Get Portable.Licensing using NuGet.)
- Compile the cs file to a dll
- Pack with ExcelDnaPack to an xll
- Copy the xll file to a directory without System.Xml.Linq.
- Start Excel with the xll and inspect the debug output.
This uses reproduction scenario uses Portable.Licensing as an example, but I am sure other libraries referencing portable versions of GAC'ed dll's would illustrate the problem just as well.
DNA:
<DnaLibrary Language="CS" RuntimeVersion="v4.0">
<ExternalLibrary Path="MyAddIn.dll" Pack="true" />
<Reference Path="Portable.Licensing.dll" Pack="true" />
</DnaLibrary>
CS:
using System;
using System.Diagnostics;
using ExcelDna.Integration;
using Portable.Licensing;
namespace MyAddIn
{
public sealed class MyAddInHelper : IExcelAddIn
{
public void AutoOpen()
{
Debug.WriteLine("In AutoOpen()");
try
{
var contents = "<?xml version=\"1.0\" encoding=\"utf-8\"?><gibberish />";
var license = License.Load(contents);
}
catch (Exception e)
{
Debug.WriteLine("Exception: {0}", e.Message);
throw;
}
}
public void AutoClose()
{
Debug.WriteLine("In AutoClose()");
}
}
}
from exceldna.
Hi henningniss ,
What I miss in your DNA File is the bouncing castle dll, but I didn't test your problem till now.
If you like you can also check my branch version. https://github.com/konne/ExcelDna I have changed the whole area for finding the right assembly and I also solved the issue with portable dlls (I had the problem with autofac)
If you don't get your test working with my branch I will try to test this in the end of week and debug into this issue.
bye
Konrad
from exceldna.
Hi Konrad
Forgive my ignorance, but I thought that Bouncy Castle (to the extent that I knew of its existence) was already part of the Portable.Licensing dll, and hence not required as a separate dependency.
I'll try to find some time to test your branch as well.
Henning
from exceldna.
any update on this issue?
from exceldna.
I've not had a closer look at this yet.
from exceldna.
Related Issues (20)
- Allow use of ExcelReference from outside Excel context
- Question: addin size HOT 21
- ExcelDNA get file name
- -packed.xll not generated HOT 1
- Unable to build project with latest release HOT 1
- Registration [Error] xlfRegister call failed for function or command HOT 3
- Attack surface reduction block triggered in corporate environment HOT 1
- Could not load file or assembly 'System.Reflection.Metadata HOT 1
- Error value on multiple calls to a ThreadSafe async function HOT 7
- FrameworkReference issue with xll (.NET 6) HOT 3
- How much money is needed to make it .net 8 compatible? HOT 1
- How to access Microsoft.Office.Interop.Excel component from IRibbonControl HOT 2
- Use runtimeconfig.json when loading runtime - ASP.NET Core support under .NET 6+
- RunExcelDnaSetDebuggerOptions: open Excel file at launch HOT 2
- native runtime library is not found when packed. HOT 3
- Support packing a .chm help file
- how to use webview2 in CustomTaskPane with ExcelDna project? HOT 4
- option to disable machine hive (i.e. assume always non-elevated) + pre-register ribbon [in installer] HOT 4
- Expand CustomAttributes for paramarray parameters HOT 1
- suggested enhancement - flag to indicate to intellisensehelper whether the workbook provider is required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exceldna.