简体   繁体   中英

one solution depends on another solution dlls

My solution builds another solution in a pre-build step - takes the artifacts to itself as a "deployment folder".

My references are at the dll level assuming the files are there.

The weird thing is that any new code I write in the first solution (for example change method name) is ignored by the the second solution that depends on the first.

I tried many things like clean solution, rebuild, disable the QTagent between tests and everything. seems like he remembers the first snapshot of the class and that's it - won't takle any changes when I try to debug.

What is the best way to work between solution so code can be called in that way?

You should reference the original project (of solution 1) in your solution (2), then in the main project you add a reference to the referenced original project. Visual Studio takes care of the rest.

This looks like:
Example http://imageshack.us/a/img11/7493/57388651.png

If you're using it to run tests, then you can add the test project to the original solution. With the default Visual Studio Unit testing this'd look like:
Example 2 http://imageshack.us/a/img39/3590/25226157.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM