visual studio - Resource.Designer.cs under git -


i work in environment people use 2 different ides (visual studio , xamarin studio) work on same code. unfortunately, generate different versions of file resource.designer.cs. auto-generated file need in vc, or project complain when try build after cloning.

the problem here need file in vc, tiny changes highly annoying. if commit project 1 ide, downloads project other , rebuilds, see change file. if try switch branches, git may refuse because of merge conflict. similarly, if try merge 2 branches, pretty guaranteed see merge conflict in header of file.

the same problem occurs if 2 people build using same ide, different versions of runtime. looking @ example right following change showing in git:

-  // runtime version: 4.0.30319.18444 +  // runtime version: 4.0.30319.34011 

one fix solve problem is, for file only, have git choose "local" version of comments, , ignore changes comments. don't know if there way that. if not, there way avoid having constant hassles small changes file?

there several ways address issue in git. see: https://gist.github.com/canton7/1423106. link deals config files can apply situation needed.

i think simplest way solve commit file resource.designer.cs.in, , after cloning manually copy resource.designer.cs. add resource.designer.cs .gitignore file.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -