热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

无法将项目发布到文件系统中-Cannotpublishprojectintofilesystem

Itrytopublishmyprojecttofilesystemasalways.Therearemypublishsettings:我一如既往地尝试将我的项目发布

I try to publish my project to file system as always. There are my publish settings:

我一如既往地尝试将我的项目发布到文件系统。有我的发布设置:


  
    FileSystem
    Release
    Any CPU
    
    True
    False
    e:\vspublish\audit
    True
  

But publish failed with this error: Azure App Service Activity: Connecting to e:\vspublish\audit...

但是发布失败并出现此错误:Azure应用服务活动:连接到e:\ vspublish \ audit ...

enter image description here

I dont want to use Azure App Service, i just want to publish project to file system.

我不想使用Azure App Service,我只想发布项目到文件系统。

3 个解决方案

#1


8  

It happens when i try to update Microsoft.Net.Compilers package using Nuget Manager to last stable version (its 2.6.1 atm): Update Microsoft.Net.Compilers package

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

If i do not do an upgrade, the publication is successful: the publication is successful

如果我不进行升级,则发布成功:

Why is this happening and where to configure this Assembly? In the settings of the project, no integration or connection to Azure at all.

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

#2


5  

Hope this information can help someone. I had the same issue as reported here - and would like to share it here too or to confirm the solution to the problem.

希望这些信息可以帮助某人。我遇到了与此处报道的相同的问题 - 并且想在此处分享它或确认解决问题的方法。

Publishing did not work (file system, web or any other), everything builds but the resulting message was:

发布不起作用(文件系统,Web或任何其他),一切都构建,但结果消息是:

11>Connecting to C:\MY_LOCATION...
11>
========== Build: 10 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

No additional information was provided. Changing the VS build output settings did not lead to any more information than I already had. Then I stumbled upon this post, reverted to Microsoft.Net.Compilers" version="2.6.0" did not help. Same result.

没有提供其他信息。更改VS构建输出设置不会导致比我已有的更多信息。然后我偶然发现了这篇文章,回到了Microsoft.Net.Compilers“version =”2.6.0“没有帮助。同样的结果。

Comparing the Nuget packages with the branch that worked, turned out that publishing work fine with:

将Nuget包与有效的分支进行比较,结果证明发布工作正常:

I have to point out that loading and publishing the same project (same settings) work fine with Visual Studio 2017.

我必须指出,加载和发布相同的项目(相同的设置)可以与Visual Studio 2017一起使用。

After reverting to 2.4.0 version, things work fine in my case too.

恢复到2.4.0版本之后,我的情况也很好。

Additional info:

  • Visual Studio 2015
  • Visual Studio 2015

  • C# ASP MVC Project
  • C#ASP MVC项目

Hope this helps!

希望这可以帮助!

Happy coding

#3


0  

you need go to folder of project , find .vs folder (you need turn on hidden file in folder option) and delete all file in this ,then build project . good luck

你需要去项目文件夹,找到.vs文件夹(你需要打开文件夹选项中的隐藏文件)并删除其中的所有文件,然后构建项目。祝你好运


推荐阅读
author-avatar
白云飞羽_389
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有