Я никогда раньше не видел, чтобы Visual Studio пыталась скомпилировать файл web.config.Но я получаю ошибки компиляции почти в каждой строке файла.
Первая строка состоит из
<?xml version="1.0"?>
И я получаю 7 ошибок.
Severity Code Description Project File Line Suppression State
Error CS1022 Type or namespace definition, or end-of-file expected Portal {Path}\Views\Web.config 1 Active
Error CS1031 Type expected Portal {Path}\Views\Web.config 1 Active
Error CS1002 ; expected Portal {Path}\Views\Web.config 1 Active
Error CS0116 A namespace cannot directly contain members such as fields or methods Portal {Path}\Views\Web.config 1 Active
Error CS1022 Type or namespace definition, or end-of-file expected Portal {Path}\Views\Web.config 1 Active
Error CS1031 Type expected Portal {Path}\Views\Web.config 1 Active
Error CS1022 Type or namespace definition, or end-of-file expected Portal {Path}\Views\Web.config 1 Active
Почему он собирает этот файл, и как я могу сказать, что нет?