I am working in Visual Studio Add-in which reads and alter configuration properties in a Visual studio Database project. The implemented solution in VS2010 working fine. The VS2010 version is using the library Microsoft.VisualStudio.Data.Schema.Package.dll. I need to migrate the same app into the VS2012. But in VS2012 we are using Data tools to deal with the Database project and the library that I am using is Microsoft.VisualStudio.Data.Tools.Package.dll.
The VS2010 version is using IDatabaseProjectNode and IDatabaseProjectConfiguration to read config files. But these interfaces are no longer available in the Microsoft.VisualStudio.Data.Tools.Package.dll. Following are set of codes that using in the VS2010 version.
Dim oPprojectNode As IDatabaseProjectNode = CType(project.Object, IDatabaseProjectNode) ' project is a DTE object
Dim oCurrentConfig As IDatabaseProjectConfiguration = CType(oPprojectNode.ConfigurationProvider.GetProjectConfiguration(msCurrentConfig), IDatabaseProjectConfiguration)
Dim msDeploymentConfigFile As string = oCurrentConfig.GetConfigurationProperty("DeploymentConfigFile", False, DatabaseProjectPropertyValueType.EvaluatedValue)
All these lines are failing when working with Data tools and VS2012. What are the alternative interfaces we do have in Microsoft.VisualStudio.Data.Tools.Package.dll in order to get the same functionality as in IDatabaseProjectNode and IDatabaseProjectConfiguration?