dependencies

Inspect dependencies for dynamically loaded library in .net core

孤人 提交于 2019-12-08 11:50:33
问题 I'm trying to create plugin which uses some functions from external dll-s. Because I don't know which plugin will be used I would like to dynamically load: main asp.net core project which dynamically loads plugins like mailservice.dll using reflection. mailservice.dll library which exposes CheckMail() method (I use MimeKit as a IMAP helper). Everything loads fine but when I invoke CheckMail() method I receive System.IO.FileNotFoundException: Could not load file or assembly 'MailKit, Version=1

PHP dependency class

为君一笑 提交于 2019-12-08 11:24:28
问题 The class: class deps{ var $items; function add($item, $deps = array()){ $this->items[$item] = $deps; } } How can I generate an array with $items ordered by taking into account dependencies ($deps) ? For example: $deps = new deps; $deps->add('item2', array('item1')); // <- depends on item1 $deps->add('item1', array()); // <- no dependency $deps->add('item3', array('item1', 'item5')); // <- depends on item1 and item5 $deps->add('A', array('item3')); // <- on item3 $deps->add('C', array('item2'

Clarifying `.dll.refresh` files, source control, and build of an asp.net web site project

为君一笑 提交于 2019-12-08 10:47:30
问题 I'm working in an ASP.NET Web Site project (as opposed to an Web Application project, meaning it doesn't have a .csproj file) . The solution is structured like this: -Solution |-dlls | |-AjaxControlToolkit.dll |-packages | |-Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1 | | |-(...) | |-RestSharp.106.6.7 | |-(...) |-WebSiteProject | |-Bin | | |-(.refresh files listed below) | |-packages.config | |-(other website files) After a fresh checkout from source control, in the Bin folder I

r package development imports not loaded

好久不见. 提交于 2019-12-08 09:12:57
问题 Hi I am new to writing R packages. I try to import dependencies via: Imports: forecast, ggplot2, dplyr When I click Build & Reload in Rstudio my library is built successfully. However when checking if the dependencies are loaded for real Rstudio tells me that they are not. In my namespaces file I only have exportPattern("^[[:alpha:]]+") Is it a problem that there is no specific import of namespaces like in https://github.com/robjhyndman/forecast/blob/master/NAMESPACE What is wrong? 回答1: You

Installing vscode .deb package using terminal in ubuntu 18.04

若如初见. 提交于 2019-12-08 09:02:01
问题 I want to install Visual Code in ubuntu-18.04 with .deb package, i used: dpkg -i <file name.deb> i also tried: apt-get install -f but it says it needs libconf-2-4, and libconf-2-4 needs more things... Is there any way to install all of the dependencies together? 回答1: You can use apt for installing a package file , e.g., apt install ./filename.deb The "./" helps it see that is just a package file, and after that it will continue by evaluating dependencies. 来源: https://stackoverflow.com

Unit Testing in Qt with Highly Dependent Functions

允我心安 提交于 2019-12-08 08:56:26
I'm new to unit testing. I want to code unit tests in Qt, but my functions(login, request etc...) heavily depend on other resources such as a server. How can I supply a block box in this situation? Do you know any open source project which I can examine unit test classes for similar situations? There's a linker trick that you can use. You know which methods and classes your code uses. Get a header files and declarations of those classes and make a small implementation of each that returns values you would like. Then compile those and link in right order. This will then use your own

Hadoop maven dependency error - hadoop classes are not found

让人想犯罪 __ 提交于 2019-12-08 08:47:06
问题 Despite I import following dependencies into my pom, related Hadoop classes (org.apache.hadoop.*) are not imported. <properties> <hadoop.version>1.0.4</hadoop.version> </properties> <!-- Apache Hadoop Core --> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>${hadoop.version}</version> </dependency> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-core</artifactId> <version>${hadoop.version}</version> </dependency>

Unit Testing in Qt with Highly Dependent Functions

牧云@^-^@ 提交于 2019-12-08 08:43:12
问题 I'm new to unit testing. I want to code unit tests in Qt, but my functions(login, request etc...) heavily depend on other resources such as a server. How can I supply a block box in this situation? Do you know any open source project which I can examine unit test classes for similar situations? 回答1: There's a linker trick that you can use. You know which methods and classes your code uses. Get a header files and declarations of those classes and make a small implementation of each that

How to stick a submodule to a fix a tag?

别说谁变了你拦得住时间么 提交于 2019-12-08 08:36:40
问题 Assume we have two modules super and minor . Module super depends on version v1.0.3 of module minor , whereas v1.0.3 is an annotated tag on minor : v1.0.3 super <-------- minor Module minor is kind of "private", i.e. only a very small group of developers has write access and others only have read access. Module super is public. Now I would like to model the dependency of module super to module minor utilizing Git submodules. Unfortunately I can't figure out how to fix the dependency to v1.0.3

How do I pass cxxflags to Boost libraries from within my jamfile?

穿精又带淫゛_ 提交于 2019-12-08 08:35:23
I have a project with some requirements, one of which is to set the c++11 compiler/linker flags: jamroot.jam: project : requirements <toolset>clang:<cxxflags>"-stdlib=libc++ -std=c++11" <toolset>clang:<linkflags>"-lc++" # ... etc ; lib mylibrary : #sources [ glob source/*.cpp ] /boost/filesystem /boost/system /boost/thread//boost_thread ; The library-specific sources are being compiled with the necessary c++11 flags, however the Boost libraries mentioned do not . This is causing no end of binary incompatibilities and linker errors. I do not want to specify the cxxflags explicitly in either the