visual-studio


dotnet core 1.1 multiple project dependencies


I am in the middle of setting up my first dotnet core solution in the new Visual studio for Mac that was just released.
I am trying to achieve the following project structure:
Solution
- Webapi
- Business layer
- Business layer tests
- Data access layer
- Data access layer tests
For starters, i have added the Dapper package to my data project so i can query my database.
My data access layer tests has a reference to the data access layer project so i can create integration test for it.
After creating my first test and running the test project, the tests fail because it can't find the Dapper dependency. Which is installed in the data project, but not in my data test project.
When i also install dapper to my test project the tests run without errors.
I think that this can become problematic in the future when i have to install every dependency that is installed in the data layer, also in the test layers. Not to mention keeping all those dependencies up to date with each other.
So instead of
Solution
- Webapi
- Business layer
- Business layer tests
- Data access layer
- References
-- Dapper 1.5.2
- Data access layer tests
- References
-- Data access layer
-- Dapper 1.5.2
I would like to achieve the following:
Solution
- Webapi
- Business layer
- Business layer tests
- Data access layer
- References
-- Dapper 1.5.2
- Data access layer tests
- References
-- Data access layer
And have the dapper package from the data project automatically copied to the test project.
So far i have not been able to get this to work, and cant find anything about it on the microsoft documentation. Is this even possible? If so, how?

Related Links

Where does Visual Studio stores the default browser to use in debug?
SubSonic 3 Visual Studio Add-in
How do I invoke an F# function from the VS2010 immediate window
BuildShadowTask “Could not load file or assembly”
dropdown list wont populate values from database
Add Reference VS 2008 strange issue with paths
Visual Studio 2010 won't allow me to debug web application
Debugging Nunit Tests inside VS2010 Express
How to get the PDB (symbols) from an assembly when built into an MSI
Any way to collapse value/function definitions (F#) in Visual Studio 2008?
How to stop Visual Studio from moving and/or resizing controls when opening a project?
What is the best way to test a mobile website in Visual Studio 2010?
What's the difference between “Stop Debugging” and “Terminate All” in Visual Studio?
Why does Visual Web Developer 2008/2010 no longer debug silverlight apps in Firefox?
Visual Studio 2010 editions - switching from Premium (not a trial) to Ultimate trial and back again
Programming for a 32-bit environment vs programming for a 64-bit environment / Build configurations

Categories

HOME
plesk
clearcase
schema.org
antd
dry
cryptography
tfs2015
drag-and-drop
save
locationmanager
mpu6050
powermock
scala-ide
multi-upload
batch-rename
chronicle-queue
jstree
fstar
hdmi
marquee
bonita
mdns
winsock
commonsware-cwac
plantuml
lxml
gsp
image-optimization
ms-solver-foundation
djcelery
task-parallel-library
imgur
utf
newtons-method
react-intl
bit-shift
realstudio
sonarqube5.2
ilrepack
comm
exc-bad-access
scala-collections
algebra
stateless-session-bean
mechanicalturk
word-2016
hmmlearn
d3v4
email-injection
researchkit
java-2d
e
nsdata
fragmentstatepageradapter
jeditable
textpattern
variable-length-array
largenumber
chicagoboss
ambiguity
karma-coverage
textscan
scala-macros
mojo
operands
nidaqmx
webautomation
accessory
git-reset
senchatouch-2.4
refit
jack
cpu-time
roxy-fileman
strdup
autonumber
lru
rikulo
jbox2d
android-authenticator
jquery-cycle
proc-open
idispatch
onconfigurationchanged
stretch
sfinae
kaazing
jdom
wiktionary
zend-server-ce
data-dump
getopts
jquery-1.4
bass
chunking
aggregator
3-tier
j2mepolish
facebook-fbml
rawcontacts
tacit-programming
stretchblt

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App