Weeble | 30 Nov 2011 17:26
Picon
Gravatar

Whitelisting assemblies to scan for addin roots

I would like to prevent scanning for addins and addin roots of DLLs in
my application directory except for those that I explicitly whitelist.
Right now I have to add <exclude> entries for every *other* DLL in
that directory. I see that AddinFileSystemExtension can be used to
provide a virtualized view of the file-system to the scanner, so it
seems theoretically possible that I could just provide it with a view
that hides all DLLs except for the ones in my whitelist. However, I
can't see a way to use this correctly. I can register this with an
AddinRegistry with RegisterExtension, but AddinEngine.Initialize
creates a new AddinRegistry and then immediately starts scanning with
it, before I have an opportunity to register any extension with it. So
even though I can eventually register the extension, it's too late,
because the registry has already scanned all the DLLs in the
application directory.

1. Aside from this issue, is AddinFileSystemExtension suitable for
this purpose?
2. Is there a way around this problem without a change in Mono.Addins?
3. If not, I could probably change Mono.Addins to achieve what I want,
but how can I maximize the chance that my patch would be accepted back
into the project?

Regards,
    Weeble.

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.
(Continue reading)

F.Gsell | 14 Nov 2011 10:23
Picon
Favicon

0.6.2

Hi,

it would be great if you could provide a version with a modified
assembly and file version, which reflects 0.6.2. Currently it is still
set to 0.6.0.

Thanks,
vl950t

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.

Picon
Gravatar

GIT commit message is null

I'm running Ubuntu 11.10, with MonoDevelop 2.6 and Git support 2.6.0.

I created a new solution, with a C# console project, and with Git
Support enabled.

From the top menu, I did  Version Control ==> Commit Solution.

I got the "Commit Files" dialog, which listed the changed files.
Below the grid listing the modified files, there was a label "Commit
message:", with nothing following it.

I clicked "Commit", and received an error:

System.ArgumentException: Commit message must not be null or empty!
Parameter name: message
  at MonoDevelop.VersionControl.Git.GitRepository.Commit
(MonoDevelop.VersionControl.ChangeSet changeSet, IProgressMonitor
monitor) [0x00000] in <filename unknown>:0
  at MonoDevelop.VersionControl.CommitCommand+CommitWorker.Run ()
[0x00000] in <filename unknown>:0

I looked in Preferences ==> Version Control ==> Commit Message Style,
and I see text in the Preview.

Any ideas?

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
(Continue reading)

Matteo Tesser | 20 Oct 2011 20:06
Picon

upgrading to mono.addins 0.6 and 0.6.2

Hello mono-addins team!,
I tried to update the Addins system of the software I'm developing.  After updating to mono.Addins 0.6 and 0.6.2  I noticed that, in Windows, the addins engine fails to scan assemblies under Windows and generates errors like the following:

Scanning file: ...\...\mydll.dll
Using assembly reflector: Mono.Addins.CecilReflector.Reflector
Error:There was an error while scanning assembly: ...\...\mydll.dll
ExceptionSystem.TypeInitializationException: The type initializer for 'Mono.Cecil.Metadata.TableHeap' threw an exception. ---> System.ArgumentException: Value does not fall within the expected range.
   at System.Runtime.CompilerServices.RuntimeHelpers.InitializeArray(Array array, RuntimeFieldHandle fldHandle)
   at Mono.Cecil.Metadata.TableHeap..cctor()
   --- End of inner exception stack trace ---
   at Mono.Cecil.Metadata.TableHeap..ctor(Section section, UInt32 start, UInt32 size)
   at Mono.Cecil.PE.ImageReader.ReadMetadataStream(Section section)
   at Mono.Cecil.PE.ImageReader.ReadMetadata()
   at Mono.Cecil.PE.ImageReader.ReadImage()
   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Mono.Addins.CecilReflector.Reflector.LoadAssembly(String file, Boolean cache)
   at Mono.Addins.CecilReflector.Reflector.LoadAssembly(String file)
   at Mono.Addins.Database.AddinScanner.GetReflector(IProgressStatus monitor, AddinScanResult scanResult, String filePath)
   at Mono.Addins.Database.AddinScanner.ScanAssembly(IProgressStatus monitor, String filePath, AddinScanResult scanResult, AddinDescription& config)
Stack   at Mono.Cecil.Metadata.TableHeap..ctor(Section section, UInt32 start, UInt32 size)
   at Mono.Cecil.PE.ImageReader.ReadMetadataStream(Section section)
   at Mono.Cecil.PE.ImageReader.ReadMetadata()
   at Mono.Cecil.PE.ImageReader.ReadImage()
   at Mono.Cecil.PE.ImageReader.ReadImageFrom(Stream stream)
   at Mono.Cecil.ModuleDefinition.ReadModule(Stream stream, ReaderParameters parameters)
   at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters)
   at Mono.Addins.CecilReflector.Reflector.LoadAssembly(String file, Boolean cache)
   at Mono.Addins.CecilReflector.Reflector.LoadAssembly(String file)
   at Mono.Addins.Database.AddinScanner.GetReflector(IProgressStatus monitor, AddinScanResult scanResult, String filePath)
   at Mono.Addins.Database.AddinScanner.ScanAssembly(IProgressStatus monitor, String filePath, AddinScanResult scanResult, AddinDescription& config)


