dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.75k stars 1.07k forks source link

Freestyle Jenkins msBuild command #21893

Open kalyanvp opened 3 years ago

kalyanvp commented 3 years ago

We are using freestyle Jenkins build and msBuild execute command for the net core application.

/target restore and target build together using in single command. Its executing restore only build not happening. We need restore and build execution in single command because we need to execute the below command together in the build command Because we have mentioned in the command /p :Deployonbuild /p: generatesamplescript /p: deploytype

The above will work while build the solution only not working on restore the solution

kalyanvp commented 3 years ago

MsBuild. exe /target:"restore " /target:"buid" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

Tried above command that is not working

KalleOlaviNiemitalo commented 3 years ago

Use MSBuild.exe /restore:True /target:Build instead.

The Restore target typically modifies files that the project imports. To ensure that MSBuild uses the modified versions of those files when it builds the project, the restore must be done with /restore or in a separate MSBuild invocation, rather than together with other targets.

kalyanvp commented 3 years ago

I have tried the below commands

MsBuild. exe /restore:True /target:Build %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

MsBuild. exe /restore:True /target:"Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The above both command build is success But the below not executed in the commands

/p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript= true

So the package structure not getting as expected still facing issue in the command line.

On Fri, 8 Oct, 2021, 8:38 PM KalleOlaviNiemitalo, @.***> wrote:

Use MSBuild.exe /restore:True /target:Build instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938716625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFJAV72GFD7BOZDFXTUF4CNFANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

Microsoft.Web.Publishing.targets reads the property DeployOnBuild, not Deploynbuild (missing O).

KalleOlaviNiemitalo commented 3 years ago

Also, your command has some extra spaces after the equals signs.

kalyanvp commented 3 years ago

Hi Sorry I didn't get you. Could please explain more details.

Need to change anything in the command line

On Fri, 8 Oct, 2021, 8:59 PM KalleOlaviNiemitalo, @.***> wrote:

Microsoft.Web.Publishing.targets reads the property DeployOnBuild, not Deploynbuild (missing O).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938732569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVGA7HK2PVTBLEXCUKDUF4E53ANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

Change /p:Deploynbuild=true to /p:Deployonbuild=true.

kalyanvp commented 3 years ago

No extra space I have typed in mobile so typed wrongly

On Fri, 8 Oct, 2021, 9:04 PM Kalyanasundaram Elangovan, < @.***> wrote:

Hi Sorry I didn't get you. Could please explain more details.

Need to change anything in the command line

On Fri, 8 Oct, 2021, 8:59 PM KalleOlaviNiemitalo, < @.***> wrote:

Microsoft.Web.Publishing.targets reads the property DeployOnBuild, not Deploynbuild (missing O).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938732569, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVGA7HK2PVTBLEXCUKDUF4E53ANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Changed deployonbuild No luck

Still facing the same problem

On Fri, 8 Oct, 2021, 9:04 PM KalleOlaviNiemitalo, @.***> wrote:

Change /p:Deploynbuild=true to /p:Deployonbuild=true.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938735975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVAM2UU3CRDT33GXS33UF4FPPANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

We need restore and build execution in single command because we need to execute the below command together in the build command

Can you please clarify this? If you first run the restore without the Deployonbuild etc. properties, and then run the build with those properties, what goes wrong? I don't think anything should care about those properties during the Restore target.

kalyanvp commented 3 years ago

I have tried two commands First command restore and second build That time restore alone execute and build is succeed

The second build command not executed

Tired the below command

MsBuild. exe /target:"restore " %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc MsBuild. exe /target:"Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deployonbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

On Fri, 8 Oct, 2021, 9:12 PM KalleOlaviNiemitalo, @.***> wrote:

We need restore and build execution in single command because we need to execute the below command together in the build command

Can you please clarify this? If you first run the restore without the Deployonbuild etc. properties, and then run the build with those properties, what goes wrong? I don't think anything should care about those properties during the Restore target.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938741634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVAGMPMMOMM46R7G4WDUF4GOJANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

In your freestyle Jenkins project, are both MsBuild.exe commands in the same step, or in separate steps?

kalyanvp commented 3 years ago

Same step only

On Fri, 8 Oct, 2021, 9:23 PM KalleOlaviNiemitalo, @.***> wrote:

In your freestyle Jenkins project, are both MsBuild.exe commands in the same step, or in separate steps?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938748975, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVG7T7MV7JQQAGVMEVLUF4HYDANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

The second build command not executed

Does the second MSBuild command even display its version number and copyright notice?

