-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
msbuild /t:Restore and Visual Studio produce different assets files when assembly name != project name #8272
msbuild /t:Restore and Visual Studio produce different assets files when assembly name != project name #8272
Comments
Not as far as I'm aware. Related code for the fix: I'd imagine the references reader is just returning the path. I'm curious whether this is also an issue with SDK based projects. |
@nkolev92 We don't use any SDK Based projects at this time. Beyond that, is there something we can do to assist in debugging? Thank you |
Thanks, I think we have everything. I can repro the bug, and I have verified and it does not repro on SDK based projects, only in the classic csproj projects. |
We appreciate the transparency of a GitHub bug; is there anything that explains what the various tags mean? "NeedsTriageDiscussion" implies that there will be discussion on where this falls in your priority queue but is that discussion had in a public forum or at certain touch points? Thank you |
This specific tag is usually used to mark that the team internally needs to have a discussion about the risks to determine the priority for scheduling some time for a specific dev to fix it. Right now we don't have a community stand-up of the sort, but we're always willing to interact with customers on the issues themselves. We also don't really have a summary of what all our labels mean. |
Likely broken since VS2015 & project.json and since VS 2017 & packageref. As such, good bug to fix, but first complaint, we think. |
@rrelyea Its a particularly subtle bug, I suspect most devs would write it off as happenstance because after the "second build" in Visual Studio it goes away. We only notice it due to the scale of of our product (~1500 C# Files which FORCE us to build via MSBuild THEN open in VS otherwise we OOM Everywhere when trying to build). On rebuilds it disappears but we also have a number of versions (~9 active versions at any given time) which causes the rebuild from scratch to happen much more often than one would think. Our deep dependency tree has hurt us as well. |
@aolszowka |
@erdembayar I wanted to say thank you for submitting a fix for this. I no longer work for the company that most directly affected by this, but this is a great win either way! @madkat I don't think I have Dion on here, but maybe of interest to some of the larger code bases that you guys are familiar with :) |
@aolszowka Thanks for tagging me. I appreciate your effort in getting this tracked down! |
@aolszowka, @madkat Thanks for the update! |
Environment(s)
Issue
See attached project for a small repo of this.
It appears that when you perform an msbuild /restore the project.assets.json that gets generated uses the AssemblyName of the referenced class Library. However if you open up Visual Studio it will perform a restore setting this to the name of the referenced PROJECT file. This change forces a Visual Studio rebuild. It is especially painful depending on the size of the solution.
Repo Project
NuGetProjectAssetsJsonDiffs.zip
The text was updated successfully, but these errors were encountered: