我尝试像往常一样将我的项目发布到文件系统。这是我的发布设置:
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>e:\vspublish\audit</publishUrl>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project>
但发布失败并出现以下错误:Azure 应用服务事件:连接到 e:\vspublish\audit...
我不想使用 Azure 应用服务,我只想将项目发布到文件系统。
最佳答案
当我尝试使用 Nuget Manager 将 Microsoft.Net.Compilers
包更新到最新稳定版本(其 2.6.1 atm)时,会发生这种情况:
为什么会发生这种情况以及在哪里配置此程序集?在项目的设置中,根本没有与 Azure 的集成或连接。
关于asp.net-mvc - 无法将项目发布到文件系统中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47951177/