V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
AmoxiDu
V2EX  ›  问与答

不懂就问: VisualStudio 右键菜单上的发布,在命令行如何调用?

  •  
  •   AmoxiDu · Jul 25, 2022 · 1869 views
    This topic created in 1380 days ago, the information mentioned may be changed or developed.

    迫于构建自动化发布脚本,求教有没有办法用命令行取代界面操作。 程序为 C#.NET 的客户端(Winform/WPF)。 Snipaste_2022-07-25_17-25-21.png

    5 replies    2022-07-26 14:53:25 +08:00
    AmoxiDu
        1
    AmoxiDu  
    OP
       Jul 25, 2022 via iPhone
    可以用命令行实现与右键发布功能同等效果即可。
    ysc3839
        2
    ysc3839  
       Jul 25, 2022
    大概是用 msbuild 编译 sln 文件,应该有个 Publish 的选项。
    boris93
        3
    boris93  
       Jul 25, 2022 via iPhone
    看看 dotnet publish
    boris93
        4
    boris93  
       Jul 25, 2022 via iPhone
    frisktale
        5
    frisktale  
       Jul 26, 2022
    framework 不知道,core 的话用 dotnet publish 命令就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2666 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 11:56 · PVG 19:56 · LAX 04:56 · JFK 07:56
    ♥ Do have faith in what you're doing.