-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Error on saving project: Attribute "Version" is not known on node "PackageReference" #15386
Comments
CC @neikeq |
Is this still reproducible in the current master branch or latest beta build? |
Yes, it is still a valid issue. It's ok to move it to 3.2 as it will take some more time to fix. We need to use the official Microsoft.Build, which we need to build from source as the nuget packages are Windows-only. As far as I remember, a workaround was to specify the Version as a child element instead of an attribute: <PackageReference Include="NETStandard.Library">
<Version>2.0.1</Version>
</PackageReference> |
Maybe this workaround should be somehow hinted there somewhere? |
I also just ran into this same issue on Windows except the project wouldn't even run. Specifying the version in the child element worked. |
To anyone with this problem, beware: do not use download nuget.exe and do I stumbled across this while trying to get Tuples working: #34803 (comment) |
Using the version workaround for me breaks the project. The project now gives:
|
Godot version:
master
/ 8e82404OS/device including version:
Manjaro Linux 17.1-rc2
Issue description:
Whenever I save the project from the editor, it logs a following error message:
modules/mono/editor/csharp_project.cpp:117 - Method/Function Failed.
If I launch the editor from a terminal, I can see more detailed information of the problem as below:
It seems that it somehow doesn't recognize the
Version
attribute inPackageReference
node in my project file. The offending line reads as follows:Aside from the error messages, the project seems to build and run without any noticeable problem.
The text was updated successfully, but these errors were encountered: