Hello :) I'm fairly new to C# / .NET and i have some questions regarding project dependency.
First: my situation. I have a Solution - let's call it MyLibrary - which have several .dll-Output Projects. This projects are dependant from each other (as project references) and also from some external libraries (.dll-References). I ensured that the project references a specific copy of the external references.
Now I have a second solution - MyApplication - which has some of the above Library-Projects and additional projects. So all of my own projects reference to each other iva project reference. I have set up all projects with the reference setting "Copy Local: True".
My Problem now is, that MyApplication throws an error saying that one of the library-projects has a different version - which is strange since if I build MyApplication it should build all required projects.
My questions now:
- If I have Project C which depends on Project B which again depends on Project A, I need to reference Project A in Project C even if Project C don't use any types from Project A. Is there a workaround for this?
- Can I get a clean output log where it states which project is build when? From the Visual Studio Output-Log I have troubles to differ wether the project is "rebuild" or just has copied to destination folder
- Are there Tools, which read out the *.sln or *.csproj files and shows me directly which assemblie references which assembly?
- As I said, I have included in MyApplication several projects from MyLibrary and set the references of the MainProject in MyApplication to "Copy Local: True". If I clean up MyApplication (the solution) it deletes all *.dll from the MyLibrary-Destination-Folder. Can I surpress this behavior somehow (it should only delete the *.dll's from the MyApplication-destination-folder).
Thanks four your help.
P.S.: I'm from Germany and I have the "Galileo"-Book about C# which covers this topic not very good. Are there some good tutorials / books which are directly about the Project Management Functionality of Visual Studio ?