专案建立但无法发布 [英] Project builds but can't publish
本文介绍了专案建立但无法发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个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屋!
查看全文