T
T
Tony13372017-03-28 20:07:20
C++ / C#
Tony1337, 2017-03-28 20:07:20

Microsoft Visual Studio 2017 - How to fix compilation error?

Hello! I have been programming one of my programs for about 3 weeks. And today I decided to check it, when I started to run it, I got an error: CS8078 The expression is too long or difficult to compile, and showed an innocent line with if, where nothing was specified at all (the program has not yet been completed). I removed this line, I run: Again a random line. I do not understand how to solve this problem, I will be grateful for any help in advance. I am programming in C# in Visual Studio 2017.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew K., 2017-03-28
@Tony1337

In your case, error CS8078 means that your entire program is one giant if-elseif statement. You have two solutions:

  • Delete all the code you wrote and sit down to learn programming again
  • Choose another programming language, for example, BrainFuck

S
Saboteur, 2017-03-28
@saboteur_kiev

All the mistakes are due to the fact that you have not yet been imbued with the spirit of IT - the direction of Information and Telepathy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question