简体   繁体   中英

Publish option is gone from context menu in VS2017

So I'm trying to publish a project, but for whatever reason I can't. The very last project that I added still gives me the option to do it, but none of the other projects allow me to do it. The publish option is missing from the context menu (see snippets). I tried to change the guid as explained in this article , but no luck.

发布

没有发表

How do I publish my projects??

Thanks for the help in advance!

By the way I'm using Visual Studio Community 2017

So I haven't been able to figure out why the menu is missing, but I found a way to publish it via the command line which ends up being the same. Using a cmd with admin rights navigate to the project you want to publish and use these commands:

set Platform=
set ASPNETCORE_ENVIRONMENT=
dotnet publish -c Release -o bin\Release\PublishOutput

-c specifies the configuration {Debug|Release}, and -o the relative output location. For more info go to the documentation of dotnet

I fixed this issues by using VS installer ,selected web development options and installed it. After installing web development settings I can publish option.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM