项目构建但无法发布 [英] Project builds but can't publish

查看:29
本文介绍了项目构建但无法发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 MVC 项目,由于未知原因,它拒绝发布到 PC 中的本地文件夹.

I have an MVC project that for an uknown reason refuses to publish to a local folder in the PC.

日志内容如下:

3>------ Publish started: Project: Admin, Configuration: Release Any CPU ------
3>Connecting to D:Deploys...
3>Project "Admin.csproj" (GatherAllFilesToPublish target(s)):
3>    Building with tools version "14.0".
3>    Target "ValidateMSBuildToolsVersion" skipped. Previously built unsuccessfully.
3>Done building project "Admin.csproj" -- FAILED.
3>
========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

我在调试版本或调试配置时都没有遇到问题.

I haven't had a problem debugging on either release or debug config.

推荐答案

所以我成功了.

问题是Microsoft.Net.Compilers"的版本.我从 v2.6.1 降级到 v2.4.0.

The problem was the version of the "Microsoft.Net.Compilers". I downgraded from v2.6.1 to v2.4.0.

我不知道为什么,所以如果有人知道会很酷.

I don't know why so if someone knows it would be cool to know.

这篇关于项目构建但无法发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