dll - C# class library changes not being shown when referenced in another project -
i have class library has few methods , works fine when reference in project.
now wanted add overload 1 of methods, when made change , re-referenced in other project, not show overloaded method , gives standard " method has 1 param invoked 2".
i have tried add optional parameter method instead of overload , same problem occurs.
if change logic in method, these changes there when re-reference library.
does have insight on why may happening??
sample code
public class optumhealth { public createjobmodelresponse createoptumhealthjob(optumhealthhelper helper) { return createoptumhealthjob(helper, false); } public createjobmodelresponse createoptumhealthjob(optumhealthhelper helper, bool isupdate) { var response = new createjobmodelresponse(); //stuff return response; } } i can call first method, , calls second method correctly. cannot call second method directly though.
ctrl+shift+b rebuild projects in solution. works me.
you can use configuration manager. check "build" library , rebuild automatically each time compile.
Comments
Post a Comment