_publishedwebsite folder not appearing for msbuild 2022 but it does on 2019

Dell Franco 1 Reputation point
2022-03-07T19:35:26.167+00:00

Hi.

When I used 2022 msbuild tool, it doesn't create the _publishedwebsite folder anymore but when I use the 2019 msbuild, it creates it. How do you make 2022 msbuild to create that publishedwebsite folder? thanks

dell -f

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,202 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kuo Patrick 1 Reputation point
    2022-07-28T04:07:34.78+00:00

    i've encounter the same issue, after i upgrade from vs 2019 to vs2022。MSbuild is 17.0。
    And on my Jenkins CI,I need to change the command about Version to " 17.0 ^ "。
    If I remain as "16.0^",It will not generate the _publishedWebsites folder for me.

    EX:
    bat returnStdout: true, script: '''c:
    cd C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin
    msbuild "D:\JenkinsWorkSpaces\*****\****.csproj" /p:VisualStudioVersion=17.0 ^
    /p:Configuration=Release ^
    /p:Platform=AnyCPU ^
    /p:DeployOnBuild=true ^
    /p:OutputPath="D:\Release\****" ^
    /p:DeleteExistingFiles=True /t:Clean,Build'''

    0 comments No comments