I added some new methods to one Visual Studio assembly (which contains WLUtil.cs). The problem is another existing assembly (ScreenCard.cs) doesn't seem to recognize the new methods added. I tried saving and restarting Visual Studio, but that didn't help.
Is there some command like "recreate datatype declaration files" so one assembly knows about the changes made to the other assembly?
Is there some command like "recreate datatype declaration files" so one assembly knows about the changes made to the other assembly?
Rename
QUOTE:
datatype declaration files
With .Net the assembly itself contains all necessary declarations and the compiler (or for us old-fashioned guys: the linker) uses reflection to find out about all public identifiers.
What you try to do should work without any further action.
Check the following:
* is the method signature exactly the same (name, number and types of arguments etc.)
* is the class and method public
* Has the caller "using <the correct namespace>"?
* In the consuming project you'll need a "Add Project Reference" and mention your Util assembly (This is the linker statement)
From your screenshot I see that WLUtil is a public static class - ok.
ReciprocalFit is a public method - ok
ReciprocalFit should be "public static"
You could also hover the mouse over "ReciprocalFit" and see what the yellow lightbulb is suggesting.
Try Clean Solution, clean project (context menu on solution and project files)
ReciprocalFit is a public method - ok
ReciprocalFit should be "public static"
You could also hover the mouse over "ReciprocalFit" and see what the yellow lightbulb is suggesting.
Try Clean Solution, clean project (context menu on solution and project files)
Your Response
Post
Edit Post
Login is required