Rename the .datasource file to the WCF service link

Background:
I have a C # client-side application using a service resource. When I install it, I call the client side api for the service resource. (For example: CoreLibraryUserAuthentication)

Visual Studio then sends the files for the service link. One of them is a .datasource file. It ends with:

MyProjectThatIs26CharsLong.CoreLibraryUserAuthentication.32CharServiceNmeThatIAmConsuming.datasource

This combined with a rather long path (159 Chars) results in a really long file name and path (261 characters). This exceeded what TFS will allow. (The question is really more complicated, that it is connected with the history and migration of the project, but getting into it is more detailed than necessary.)

What I need:
A way to rename this data file to something more reasonable. Is there any way to do this?

+6
source share
1 answer

Do you really need this file ? Direct binding to the user interface is not very suitable for WCF, which provides a raw DTO. Add this file to the ignore list in your version control or simply delete it.

Sometimes a problem does not need to be addressed at all.

+1
source

Source: https://habr.com/ru/post/887382/


All Articles