GithubHelp home page GithubHelp logo

Comments (5)

AArnott avatar AArnott commented on August 22, 2024

This looks like a dupe of #48. But that has long since been fixed for 1.4.19 -- or at least so I thought.
The problem as I understand it tends to manifest when you are using MSBuild to build multiple projects that use distinct versions of Nerdbank.GitVersioning, but a reused MSBuild.exe process across the two builds would use the wrong version of the MSBuild task that had been loaded for another project on the next project, causing errors like this.

"msbuild /nr:false" is a quick fix for this, because it ensures that msbuild.exe nodes are not reused. But I'd like to fix this completely so it's not necessary if I can.

Can you confirm any or all of the following next time it repros:

  1. you have been building multiple projects (even across repos) that use different versions of NB.GV
  2. at least one of the loaded msbuild.exe processes have some version of NB.GV assemblies loaded that is not 1.4.19.

from nerdbank.gitversioning.

AArnott avatar AArnott commented on August 22, 2024

I just saw this on my own machine while updating NB.GV from 1.4.6 to 1.4.19. It seems MSBuild won't load multiple versions of the task assembly into a process even if they have unique assembly versions. :(

from nerdbank.gitversioning.

AArnott avatar AArnott commented on August 22, 2024

I saw two msbuild.exe processes: one had 1.4.6 loaded and the other had 1.4.19 loaded. Then I'm guessing they each took turns building mismatching projects in the PInvoke solution.

Believed repro steps:

# using nuget 3.3.0
git clone https://github.com/AArnott/pinvoke.git
cd pinvoke\src
git checkout 1ff09f040daa1c81958bca8e642cdfa134dd3be4~1
nuget restore 
git checkout 1ff09f040daa1c81958bca8e642cdfa134dd3be4
nuget restore 
msbuild 

from nerdbank.gitversioning.

mlr-msft avatar mlr-msft commented on August 22, 2024

Thanks for the prompt response.

We've confirmed that we had a project using an older version of Nerdbank.GitVersioning (v 1.3.13) that I was unaware of when I performed the integration work. Eliminating the older version has indeed alleviated the problem in VSO. 😄

from nerdbank.gitversioning.

AArnott avatar AArnott commented on August 22, 2024

Thanks. I'm glad it's alleviated the problem.
I'm going to keep the issue open at least until I find out if there's anything I can do to make it more resilient to such divergent versions.

from nerdbank.gitversioning.

Related Issues (20)

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.