C# - Error after changing from 32 to 64bit

Asked

Viewed 230 times

2

My project was compiling normal, but when I changed from 32 to 64 a lot of errors appeared. I ignore and continue several components disappear. I am new in C#. has how I restore the project to a previous day as I did in Delphi? Follow the image.

Thank youErro que está a dar

1 answer

5

Did you develop your components in a separate project (class Library)? If yes, libraries should be placed as Anycpu, only executables should be compiled as 32 or 64 bits.

If you haven’t put the components into a separate library, create a new Class Library project, embed its components into it, and set the build method to Anycpu.

To change the configuration go to Build -> Configuration Manager. Menu Configuration Manager

The configuration should look like this described below: Configuração x86 Configuração x64

  • Thanks for the information and it worked, but now the form appears without two components Listwiewex. Compiles without error. You have to make the components appear again?

  • This is a common Visual Studio bug, when you opened the application that did not appear the components Visual Studio must have presented a message indicating that it would remove the invalid components, by clicking yes the visual studio changed its .designer.Cs file by removing the components it considered invalid, you probably saved the file and lost the information, now just redoing or restoring from the version control.

  • @pleonardomv, if the question has helped you, please accept the answer

Browser other questions tagged

You are not signed in. Login or sign up in order to post.