visual studio 2012 - Auto compiling a dependent project without having a dependency on it -
i'm developing asp.net mvc extensive usage of spring.net.
i have lots of services implemented in different assemblies. purpose of using spring , abstract interfaces decouple application implementation of services. example, data access layer implemented nhibernate, solution designed allow change.
so have defined lots of spring objects foreign assemblies e.g.
<object id="repositoryfactory" type="org.zighinetto.myapp.nhibernatebasedrepositoryfactory, org.zighinetto.myapp,nhibernate" />
as know, works org.zighinetto.myapp.nhibernate.dll
example assembly either
- is in gac
- is in
bin
directory
as of today, in order allow quick debugging hitting f5, have set dependency main project projects depends on. know, spring designed allow cut dependency between projects, in case use dependencies tell visual studio compile , deploy dll automatically, otherwise have copy right dlls every time want debug project.
the question straightforward: given want compile, @ least in release mode, dlls without unneeded dependencies, how can make sure visual studio, when hit f5, automatically compile , deploys of spring-required dlls (which can hardcoded me somewhere, e.g. in post-compile script) bin directory?
in org.zighinetto.myapp
example above, want once org.zighinetto.myapp.dll
gets compiled, vs compiles , deploy org.zighinetto.myapp.nhibernate.dll
without having explicit reference .myapp
.nhibernate
the dependency in project file not make resulting assembly in way dependent on these referenced files. can safely have dependencies there during development , compile project.
the resulting output still work when swap out assemblies contain implementation.
Comments
Post a Comment