dependencies

.net core package dependencies

為{幸葍}努か 提交于 2019-12-13 07:12:31
问题 I'm wanting to build a native .NET Core executable that I can deploy but when I publish the project, the compiler exports all the dependencies into the same directory and the executable needs them to run on a system that doesn't have .NET Core runtime installed. Is there a way to compile/package the DLL's in with the project DLL or executable? Thanks. 回答1: For merging dependencies into the compiled assembly, check out Costura for Fody: https://github.com/Fody/Fody https://github.com/Fody

UWP app targeted only to Desktop/Tablet?

谁都会走 提交于 2019-12-13 07:01:40
问题 I'm trying to understand how UWP apps work. I'm looking at some third party libraries on NuGet, but some of them won't work with UWP due, I presume to missing dependencies. For example, some PDF drawers need System.Drawing.dll which I presume may not be accessible on Windows Phone. Given my app doesn't need to work on Phones, and it's arguably not even required for tablets... it's primarily a Desktop app... how can I get around these dependency issues? Is there some way for me to still use

Received a main jar file with other jar files that need to be in the classpath. Whats the best way to include this main jar in my maven project?

为君一笑 提交于 2019-12-13 06:59:09
问题 So i received a java api from a client and the main code is in main.jar. But the instructions he gave me require me to add these other jars (a.jar, b.jar, etc..) into the classpath whenever I want to use main.jar. These other supporting jars are things like Xerces, jakarta-oro, and a few other publicly available libraries. The problem is i don't know what versions they are, so i'm not sure if there would be issues if i just update the pom.xml file in my app to depend on main.jar and also have

Java EE Module Dependencies page in Eclipse missing projects

本秂侑毒 提交于 2019-12-13 06:52:04
问题 We're developing a web application using Tomcat and a number of other libraries, and we're having issues using the "Java EE Module Dependencies" page in Eclipse to assign dependencies to be placed in the lib/ directory of the webapp. (See screenshot) The issue we're having is that while most of our projects show up as available dependencies, a few are missing. We've done our research, and on some machines all of our projects appear properly, but not on others. Is there any rhyme or reason to

How to bind with provider which uses annotation value in Guice?

不问归期 提交于 2019-12-13 06:44:50
问题 Is there any way to bind with provider which interprets target's annotation value in Google Guice? Example: bind(Resource.class) .annotatedWith(MyAnnotation.class) .toProvider(new MyProvider<MyAnnotation, Resource>{ public Resource get(MyAnnotation anno){ return resolveResourceByAnnoValue(anno.value()); } }); I want to initialize field of an Android Activity class by annotated binding. It should have to take multiple resources by it's unique Id. Original Way: public class TestActivity extends

Class C from assembly A1 implements interface from assembly A2. When using C, need to reference both A1 and A2

懵懂的女人 提交于 2019-12-13 06:07:08
问题 This is by design, according to the answers in this SO question But I really don't want to reference both assemblies, it feels like I'm breaking encapsulation (the users of A1 shouldn't know that A1 uses A2 for its implementation...) I thought of moving the interface definition to another assembly, let's call it "Core", and have both A2 and A1's client reference it. This feels cleaner to me. My question is: Is this good design? Or is there a standard .NET solution to this that I'm not aware

Deny access to certain class files in a dependency jar

蓝咒 提交于 2019-12-13 05:32:22
问题 I have to include a jar file because I need certain classes in it in my dynamic web project. My problem is that this jar contains an old version of apache.commons.io . BUT in my dynamic web project I have also included a newer version of apache.commons.io . Now I want to avoid java to use the old version of apache.commons.io in my dynamic web project. Is there any way to tell java not to use classes in a certain folder in my jar? 来源: https://stackoverflow.com/questions/20588367/deny-access-to

Can a project use 2 different versions of the same dll? (Sybase.AdoNet 2 and 4)

偶尔善良 提交于 2019-12-13 05:25:00
问题 I am upgrading some old services. Some dlls it's using are referencing Sybase.AdoNet2.AseClient but new dlls that I am adding reference Sybase.AdoNet4.AseClient. I keep getting errors saying "Major version mismatch sybdrvado20.dll. Expecting major version '2'. Loaded version 1" and vis-versa. Does anyone know how I can resolve this issue? Is it just not possible for a project to reference dlls that expect different versions of a dll? Thanks, 回答1: Reference both assemblies and change the Alias

Where to put @Grab annotation in Grails Service

依然范特西╮ 提交于 2019-12-13 05:03:27
问题 I have the following groovy code ,and i excute it on grails console plugin . it works fine . However, i want to reuse it in grails' service. @Grab( 'net.sourceforge.nekohtml:nekohtml:1.9.18' ) import org.cyberneko.html.parsers.SAXParser def html = '''<p> | I wanted to try to <span id="blk1">match</span> the inner part | of the string<span id="blk2"> between </span> the span tags <span>where</span> |</p>'''.stripMargin() def content = new XmlSlurper( new SAXParser() ).parseText( html ) List

Tk - segfaults when I use widget (button, text)

感情迁移 提交于 2019-12-13 04:51:52
问题 I have compiled Tcl/Tk into my application. When I open my application, I get a window (due to Tk_init) which I can manipulate: > wm title . "mysh" > wm geometry . 300x300 But when I try button or any of the other widgets it segfaults > button .b Segmentation fault I loaded this in gdb and ran a back trace Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 182897358752 (LWP 14112)] 0x0000000100000000 in ?? () (gdb) bt #0 0x0000000100000000 in ?? () #1 0x0000000000fe3004