dependencies

How do you share external dependencies between Visual Studio solutions?

I have a Java background so I’m used to having Maven handle all problem around downloading and keeping dependencies up to date. But in the .NET environment I have not yet found a good way to manage all these external dependencies. The main problem here is that I mass produce solutions and they all tend to depend on the same third party...

Dependencies in makefile

I have a makefile, and a snippet looks like this (files and targets renamed for clarity): target1 : OtherLib.o MyProg.h MyProg.cpp g++ -c ./MyProg.cpp -o $(BUILD_DIR)/MyProg.o When I run 'make target1', I want make to check to see that MyProg.h and MyProg.cpp are up to date and run target1 if not. However, I am getting the error ...

Visual Studio 2008 dependency management and custom source files generating C++ files.

We have custom Domain Specific Language (DSL) files in our Visual Studio solutions. We have a code generator that parses these files, and generates C++ code from them at build time (the code generator is implemented in C++ as well, and built in the same solution, in a project that's built earlier in the build process). We have a custom...

Simple Apache Ant Question: Including library dependencies.

Hey guys, I can't quite figure out how to add all of my .jar dependencies to my client jar. This is what I have so far: <target name="create-metrics-client" depends="clean,build"> <jar destfile="sd-metrics-client.jar" basedir="${build.home}"> <manifest> <attribute name="Main-Class" value="com.mycompany.client.M...

How can I use Maven to get the latest Hibernate release?

I am having trouble getting the latest release of Hibernate via Maven dependency. It appears that the latest I can fetch from a Maven central repository is 3.2.6.GA, and I am interested in using 3.3.2.GA, which is the latest release shown on the hibernate.org site. When I modify my hibernate dependency to this latest version in my proj...

Why won't InstallShield 2009 detect .NET 3.5 SP 1?

On Windows Server 2003 Standard Edition, a customer installed .NET 3.5 SP 1. Whenever we run our installer built with InstallShield 2009, the installer complains that the target machine does not have the .NET 3.5 SP 1 dependency. The customer has uninstalled and reinstalled .NET 3.5 SP 1 a couple of times, rebooting each time, but our in...

VC++: KB971090 and selecting Visual C Runtime DLL dependencies

As you might know, Microsoft recently deployed a security update for Visual Studio: KB971090. Among other things, this updated the Visual C Runtime DLL from version 8.0.50727.762 to 8.0.50727.4053. So after this update, everything I compile that uses the runtime dynamically linked, gets their dependencies updated to the new runtime. O...

Dependencies in the MVVM

I'm just starting to dig into the MVVM pattern for WPF but because I'm not a professional developer, I sometimes feel a little lost. The main problem I have is deciding who should create whom: Let's say I have a database storing dogs and cats. I would then have a DatabaseManager which communicates with the database (Unit of Work!?), a D...

Dependency among log4j appenders

I'm writing a custom log4j appender, and I want to rely on another configured appender as a fallback, in case my (Database) appender fails. How can I guarantee order of construction of the appenders? My appender's activateOptions() method tries to access another appender and fails because it's not constructed/registered yet. ...

What's the simplest and most efficient data structure for building acyclic dependencies?

I'm trying to build a sequence that determines the order to destroy objects. We can assume there are no cycles. If an object A uses an object B during its (A's) construction, then object B should still be available during object A's destruction. Thus the desired order of destruction is A, B. If another object C uses object B during its (...

Maven configuration of dependency (jar)

Hi I have a java application "app" which has a dependency of "dep.jar". "dep.jar" has a configuration file - "conf.properties" which is copied and packaged into dep.jar. The problem is that during running of "app", "conf.properties" cannot be found. how should I specify the path to "conf.properties" (in the code of "dep.jar") so that i...

Packaging External File Dependencies in Flash

I just started learning ActionScript, so maybe this is obvious. I'm loading in .txt files to generate content for my Flash application. However, I can't seem to find a way to package the .txt files with the .swf when I publish my application. I'd like to be able to run the .swf from anywhere without it depending on the files. Is ther...

Rotating OpenGL scene in 2 axes

I have a scene which contains objects located anywhere in space and I'm making a trackball-like interface. I'd like to make it so that I can move 2 separate sliders to rotate it in x and y axes respectively: glRotatef(drawRotateY,0.0,1.0f,0); glRotatef(drawRotateX,1.0f,0.0,0.0); //draw stuff in space However, the above code won't wor...

How to export all the dependant dll automatically

I used C# to write a program in .net framework 3.5. But when i finished that and move it to another computer which .net framework 3.5 is installed , the program can't be start. It miss some dependent dll. But when I move this program to a computer that installed visual studio 2008, it can run perfectly. So what can I do to export...

handling dependencies to a frequently-changing DLL

we have a number of c# projects that all depend on a common DLL (also c#). this DLL changes somewhat frequency as we're in an environment where we need to be able to build and deploy updated code frequently. the problem with this is, if one of these updates requires a change to the common DLL, we end up with several client apps that all ...

Do Extension Methods Hide Dependencies?

All, Wanted to get a few thoughts on this. Lately I am becoming more and more of a subscriber of "purist" DI/IOC principles when designing/developing. Part of this (a big part) involves making sure there is little coupling between my classes, and that their dependencies are resolved via the constructor (there are certainly other ways o...

Qt 4.5 .NET framework dependency

I'm currently developping an application with Qt 4.5 on Windows Vista and Visual Studio 2008 as IDE. The problem is that the program crashes on Windows XP SP2 (works perfectly with XP SP3 and Vista). This can be fixed installing the .NET framework 3.5, but I want to avoid that. Is there a way to prevent that given that I have to use th...

3rd party library depends on different versions of enterprise library assemblies that my application uses

I have a web application that uses the enterprise library for logging. I've recently been asked to use a 3rd party library that also has dependencies on the same enterprise library assemblies I'm using--except it uses different versions. I don't think I can throw the EL assemblies in the GAC (or maybe I can and I just don't know how), ...

Setting a dependency property's default value at design time in a Windows Workflow Foundation Custom Activity

Hi, I'm implementing a Custom Workflow and Activities to be reused in multiple projects and trying to get them to be as easy to use as possible. In this workflow I have a Property whose name is 'UserID' which I'd like to bind to a dependencyproperty in one of my activities. I can currently bind it at design time searching explicitly for ...

Javascript dependency solution with arbitrary ordered includes

Hello, The problem is this, I include a script, it uses another one, but what if that dependency also needs another script to be ready ? Which means loading it is not enough, but I also need to be sure its callback for initialization has been called before executing. The order of script tags in DOM can not be correct if the dependencies...