Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Out parameters for service refeerence reversed in VS 2012 after upgrade

$
0
0

Hi,

We have a large MVC project that consumes WCF services for it's data layer. The project was built using Visual Studio 2010 and as is widely known when Visual Studio 2010 creates the WCF Service references any out parameters are listed first, no matter where they are truly positioned.

Unfortunately, after upgrading the project to Visual Studio 2012 the references need to be regenerated and when they do we now notice that all of our out parameters are at the end, or our natural place.

This has caused us to be unable to upgrade our project since there are hundreds of calls to proxy objects and the order of the parameters are now different after the upgrade which stops us from building.

Is there any way to enforce the out parameters first rule from Visual Studio 2010 in Visual Studio 2012? Any other solution that would allow us to upgrade without having to recode each call would be appreciated.

An example to illustrate what I mean is:

WCF Service:

Public string getValue(string name, out string error)

VS 2010 proxy call

getValue(out error, name)

VS 2012 proxy call

getValue(name, out error)

Thanks


Viewing all articles
Browse latest Browse all 21115

Trending Articles