Kaynak denetimi için GIT kullanan bir .NET C# projesinde, en son işlenen kodu almak için yeniden biçimlendirmeden sonra hatalı biçimlendirilmiş csproj dosyaları alıyorum. Bu benim bir süreçtir:Neden .csproj dosyaları git rebase'den sonra dağılıyor?
- taahhüt kodum
- inşa ve çalıştırma testleri
- Rebase "son olsun" için csproj dosyası mahvoldu olarak
- TEKRAR ... gökleri küfür
D:\GitHub\AwesomeProject>git rebase master
First, rewinding head to replay your work on top of it...
Applying: added getstatus call
Using index info to reconstruct a base tree...
M Host/Host.csproj
M Host/packages.config
M Trees/Trees.csproj
M Trees/packages.config
M UnitTests/UnitTests.csproj
<stdin>:1229: trailing whitespace.
<!-- To modify your build process, add your task inside one of the targets bel
ow and uncomment it.
warning: 1 line adds whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging UnitTests/UnitTests.csproj
Auto-merging Trees/packages.config
CONFLICT (content): Merge conflict in Trees/packages.config
Auto-merging Trees/Trees.csproj
Auto-merging Host/packages.config
CONFLICT (content): Merge conflict in Host/packages.config
Auto-merging Host/Host.csproj
Failed to merge in the changes.
Patch failed at 0001 added getstatus call
When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To check out the original branch and stop rebasing run "git rebase --abort".
: Burada
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
... most of one version the project file
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
... most of the other version the project file
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
</Project>
Bu neden oluyor? Bununla başa çıkmak için sürecimi nasıl geliştirebilirim?
Bunu yaptığımdan beri herhangi bir sorun yaşamadım. Teşekkürler! –
Bir yıldan uzun bir süredir bunu okuyanlar için, bu makaleyi bir Github geliştiricisinden kontrol etmeniz gerekir: http://haacked.com/archive/2014/04/16/csproj-merge-conflicts/ –