I saw that the cecil library have been updated  into Mono.Addins on the February 23, 2011 and this cecil error manifested to others using cecil 0.9.4: see

http://groups.google.com/group/mono-cecil/browse_thread/thread/952387ac994e47cf?pli=1


I noticed that the problem does not manifest  if I recompile mono addins using the latest stable cecil library 0.9.5.

My intention is only to share this information, hoping it's usefulness.

Best,
Matteo





--
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mono-addins+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.
Skinner36 | 8 Sep 2011 14:17
Picon

Passing collections using mono.addins

Is it possible to create an addin that passes a collection of objects back to
the host to application? I want to create an addin that reads a list of
customers from a database and passes them back to the host as a collection
of customers.

If it is possible you someone give me an idea how to do it?

Many thanks,

John

--
View this message in context: http://mono.1490590.n4.nabble.com/Passing-collections-using-mono-addins-tp3798632p3798632.html
Sent from the Mono - Addins mailing list archive at Nabble.com.

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.

F.Gsell | 29 Aug 2011 07:47
Picon
Favicon

Duplicate Addin Namespace and ID

Hi,

I am wondering what happens if there are two add-ins with the same
namespace and id. Which one wins? There is currently no log output
stating that there was a namespace and id collision?

Thanks,
F. Gsell

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.

Lluis Sanchez Gual | 17 Aug 2011 10:56
Picon
Gravatar

Mono.Addins 0.6.2 Released

Hi,

I'm pleased to announce the release of Mono.Addins 0.6.2.

Mono.Addins is a generic framework for creating extensible applications,
and for creating libraries which extend applications.

Changes in the 0.6.2 release: 

• Added option to support non-interactive installations when using mautil
• Fixed bugs:
• Avoid entering in an infinite loop when finding corrupted file
• Fixed crash when checking for add-in info in dynamic assemblies
• Fix bug in Repair command


If you are interested in knowing more about Mono.Addins, take a look at
http://monoaddins.codeplex.com/documentation.

You can download the source code from:
http://monoaddins.codeplex.com/releases/view/61370

and from GitHub:
https://github.com/mono/mono-addins/tree/mono-addins-0.6

Enjoy!
Lluis.

--
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mono-addins+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.
Michael Shimmins | 25 Jul 2011 12:33
Picon

The invoked member is not supported in a dynamic assembly.

I'm getting this error when trying to Initialize the AddinManager:

AddinManager.Initialize(catalogPath, pluginPath); The exception:

The invoked member is not supported in a dynamic assembly.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
Is thrown, with this stack trace:
[NotSupportedException: The invoked member is not supported in a dynamic assembly.] System.Reflection.Emit.InternalAssemblyBuilder.get_CodeBase() +56 Mono.Addins.AddinEngine.CheckHostAssembly(Assembly asm) +85 Mono.Addins.AddinEngine.ActivateRoots() +44 Mono.Addins.AddinEngine.Initialize(Assembly startupAsm, String configDir, String addinsDir, String databaseDir) +320 Mono.Addins.AddinManager.Initialize(String configDir, String addinsDir) +49
I was using Mono.Addings 0.6 from NuGet, but upgraded manually to the 0.6.1 release on CodePlex (which by the way has version 0.6.0 in the assembly info - not sure if it is actually 0.6.1 or not), but the error remains.Any thoughts?

--
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mono-addins/-/WRUQz5_JTMIJ.
To post to this group, send email to mono-addins-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to mono-addins+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.
F.Gsell | 31 May 2011 15:33
Picon
Favicon

Unique Addin Id (Addin <-> RuntimeAddin)

Hi,

I am a little bit confused about the Addin.Id.

I am looking for a way to get the the same ID for a RuntimeAddin which
is returned for the Addin itself. I need this information to get a
unique identifier for an addin - this is used for an internal license
mechanism.

Is there a way to get the Addin based on a RuntimeAddin?

Thanks,
F.Gsell

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.

F.Gsell | 26 May 2011 15:14
Picon
Favicon

Localizable Extension Nodes

I try to create localizable extension nodes. Now I have something like
this:

    public class ExecutableNode : ExtensionNode
    {
        [NodeAttribute(Localizable = true)]
        public string Test { get; set; }
    }

In the corresponding AddIn manifest I have something like this:

  <Localizer type="StringTable">
    <Locale id="de-de">
      <Msg id="Name" str="Localized" />
    </Locale>
  </Localizer>

  <Extension path="/Sample/Executable">
    <Executable Name="Test"/>
  </Extension>

So how can I make the association between my string table message id
and the corresponding extension node attribute? Did I miss something?

Thanks,
F.Gsell

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.

F.Gsell | 26 May 2011 09:36
Picon
Favicon

Load Addin in AppDomain

Hi,

is it possible to load an AddIn in a separate AppDomain. As far as I
understand the mechanism, I have to run the AddInManager initiailze in
the separate appdomain and load the AddIns. But how can I run the
AddInManager initialize in a separate AppDomain?

When I try to create the AddInManager in the new AppDomain via
CreateInstanceAndUnwrap I get an exception becauce the AddInManager is
not marked as serializable?

Any help would be great.

Thanks
F.Gsell

--

-- 
You received this message because you are subscribed to the Google Groups "Mono.Addins" group.
To post to this group, send email to mono-addins@...
To unsubscribe from this group, send email to mono-addins+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/mono-addins?hl=en.


Gmane