At first you need to install a MSBuild plugin which will make it possible to build Visual Studio project(.proj) and solution files(.sln). You need to specify the location directory of MSBuild.exe on Jenkin's configuration page and the name. If you have multiple MSBuild versions installed, you can configure multiple executable's with different name.
We have selected the command line arguments as /t:ReBuild;Package /p:Configuration=Debug which will builds the rebuild target with the debug configuration.
If you want to deploy after the build step then we will use one more build step and add an Execute Windows batch command as shown below
Please Like and Share the Blog, if you find it interesting and helpful.