How can we help you today? How can we help you today?
davejhahn
I added debug logging and it says "Cannot save <view file> because it is not open in the editor".  Not sure what that means, I did try leaving it open in VS, but the same error.  Details below, with sensitive information X'd out: 025188|2018-11-27 19:45:04.853|ERROR|RedGate.Versioning.Client.VsShell.VisualStudio.ShellIntegration.VisualStudioFileEditor|1|Could not save project file requested: C:\Git\database\XXX\Programmable Objects\dbo\Views\XXXXXXXXXX.sql System.InvalidOperationException: Cannot save 'C:\Git\database\XXX\Programmable Objects\dbo\Views\XXXXXXXX.sql' because it is not open in the editor.    at Microsoft.VisualStudio.Data.Tools.Package.Project.Internal.HierarchyNode.SaveItem(VSSAVEFLAGS saveFlag, String silentSaveAsName, UInt32 itemid, IntPtr docData, Int32& cancelled)    at Microsoft.VisualStudio.Data.Tools.Package.Internal.OAFileItem.<>c__DisplayClass13_0.<DoSave>b__0()    at Microsoft.VisualStudio.Data.Tools.Package.UI.DataPackage.<>c__DisplayClass114_0.<DoOnUIThread>b__0()    at Microsoft.VisualStudio.Shell.ThreadHelper.Invoke(Action action)    at Microsoft.VisualStudio.Data.Tools.Package.UI.DataPackage.DoOnUIThread(Func`1 callback)    at Microsoft.VisualStudio.Data.Tools.Package.Internal.OAFileItem.DoSave(Boolean isCalledFromSaveAs, String fileName)    at Microsoft.VisualStudio.Data.Tools.Package.Internal.OAFileItem.Save(String fileName)    at RedGate.Versioning.Client.VsShell.VisualStudio.ShellIntegration.VisualStudioFileEditor.Save(FileInfo file) And for all of the programmable objects that should not be deployed, there is no indication to me why, every object just has a line such as (again sensitive information X'd out): 025188|2018-11-27 19:45:08.100|DEBUG|RedGate.Versioning.Engine.Interaction.ProjectManipulation.MigrationLoad.MigrationLoader|71|Loading DeployChanges migration: Programmable Objects\dbo\Views\XXXXXXX.sql So I seem to have two problems, both seem like bugs to me, unless I'm doing something wrong. Thanks, Dave / comments
I added debug logging and it says "Cannot save <view file> because it is not open in the editor".  Not sure what that means, I did try leaving it open in VS, but the same error.  Details below, wit...
0 votes
For what it's worth, if you right mouse click on the DB project in solution explorer, it does NOT do this, but if you use the route Project->DatabaseXYZ Properties it does. Seems like it might be a bug?  / comments
For what it's worth, if you right mouse click on the DB project in solution explorer, it does NOT do this, but if you use the route Project->DatabaseXYZ Properties it does.Seems like it might be a ...
0 votes
I also ran into this error.  Closing VS and creating a new project again with the same settings resulted in it working, so not sure what was causing it.  VS and this extension seems to utilize resources more than expected... / comments
I also ran into this error.  Closing VS and creating a new project again with the same settings resulted in it working, so not sure what was causing it.  VS and this extension seems to utilize reso...
0 votes