Пару часов назад я довольно неплохо работал над публикацией проекта ASP.NET с использованием профиля публикации (.pubxml), но внезапно после внесения небольших изменений в .pubxml я получил более 1000 сообщений об ошибках, даже если смогпостроить и запустить проект локально.
Это .pubxml
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<MsDeploySkipRules Include="CustomSkipFolder">
<ObjectName>dirPath</ObjectName>
<AbsolutePath>Temp</AbsolutePath>
</MsDeploySkipRules>
<MsDeploySkipRules Include="CustomSkipFolder">
<ObjectName>dirPath</ObjectName>
<AbsolutePath>Uploads</AbsolutePath>
</MsDeploySkipRules>
<!--<Content Update="TempImages/**" CopyToPublishDirectory="Never" />-->
<MsDeploySkipRules Include="CustomSkipFolder">
<ObjectName>dirPath</ObjectName>
<AbsolutePath>TempImages</AbsolutePath>
</MsDeploySkipRules>
<MsDeploySkipRules Include="CustomSkipFile">
<ObjectName>filePath</ObjectName>
<AbsolutePath>Web.config</AbsolutePath>
</MsDeploySkipRules>
<MsDeploySkipRules Include="CustomSkipFile">
<ObjectName>filePath</ObjectName>
<AbsolutePath>ConfigConn.xml</AbsolutePath>
</MsDeploySkipRules>
</ItemGroup>
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<PrecompileBeforePublish>True</PrecompileBeforePublish>
<EnableUpdateable>True</EnableUpdateable>
<DebugSymbols>False</DebugSymbols>
<WDPMergeOption>MergeAllPagesAndControlToASingleAssembly</WDPMergeOption>
<UseMerge>True</UseMerge>
<ContentAssemblyName>EspiaWeb_deploy</ContentAssemblyName>
<ExcludeApp_Data>True</ExcludeApp_Data>
<!--<ExcludeFilesFromDeployment>Web.config;ConfigConn.xml</ExcludeFilesFromDeployment>-->
<ExcludeFoldersFromDeployment>.vs</ExcludeFoldersFromDeployment>
<!--<ExcludeFoldersFromDeployment>.vs;Temp;Uploads;TempImages</ExcludeFoldersFromDeployment>-->
<publishUrl>W:\Documentos\espiaupd</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
</Project>
Это всего лишь 5 из +1000 сообщений об ошибках, которые я получаю
LogInExterno\Web References\ReferenciaUsuario\Reference.cs(742,153): error CS0246: The type or namespace name 'ResponseNamespace' could not be found (are you missing a using directive or an assembly reference?) [W:\Axon\Proyectos\espiaWeb\espiaWeb\espiaWeb.csproj]
LogInExterno\Web References\ReferenciaUsuario\Reference.cs(742,196): error CS0246: The type or namespace name 'Use' could not be found (are you missing a using directive or an assembly reference?) [W:\Axon\Proyectos\espiaWeb\espiaWeb\espiaWeb.csproj]
LogInExterno\Web References\ReferenciaUsuario\Reference.cs(742,200): error CS0234: The type or namespace name 'Services' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [W:\Axon\Proyectos\espiaWeb\espiaWeb\espiaWeb.csproj]
LogInExterno\Web References\ReferenciaUsuario\Reference.cs(742,256): error CS0246: The type or namespace name 'ParameterStyle' could not be found (are you missing a using directive or an assembly reference?) [W:\Axon\Proyectos\espiaWeb\espiaWeb\espiaWeb.csproj]
LogInExterno\Web References\ReferenciaUsuario\Reference.cs(742,271): error CS0234: The type or namespace name 'Services' does not exist in the namespace 'System.Web' (are you missing an assembly reference?) [W:\Axon\Proyectos\espiaWeb\espiaWeb\espiaWeb.csproj]