(If the first MSBuild command somehow executed a MSBuild.bat or MSBuild.cmd file, then that could prevent the second MSBuild command from running at all. This seems unlikely though, because your command includes the .exe extension in MSBuild.exe.)

kalyanvp commented 3 years ago

I have changed the first command MsBuild.bat /restore:True %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.bat /target:"restore'' %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.cmd /restore:True %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.cmd /target:"restore'' %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

Getting error not working

On Fri, 8 Oct, 2021, 10:09 PM KalleOlaviNiemitalo, @.***> wrote:

The second build command not executed

Does the second MSBuild command even display its version number and copyright notice?

(If the first MSBuild command somehow executed a MSBuild.bat or MSBuild.cmd file, then that could prevent the second MSBuild command from running at all. This seems unlikely though, because your command includes the .exe extension in MSBuild.exe.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938816007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFTQYAFWBKOPRMFAIDUF4NC5ANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Hi,

Please somebody check and help me

kalyanvp commented 3 years ago

Hi,

Can you check and help me. Still I am facing the same problem.

On Fri, 8 Oct, 2021, 10:31 PM Kalyanasundaram Elangovan, < @.***> wrote:

I have changed the first command MsBuild.bat /restore:True %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.bat /target:"restore'' %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.cmd /restore:True %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

MsBuild.cmd /target:"restore'' %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc

Getting error not working

On Fri, 8 Oct, 2021, 10:09 PM KalleOlaviNiemitalo, < @.***> wrote:

The second build command not executed

Does the second MSBuild command even display its version number and copyright notice?

(If the first MSBuild command somehow executed a MSBuild.bat or MSBuild.cmd file, then that could prevent the second MSBuild command from running at all. This seems unlikely though, because your command includes the .exe extension in MSBuild.exe.)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938816007, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFTQYAFWBKOPRMFAIDUF4NC5ANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

I have changed the first command MsBuild.bat

No, don't do that. It is better to use MSBuild.exe than MSBuild.bat.

If Jenkins runs the commands by writing them to a temporary .bat file and starting CMD /C, and one of the commands starts another .bat file such as MSBuild.bat, then CMD does not continue executing the temporary .bat file after MSBuild.bat finishes, unless you also use the CALL keyword in the command. Because CMD does not continue executing the temporary .bat file, the second MSBuild command in the file does not start at all. This is why I asked whether the second MSBuild command displayed its version information.

Using MSBuild.exe in the commands prevents any risk of this problem.

kalyanvp commented 3 years ago

Hi, I have tried msBuild. Exe first then msBuild. Bat or msBuild. Cmd but getting error

On Sat, 9 Oct, 2021, 11:52 AM KalleOlaviNiemitalo, @.***> wrote:

I have changed the first command MsBuild.bat

No, don't do that. It is better to use MSBuild.exe than MSBuild.bat.

If Jenkins runs the commands by writing them to a temporary .bat file and starting CMD /C, and one of the commands starts another .bat file such as MSBuild.bat, then CMD does not continue executing the temporary .bat file after MSBuild.bat finishes, unless you also use the CALL keyword in the command. Because CMD does not continue executing the temporary .bat file, the second MSBuild command in the file does not start at all. This is why I asked whether the second MSBuild command displayed its version information.

Using MSBuild.exe in the commands prevents any risk of this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-939237694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFDPEWUVRNE3PDJ6MLUF7NTTANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Any other solution for this?

On Sat, 9 Oct, 2021, 2:20 PM Kalyanasundaram Elangovan, < @.***> wrote:

Hi, I have tried msBuild. Exe first then msBuild. Bat or msBuild. Cmd but getting error

On Sat, 9 Oct, 2021, 11:52 AM KalleOlaviNiemitalo, < @.***> wrote:

I have changed the first command MsBuild.bat

No, don't do that. It is better to use MSBuild.exe than MSBuild.bat.

If Jenkins runs the commands by writing them to a temporary .bat file and starting CMD /C, and one of the commands starts another .bat file such as MSBuild.bat, then CMD does not continue executing the temporary .bat file after MSBuild.bat finishes, unless you also use the CALL keyword in the command. Because CMD does not continue executing the temporary .bat file, the second MSBuild command in the file does not start at all. This is why I asked whether the second MSBuild command displayed its version information.

Using MSBuild.exe in the commands prevents any risk of this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-939237694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFDPEWUVRNE3PDJ6MLUF7NTTANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Hi,

Any update or solution for this issue

On Sat, 9 Oct, 2021, 8:08 PM Kalyanasundaram Elangovan, < @.***> wrote:

Any other solution for this?

On Sat, 9 Oct, 2021, 2:20 PM Kalyanasundaram Elangovan, < @.***> wrote:

Hi, I have tried msBuild. Exe first then msBuild. Bat or msBuild. Cmd but getting error

On Sat, 9 Oct, 2021, 11:52 AM KalleOlaviNiemitalo, < @.***> wrote:

I have changed the first command MsBuild.bat

No, don't do that. It is better to use MSBuild.exe than MSBuild.bat.

If Jenkins runs the commands by writing them to a temporary .bat file and starting CMD /C, and one of the commands starts another .bat file such as MSBuild.bat, then CMD does not continue executing the temporary .bat file after MSBuild.bat finishes, unless you also use the CALL keyword in the command. Because CMD does not continue executing the temporary .bat file, the second MSBuild command in the file does not start at all. This is why I asked whether the second MSBuild command displayed its version information.

Using MSBuild.exe in the commands prevents any risk of this problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-939237694, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFDPEWUVRNE3PDJ6MLUF7NTTANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Hi, Any solution for this issue

On Fri, 8 Oct, 2021, 8:56 PM Kalyanasundaram Elangovan, < @.***> wrote:

I have tried the below commands

MsBuild. exe /restore:True /target:Build %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

MsBuild. exe /restore:True /target:"Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The above both command build is success But the below not executed in the commands

/p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript= true

So the package structure not getting as expected still facing issue in the command line.

On Fri, 8 Oct, 2021, 8:38 PM KalleOlaviNiemitalo, < @.***> wrote:

Use MSBuild.exe /restore:True /target:Build instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938716625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFJAV72GFD7BOZDFXTUF4CNFANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

MsBuild. exe /target:"restore;Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deployonbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The below arguments not executed.

p:Deployonbuild=true /p:deploytype=package /P:Generatesampledeployscript=true

On Mon, 11 Oct, 2021, 10:39 AM Kalyanasundaram Elangovan, < @.***> wrote:

Hi, Any solution for this issue

On Fri, 8 Oct, 2021, 8:56 PM Kalyanasundaram Elangovan, < @.***> wrote:

I have tried the below commands

MsBuild. exe /restore:True /target:Build %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

MsBuild. exe /restore:True /target:"Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The above both command build is success But the below not executed in the commands

/p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript= true

So the package structure not getting as expected still facing issue in the command line.

On Fri, 8 Oct, 2021, 8:38 PM KalleOlaviNiemitalo, < @.***> wrote:

Use MSBuild.exe /restore:True /target:Build instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938716625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFJAV72GFD7BOZDFXTUF4CNFANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

kalyanvp commented 3 years ago

Anyone please check on this

On Mon, 11 Oct, 2021, 12:34 PM Kalyanasundaram Elangovan, < @.***> wrote:

MsBuild. exe /target:"restore;Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deployonbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The below arguments not executed.

p:Deployonbuild=true /p:deploytype=package /P:Generatesampledeployscript=true

On Mon, 11 Oct, 2021, 10:39 AM Kalyanasundaram Elangovan, < @.***> wrote:

Hi, Any solution for this issue

On Fri, 8 Oct, 2021, 8:56 PM Kalyanasundaram Elangovan, < @.***> wrote:

I have tried the below commands

MsBuild. exe /restore:True /target:Build %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

MsBuild. exe /restore:True /target:"Build" %workspace%\doc\doc.sln /p:OutDir= %workspace%\doc\webdeploy\Release /P:skipInvaildconfiguration=true /p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript=true /P:DeployIISpath= doc

The above both command build is success But the below not executed in the commands

/p:Deploynbuild=true /p:deploytype=package /P:Generatesampledeployscript= true

So the package structure not getting as expected still facing issue in the command line.

On Fri, 8 Oct, 2021, 8:38 PM KalleOlaviNiemitalo, < @.***> wrote:

Use MSBuild.exe /restore:True /target:Build instead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/sdk/issues/21893#issuecomment-938716625, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIXHBVFJAV72GFD7BOZDFXTUF4CNFANCNFSM5FTZTVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

KalleOlaviNiemitalo commented 3 years ago

Which version of .NET SDK are you using?

What is the target framework of your project?

Which version of MSBuild are you using?

Do you have Visual Studio installed on the computer that runs the Jenkins agent? If so, which versions?

If you run the same MSBuild command in the Visual Studio developer command prompt, rather than in Jenkins, does it work then?