Visual Studio 2019 cannot open designer for some projects whether 2017 can

  • Thread starter Thread starter VitelliD
  • Start date Start date
V

VitelliD

Guest
Hello everyone !


Everything is in the title,

I've installed VS 2019 (community) and it fails to open the designer for some Forms (winform).
This is the error it shows :

The designer could not be shown for this file because none of the classes within it can be designed.


Instances of this error (1)

1. Hide Call Stack

at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.EnsureDocument(IDesignerSerializationManager manager)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload)








I've made some investigations and it seems that all files of the project are open as "miscallaneous files".


The same project opened in VS 2017 is working fine.

This is what I get from "Project System Tools" plugin, when opening the designer for one form :

(Start [506]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync]
(End [506]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync] cancellation:False, delta:0, []
(Start [507]) [WorkCoordinator_ProcessProjectAsync]
(End [507]) [WorkCoordinator_ProcessProjectAsync] cancellation:False, delta:0, [(ProjectId, #01335722-a457-421f-bb44-bbdb83ad6ba4 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (HighPriority|DocumentClosed|SyntaxChanged|SemanticChanged|DocumentRemoved), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Log) [WorkCoordinator_AsyncWorkItemQueue_LastItem] [N/A]
(Log) [WorkCoordinator_AsyncWorkItemQueue_FirstItem] [N/A]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621328, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:False]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621328, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:False]
(Log) [WorkCoordinator_SemanticChange_Enqueue] [Tick:145621328, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), hint:False]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), Replaced:True]
(Log) [WorkCoordinator_AsyncWorkItemQueue_FirstItem] [N/A]
(Log) [WorkCoordinator_ActiveFileEnqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:False]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:False]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:False]
(Log) [WorkCoordinator_SemanticChange_Enqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), hint:False]
(Log) [WorkCoordinator_ActiveFileEnqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145621359, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145621359, (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [[145621500] (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb)]
(Log) [WorkCoordinator_Project_Enqueue] [[145621500] (ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb)]
(Start [514]) [WorkCoordinator_ProcessDocumentAsync]
(End [514]) [WorkCoordinator_ProcessDocumentAsync] cancellation:False, delta:0, [(DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (DocumentAdded|SyntaxChanged|SemanticChanged), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Log) [WorkCoordinator_DocumentWorker_Enqueue] [Tick:145622000, (DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Log) [WorkCoordinator_Project_Enqueue] [Tick:145622000, (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Replaced:True]
(Start [515]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync]
(End [515]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync] cancellation:False, delta:0, []
(Start [516]) [WorkCoordinator_ProcessDocumentAsync]
(Log) [Diagnostics_SyntaxDiagnostic] [(DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), Microsoft.CodeAnalysis.Diagnostics.VisualBasic.VisualBasicCompilerDiagnosticAnalyzer, 497444]
(End [516]) [WorkCoordinator_ProcessDocumentAsync] cancellation:False, delta:78, [(DocumentId, #24cddad3-ae47-44ad-a332-4efbdb6515e7 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (DocumentOpened|HighPriority|DocumentAdded|SyntaxChanged|SemanticChanged), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Start [520]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync]
(End [520]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync] cancellation:False, delta:0, []
(Start [521]) [WorkCoordinator_ProcessDocumentAsync]
(End [521]) [WorkCoordinator_ProcessDocumentAsync] cancellation:False, delta:0, [(DocumentId, #b8b33621-05f3-417d-9c72-00562503f1b8 - C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (DocumentOpened|HighPriority|DocumentClosed|DocumentAdded|SyntaxChanged|SemanticChanged|DocumentRemoved), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Start [522]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync]
(End [522]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync] cancellation:False, delta:0, []
(Start [523]) [WorkCoordinator_ProcessProjectAsync]
(End [523]) [WorkCoordinator_ProcessProjectAsync] cancellation:False, delta:0, [(ProjectId, #f531712a-ff2b-4170-b386-65186c0e9ba2 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.vb), (DocumentOpened|HighPriority|DocumentAdded|SyntaxChanged|SemanticChanged), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Start [524]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync]
(End [524]) [WorkCoordinator_WaitForHigherPriorityOperationsAsync] cancellation:False, delta:0, []
(Start [525]) [WorkCoordinator_ProcessProjectAsync]
(End [525]) [WorkCoordinator_ProcessProjectAsync] cancellation:False, delta:0, [(ProjectId, #2b2b54ae-ec74-46db-a896-e5dbf7e77be0 - Miscellaneous Files Project for C:\Ramasoft.NET\UI\Screens\Projects\ProjectsEditForm.Designer.vb), (DocumentOpened|HighPriority|DocumentClosed|DocumentAdded|SyntaxChanged|SemanticChanged|DocumentRemoved), LowPriority:False, ActiveMember:False, Retry:False, ()]
(Log) [WorkCoordinator_AsyncWorkItemQueue_LastItem] [N/A]

Can you help me ?

I could not manage to create a sample to reproduce the issue... the projects that fails have numerous referenced projects.

Thank you.

PS :

Also, I forgot to mention that I already tried several operations : clean .vs/bin/obj folders, rebuild everything, remove/re-add the files.

Continue reading...
 
Back
Top