Giter Site home page Giter Site logo

csmerge's People

Contributors

mend-bolt-for-github[bot] avatar peterstephenson avatar petertiedemann avatar scott-harris avatar stusherwin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

csmerge's Issues

Duplicate project references?

Just did a rebase using CsMerge and there seem to be duplicate references now to dlls brought in by NuGet packages:

Warnings in Visual Studio:
image

Project file:
image

Awesome tool though - happy to manually delete the extra references for now, it's so much better than the merge conflict hell there was before.

Creating Bad XML

Maybe I'm missing something, but I configured everything as described, but still got bad XML in my .csproj file:

<Reference Include="blah, Version=1.5.1.206, Culture=neutral, processorArchitecture=MSIL">
  <HintPath>..\packages\blah.1.5.1-ci-20220804-185157\lib\net40\blah.dll</HintPath>
<Reference Include="blah, Version=1.6.0.214, Culture=neutral, processorArchitecture=MSIL">
  <HintPath>..\packages\blah.1.6.0-ci-20230302-173758\lib\netstandard2.0\blah.dll</HintPath>
</Reference>

I actually made sure things were configured at the global, system, and local project level just to be sure.

I ran the git merge, then CsMerge on the root of the project, and then CsUpdate to see if that would fix it also. I tried several times and kept rolling back the merge to see if changing settings would help.

When running CsUpdate after CsMerge, I do noticed this:

blah.csproj(126,5): error MSB4025: The project file could not be loaded. The 'Reference' start tag on line 46 position 6 does not match the end tag of 'ItemGroup'. Line 126, position 5.

Is there a way to verify the mergefail driver is actually being used? There are no conflicts, but it's still trying to include both.

Failed to use the standard mergetool

Would you like to resolve the conflict with the mergetool?
y
An error occurred:
System.NullReferenceException: Object reference not set to an instance of an object.
at Integration.GitHelper.GetMergeCmdLine(Repository repository) in C:\projects\csmerge\NuGetHelpers\GitHelper.cs:line 19
at Integration.GitHelper.RunStandardMergetool(Repository repository, String base, String local, String incoming, String resolved) in C:\projects\csmerge\NuGetHelpers\GitHelper.cs:line 25
at Integration.GitHelper.ResolveWithStandardMergetool(Repository repository, String fullConflictPath, XDocument baseContent, XDocument localContent, XDocument incomingContent, Logger logger, String conflict) in C:\projects\csmerge\NuGetHelpers\GitHelper.cs:line 133
at CsMerge.CsMerge.ProcessProjectFiles(CurrentOperation operation, String[] conflictPaths, DirectoryInfo folder, Logger logger, String rootFolder) in C:\projects\csmerge\CsMerge\CsMerge.cs:line 365
at CsMerge.CsMerge.ProcessMerge(Logger logger, DirectoryInfo folder, String rootFolder) in C:\projects\csmerge\CsMerge\CsMerge.cs:line 103
at CsMerge.CsMerge.Main(String[] args) in C:\projects\csmerge\CsMerge\CsMerge.cs:line 55

Allow NuGet downgrade

Possibly csmerge should only auto resolve to the latest version if the package is edited in both parent and child AND both increased the version in case somebody intentionally downgrades a package?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.