Comments (5)
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:
- you have been building multiple projects (even across repos) that use different versions of NB.GV
- 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.
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.
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.
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.
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)
- How to treat one lib in multi-lib repo differently (always marked as preview)? HOT 5
- Incrementing a local build? HOT 1
- <AssemblyFileVersion> property is empty HOT 2
- Add current branch to ThisAssembly HOT 1
- WPF generates Assembly Version Info twice HOT 6
- [Question] How can I publish nightly version e.g. 4.8.0-nightly.{height}.{ciJobNumber}? HOT 2
- [Question] Using height only in branches that don't match publicReleaseRefSpec criteria HOT 1
- Simulate the future version HOT 3
- Consider inverting `Language` property special-casing HOT 2
- Compile errors in an F# project when setting NBGV_EmitThisAssemblyClass to false HOT 6
- Versioning flow HOT 7
- Is there a way to configure to not create AssemblyFileVersionAttribute HOT 4
- Error in ManagedGit when dealing with non-packed lightweight tags HOT 5
- PrivateP2PCaching.proj' could not be found HOT 4
- nbgv tool doesn't support Central Package Management HOT 6
- How auto increment the build number on every time the project is built? HOT 1
- Hanging build when activing cloud build in Azure DevOps build pipeline HOT 2
- New feature - Command "prepare-release" with a paremeter for add a prefix to the commit's HOT 6
- I have a problem building the solution HOT 4
- Is there a way to not require version.json HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerdbank.gitversioning.