简体   繁体   English

ASP.NET:如何使用命令行在文件夹中发布

[英]ASP.NET: How to publish in a folder with commandline

I want to publish an ASP.NETFramework v4.6.1 project to a local folder.我想将 ASP.NETFramework v4.6.1 项目发布到本地文件夹。 No zip.没有 zip。 No profile.没有简介。

Just a publication like this:只是这样的出版物:

msbuild MySolution.sln /t:MyProject /p:Configuration=DEBUG /p:publishDir=".\To\Folder" /p:WebPublishMethod=FileSystem

It compiles well but I get nothing in the destination folder.它编译得很好,但我在目标文件夹中什么也没有。 I forgot an instruction?我忘了一个指令? The documentation doesnt help me.该文档对我没有帮助。

There are a couple extra parameters that should get this going.有几个额外的参数应该可以做到这一点。 In particular, the publishdir needs to change to OutDir, but the other ones are probably necessary as well.特别是,publishdir 需要更改为 OutDir,但其他的可能也是必要的。

/p:DeployOnbuild=True /p:GenerateProjectSpecificOutputFolder=true
/p:OutDir=.\To\Folder /p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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