none
Error while trying to build the solution of windows forms RRS feed

  • Question

  • Hi, I'm a beginner user of C# on Visual Studio 2019,

    My question is about solve a problem related a feature on my project that does not support code parsing or generation because it is not contained within a project that supports code 

    My explination process: I've copied a project in another directory, after this copy paste process, I've tried to open a project in the initial directory but unexpectedly appears this kind of message:

    The file ''D:\DATOS\Desktop\TELETRABAJO\samuel\GatewayConfiguration\GUIGateway\GUIGateway\View\GatewayPanel.cs'  does not support code parsing or generation because it is not contained within a project that supports code.

    and also appear this in my WindowsForm Design:

    Instances of this error (1)
    1. Hide Call Stack
    at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_Provider()
    at Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom.CodeDomDocDataAdapter.get_CompileUnit()
    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 also tried:
      --> **open** and **close** the project on visual Studio 2019.
      --> Remove the folders **bin** and **obj** inside the project.
      --> Open the copied project with the same content than the first one 
          in the Desktop
      --> Copy twice the old project, one in the local Disk(C) and other 
          on local Disk(D), unfortunately always appers the *Build process 
          failed* and it's imposible to Run the programme.

    Thursday, April 2, 2020 1:31 PM