VS2022 Database Project Reference Keep Breaking

Viewed 16

Vs2022, I have a database project. Within that project are some views and functions which refer to a system database. So I have added those system database references, both Master and MSDB to the project. The references work, all is good.

I close the solution and reopen it, and now the project shows two references to each database, and a bunch of script errors because an unresolved reference exists:

enter image description here

So the fix is again to remove these 4 references, add the database reference back to master and msdb, and then all is good, until I reopen the solution again!

enter image description here

One side note, this solution was originally created in VS2019. Also, this happens on 2 separate machines. I'm running VS 17.3.3 64-bit.

0 Answers
Related