How to automatically recover partial DB project files?

I am using an enhanced version of Visual Studio 2010 and am using database projects. There is a function to export the database schema as a partial project (which creates the output file *.files), but it is started manually by the developer (you need to right-click on the project and select "Export as partial project"). I would like to automate this process, which means that the output file is created every time I modify the database, I build it OR close the solution.

I tried to create a macro that executes the DTE Project.VSDBExportAsPartialProject command , but sometimes it fails with an exception. a dialog box that I would like to avoid. Maybe the idea is to add it to the post-build event, but I don't know how to execute DTE commands from there.

To summarize, all I need to do is automatically update the output file *.fileslocated on a fixed path without any user interaction.

Is it possible?

+3
source share

Source: https://habr.com/ru/post/1790892/


All Articles