We have a Visual Studio DB-project that has DB-objects that reference to the 'master'- or 'msdb'-database.
Now there are two cases:
(1) With having NO references to the system databases 'master' and 'msdn' in the project settings, it is possible to build the project but there are a lot of warnings because the references to 'master' or 'msdb' could not be resolved. Deployment of the DACPAC is no problem.
(2) With having references to the system databases 'master' and 'msdn' in the project settings, it is possible to build the project without any warning but deployment is only possible when also 'master.dacpac' and 'msdn.dacpac' are delivered with our projects DACPAC.
So both cases work, but in the first case we have a lot of warnings during development. In the second case 'master.dacpac' and 'msdn.dacpac' have to be delivered to the customer and I don't know if they are also updated during deployment.
So is there a way to solve this disadvantages of both cases?
The target platform for the DB-project is set to SQL Server 2012. We want to use the DACPAC file for updating SQL Server 2012 and SQL Server 2014.