作者:白云飞羽_389 | 来源:互联网 | 2023-08-04 12:41
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 ...
I dont want to use Azure App Service, i just want to publish project to file system.
我不想使用Azure App Service,我只想发布项目到文件系统。
3 个解决方案
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