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,

    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.

    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:12 PM

Answers

  • Hi Enxebre,

    Did you try to delete .vs folder in the project ? if no please delete that folder and restart visual studio or you can provide more details about your project.


    Please remember to mark the replies as answers if they helped you :) ~

    • Marked as answer by Enxebre Thursday, April 2, 2020 3:43 PM
    • Unmarked as answer by Enxebre Thursday, April 2, 2020 3:44 PM
    • Marked as answer by Enxebre Thursday, April 2, 2020 3:44 PM
    Thursday, April 2, 2020 2:29 PM
  • I've deleted .vs and I've closed visual studio and then I've opened another time but all seems equal.

    My proJect properties:

    Application:

    • Target Network: .Net Framework 4.5.2
    • Output type: Windows Application

    Debug & Build:

    • Configuration: Active(Degug)
    • Platform: Active(Any CPU)

    What I need more to do?

     

    • Marked as answer by Enxebre Thursday, April 2, 2020 3:57 PM
    Thursday, April 2, 2020 3:54 PM
  • And also the Instance of this Error appears this text:

    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) 

    • Marked as answer by Enxebre Thursday, April 2, 2020 4:06 PM
    Thursday, April 2, 2020 4:06 PM

All replies

  • Hi Enxebre,

    Did you try to delete .vs folder in the project ? if no please delete that folder and restart visual studio or you can provide more details about your project.


    Please remember to mark the replies as answers if they helped you :) ~

    • Marked as answer by Enxebre Thursday, April 2, 2020 3:43 PM
    • Unmarked as answer by Enxebre Thursday, April 2, 2020 3:44 PM
    • Marked as answer by Enxebre Thursday, April 2, 2020 3:44 PM
    Thursday, April 2, 2020 2:29 PM
  • I've deleted .vs and I've closed visual studio and then I've opened another time but all seems equal.

    My proJect properties:

    Application:

    • Target Network: .Net Framework 4.5.2
    • Output type: Windows Application

    Debug & Build:

    • Configuration: Active(Degug)
    • Platform: Active(Any CPU)

    What I need more to do?

     

    • Marked as answer by Enxebre Thursday, April 2, 2020 3:57 PM
    Thursday, April 2, 2020 3:54 PM
  • And also the Instance of this Error appears this text:

    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) 

    • Marked as answer by Enxebre Thursday, April 2, 2020 4:06 PM
    Thursday, April 2, 2020 4:06 PM
  • Hi, 

    Please try some other ways like

    - Copy it again to another location then just delete this file .suo Find it in the folder .vs\YourSolutionName\v16\.suo  ( The solution user options file is used to store user preference settings ) after that right-click on the solution click Clean Solution

    -Exclude / Include form in your project

    Please take a look this feed back that is like your issue
    https://developercommunity.visualstudio.com/content/problem/376510/the-file-form2vb-does-not-support-code-parsing-or.html

     I hope this help you out.


    Please remember to mark the replies as answers if they helped you :) ~


    • Edited by Rebin Qadir Thursday, April 2, 2020 8:40 PM
    Thursday, April 2, 2020 8:38 PM