-
Notifications
You must be signed in to change notification settings - Fork 255
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
GetRestoreDotnetCliToolsTask fails when missing version metadata #5716
Comments
@natemcmaster Thanks, taking a look now. |
Double checked in VS, the behavior there is correct. |
This is a regression from 4.3. |
@natemcmaster is it common to have tool references without giving a version? I would say the ideal behavior here is that msbuild would fail with an error giving the line number and helpful error about the project file being incorrect due to a missing version. This would stop MSBuild before the dg file is written. I can see how it would be useful to make a best effort attempt at writing out the dg file also so I would like to understand how you are using it here. |
Our scenario is this: we are removing floating versions from all PackageRef and using a tool to generate an intermediate file containing |
@natemcmaster This is fixed now. |
Awesome, thanks! |
When a PackageReference is missing "Version", it fails gracefully with something like
When DotNetCliToolReference is missing "Version", it fails completely with an ArgumentNullException. This breaks our ability to use the
/t:GenerateRestoreGraphFile
target to example a repo's restore graph for issues.Repro
dotnet restore
Result
Details
NuGet product used: dotnet.exe
dotnet.exe --version: 2.0.0-preview3-006915
The text was updated successfully, but these errors were encountered: