Visual studio 2017 Verbose publish

▼魔方 西西 提交于 2021-01-27 07:01:28

问题


I'm attempting to publish a .Net-Core 2.0 project on visual studio 2017. When I publish everything builds fine the publish says success however no files are published.

I've looked at a few questions about this and attempted the solution, switch from debug to release, etc. But nothing seems to work

Connecting to ftps://fakeServer.GoDaddy.com:21... Restore completed in 97.58 ms for C:\source\MyProject.csproj. Restore completed in 73.07 ms for C:\source\MyDependency.csproj. C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): Warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Design" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): Warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. MyProject-> C:\source\MyProject\bin\Debug\netcoreapp2.0\win10-x64\MyProject.dll MyProject -> C:\source\MyProject\obj\Debug\netcoreapp2.0\win10-x64\PubTmp\Out\ Publishing folder /... Web App was published successfully ftps://fakeServer.GoDaddy.com:21/

How can I enabled Verbose logging for .net-core projects?


回答1:


This is for vs 2015 but for 2017 the settings are the same: https://msdn.microsoft.com/en-us/library/jj651643.aspx

To change the amount of information included in the build log On the menu bar, choose Tools, Options.

On the Projects and Solutions page, choose the Build and Run page.

In the MSBuild project build output verbosity list, choose one of the following values, and then choose the OK button.




回答2:


Are you showing no files at all? I've had visual studio lock the publish folder before. Attempt to publish in administrator mode, and also try deleting all the existing files if any. It's notable that i have mine set to delete automatically but i've still had to manually do it twice in the last three months.



来源:https://stackoverflow.com/questions/50595375/visual-studio-2017-verbose-publish

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!