asp.net-mvc - 无法将项目发布到文件系统中

标签 asp.net-mvc visual-studio azure publish

我尝试像往常一样将我的项目发布到文件系统。这是我的发布设置:

<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...

enter image description here

我不想使用 Azure 应用服务,我只想将项目发布到文件系统。

最佳答案

当我尝试使用 Nuget Manager 将 Microsoft.Net.Compilers 包更新到最新稳定版本(其 2.6.1 atm)时,会发生这种情况: Update Microsoft.Net.Compilers package

如果我不进行升级,则发布成功: the publication is successful

为什么会发生这种情况以及在哪里配置此程序集?在项目的设置中,根本没有与 Azure 的集成或连接。

关于asp.net-mvc - 无法将项目发布到文件系统中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47951177/

相关文章:

c# - 基于角色的 Controller 访问

c# - MVC 或 Web API 传输 byte[] 最有效的方法

c++ - 为什么断言宏的定义在发布版本中不能只是 `#define assert(expression) 0` ?

c# - 在 Visual Studio 2015 中粘贴时如何保留格式?

azure - 有关 Azure 实例分配带宽的问题

azure - 通过 Microsoft Graph API 请求使用 $filter

c# - 我应该在 c# 变量中添加双引号以在 Razor 中添加 css 类吗?

c++ - 将带有 Boost 的 C++ 应用程序从 Linux 移动到带有 Visual Studio 6 的 Windows

angular - 当命令 ngserve 显示模块未找到时,Angular 中出现错误

javascript - mvc部分 View onsubmit表单从父 View 发送数据