Project '<projectname>' cannot generate a reference to file '<filename>'
Project '<projectname
>' cannot generate a reference to file '<filename
>'. You may need to delete and re-add this reference, then do a full rebuild of the solution.
An error occurred when creating a reference to a file.
Error ID: BC31514
To correct this error
Remove the reference by right-clicking the item from Project References in the Solution Explorer and clicking Remove.
Restore the reference by right clicking References in the Solution Explorer and then clicking Add Reference.
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.