2

I want to publish an ASP.NETFramework v4.6.1 project to a local folder. No 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.

3

1 Answer 1

4

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.

/p:DeployOnbuild=True /p:GenerateProjectSpecificOutputFolder=true
/p:OutDir=.\To\Folder /p:UseWPP_CopyWebApplication=true /p:PipelineDependsOnBuild=false
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.