Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename a .datasource file in a WCF service reference

Background:
I have a C# client side app consuming a service resource. When I set it up I name the client side api for the service resource. (For example: CoreLibraryUserAuthentication)

Then Visual Studio goes to make the files for the service reference. One of them is the .datasource file. It ends up being:

MyProjectThatIs26CharsLong.CoreLibraryUserAuthentication.32CharServiceNmeThatIAmConsuming.datasource

That, combined with a fairly long path (159 Chars) leads to a really long file name and path (261 chars). This is over the limit of what TFS will allow. (The issue is really more complex that this, having to do with history and migration of the project, but going into that is more detail than is needed.)

What I need:
A way to rename that datasource file to something more reasonable. Is there a way to do that?

like image 236
Vaccano Avatar asked May 05 '11 15:05

Vaccano


1 Answers

Do you really need that file? Direct binding to UI is not great for WCF wich provides raw DTO. Add that file in ignore list in you version control or just delete it.

Sometimes a problem doesn't have to be solved at all.

like image 100
Sergio Rykov Avatar answered Sep 20 '22 19:09

Sergio Rykov