VS2005 and WCF - R# doesn't detect changes after a Service Update

In a winforms project with a reference to a WCF service R# doesn't detect changes made when the service is updated.
For instance, say we have a function that takes no parameters in the WCF service and we later decide to add a prameter to that function. So we make the changes in the service and then in Visual Studio we do the Service Update. Visual Studio without R# recognizes the changes and it shows up in the intellisense. But with R# the intellisense does not know about the change. Thus the RED indicaticator show errors even though it compiles fine.
The only way to correct the problem is to close the project and reload so that R# will parse the files.
This is not a show stopper since it does compile and run but it does confuse the programmer and everyone knows we are confused enough now.
Larry

8 comments
Comment actions Permalink

Hello Larry,

could you please tell us what SDKs we need to install in order to repeat
the problem with WCF project? Thanks.


Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


In a winforms project with a reference to a WCF service R# doesn't
detect changes made when the service is updated.

For instance, say we have a function that takes no parameters in the
WCF service and we later decide to add a prameter to that function. So
we make the changes in the service and then in Visual Studio we do the
Service Update. Visual Studio without R# recognizes the changes and it
shows up in the intellisense. But with R# the intellisense does not
know about the change. Thus the RED indicaticator show errors even
though it compiles fine.

The only way to correct the problem is to close the project and reload
so that R# will parse the files.

This is not a show stopper since it does compile and run but it does
confuse the programmer and everyone knows we are confused enough now.

Larry



0
Comment actions Permalink

My setup is very straight forward. I setup a clean machine with Vista RTM. I installed Visual Studio 2005 and followed that with the Windows SDK 6.0 version. Then I ran the two RTM releases from Microsoft for WCF/WPF and WWF.

I then loaded the only two third-party controls for Visual Studio that we use in our projects, Infragistics NetAdvantage Vol. 6.3 and TxTextControl V12 sp3.

Finally I loaded ReSharper 2.0.2.

In an existing winform project which happened to be a test project with no controls other than a button and label, I was testing a WCF project to make sure it was working properly against our database system. This project is a "client" that accesses the WCF services. In Visual Studio 2005, when you make a change to the WCF service code you must "Update Service References" in the client project. When you do this then Intellisense knows about the changes as does the compiler.

With R# installed the Update Service References does actually work as it is supposed to work. But with R# the changes are not recognized so R# then marks them as errors. Visual Studio alone does find the changes and resolves the symbols and hence does not mark the changes as errors.

Even though R# shows errors it does compile properly and execute. That is why I say it is confusing to the programmer, which marked code is an error and which is not.

I hope that helps.
Larry

0
Comment actions Permalink

Larry,

ReSharper 2.0.2 will definitely have problems with WCF support, which are
not to be fixed in any reasonable future, but ReSharper 2.5 will. We've
found a problem with WCF service update and will fix it shortly, but in 2.5
only.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Does that mean that I must buy a new version to get the bug fixed?

0
Comment actions Permalink

Larry,

Does that mean that I must buy a new version to get the bug fixed?

Upgrade to version 2.5 is free.

Getting back to the update problem, now ReSharper detects this change only
when focus goes out of Visual Studio window and returns back (i.e. when
switching to another app and back). We'll try fix the behavior.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Tell me more, does that mean if I have another app open and I set focus on that app that R# will then detect the change when I put focus back on VS?

Larry

0
Comment actions Permalink

Larry,

Tell me more, does that mean if I have another app open and I set focus on
that app that R# will then detect the change when I put focus back on VS?


Exactly.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

I can do that until you get a hotfix.

Larry

0

Please sign in to leave a comment.