I know that database projects is "unmodeled" and only supports minimal features. Does anyone know how to add new folder from an addin ( modifying the .dbp file directly produces a "project has changed on disk" and thats kind of ugly)
/Andreas
I know that database projects is "unmodeled" and only supports minimal features. Does anyone know how to add new folder from an addin ( modifying the .dbp file directly produces a "project has changed on disk" and thats kind of ugly)
/Andreas
Adding a folder to a database project from code?
Archana G
Not all project types have an automation model, including the database project type. Because there is not an automation model on the database project, there is no way to programmatially modify an database project.
Craig
Haitashi
I'v tried that but that only creates a folder with name = "NewFolder" -> and I haven't found a way to rename it :(
/Andreas
Carltegeder
LucaTarrini
Yes that is a solution for adding files
see: http://groups.google.com/group/microsoft.public.vstudio.extensibility/browse_thread/thread/72fb4a3b8706e0a8/93b086a38c406cf5 lnk=st&q=database+project+add+folder+unmodeled&rnum=1#93b086a38c406cf5
But I can't get it to work for folders. Ideas
Another would be to:
1. Create the folder on disk
2. Manipulate the .dbp file
3. Supress the "project has changed on disk" event
4. Reload the database project manually
Do you know how to catch the "project has changed on disk" event
/Andreas
DemonEyesKyo
Saranga Amarasinghe
I've manage to get a "semi ugly" workaround to work:
1. Unload solution (wasn't able to unload the db-project only -> got object not set error)
2. Add folder/folders on disk
3. Reload solution
/Andreas