gabru Posted March 2, 2006 Posted March 2, 2006 (edited) [PLAIN][solved] Referenced Assembly-DLL not up-to-date[/PLAIN] Hi, I have the following setup: Solution 1 Project A Project B Solution 2 Project C Now I have a reference to Project A in the Project C. The problem now is that the version of the build project A is an old one which is referenced in project C. Example: i added a new class in project A. reference the DLL in project C and the new method does not appear. even if I delete all the DLLs and build again. Can anybody help me out. thanks! Edited March 2, 2006 by gabru Quote sometimes I blog... http://michal.grafix.at
Cags Posted March 2, 2006 Posted March 2, 2006 I have personally found with my Visual Studio that it is necessary to not only replace the dll, but to remove and re-add the reference for any additional changes to be spotted. I'm not sure if it's designed to be like that or just a bug, but hopefully removing the reference and re-adding it should solve your problem. Quote Anybody looking for a graduate programmer (Midlands, England)?
Administrators PlausiblyDamp Posted March 2, 2006 Administrators Posted March 2, 2006 Are you referencing the dll output from Project A in Project C? If so are you sure you a referencing the correct file - if you remove the reference and then re-create it does that help? Also have you tried adding Project A to Solution 2 and setting the reference up that way? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
gabru Posted March 2, 2006 Author Posted March 2, 2006 thank you for your quick reply. I have allready tried a lot of thing. i also tried to remove everything including the reference and recompile and then add the reference again. also tried restarting VS, etc.. nothing worked for me. I could try to add the project A in solution 2 but I dont want that this will be the solution. i want to know why this is not working in the other way because it should ;) any further ideas? Quote sometimes I blog... http://michal.grafix.at
Cags Posted March 2, 2006 Posted March 2, 2006 I have no other suggestions, other than to make yourself 100% sure that all copies of the old dll have been deleted. I once had a problem where an old version of the dll was being copied local from an old instance of the project that I had completely forgotten was there. Quote Anybody looking for a graduate programmer (Midlands, England)?
gabru Posted March 2, 2006 Author Posted March 2, 2006 I made sure now that every DLL is gone and its still not working. I have no clue what I am doing wrong thanks for any suggestions. Quote sometimes I blog... http://michal.grafix.at
gabru Posted March 2, 2006 Author Posted March 2, 2006 i even now tried to put the Project A into Solution 2 and reference to the project-DLL. even this is not working. i at the end now :) Quote sometimes I blog... http://michal.grafix.at
Cags Posted March 2, 2006 Posted March 2, 2006 Might be a stupid question but the class you are trying to call is definately public isn't it? Quote Anybody looking for a graduate programmer (Midlands, England)?
gabru Posted March 2, 2006 Author Posted March 2, 2006 oh no!!!! sorry for that guys... thats it. the class had no modifier so it was private. SORRY! problem solved now. i think its better to go home now for me. Quote sometimes I blog... http://michal.grafix.at
Cags Posted March 2, 2006 Posted March 2, 2006 Hehe, its always something simple when your sure its complicated :) Quote Anybody looking for a graduate programmer (Midlands, England)?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.