.net Jenkins build files

Posted by: liana.melissa12 on 8 August 2018, 6:00 pm EST

  • Posted 8 August 2018, 6:00 pm EST

    Hi all,
    I am I am trying to implement [url=https://mindmajix.com/continuous-integration-with-jenkins]Jenkins continuous deployment[/url], I am able to build the project using msbuild.exe.

    My question is

    We deploy published files to the server, So, when I build the solution using Jenkins,

    where I'll be able to find build files, similar to what we get when we build through visual studio,

    how to get the published files.

    If we don't get published files then how far this is suitable for .net project.

    Thanks,
    Lianamelissa,
    devops consultant.
  • Marked as Answer

    Replied 13 August 2018, 5:08 pm EST

    Hi,

    When using MSBuild from command line, you need to provide an output path for the build to get artifacts. A simple MSbuild command will not give you output. Example, when building a solution from MSBuild 15, I use this command:

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" "GitCertInstaller.csproj" /p:OutputPath=\\My-Network-Server\SharedPath\GitCertInstaller

    If you have a publish profile added in your project, and you want use it then use this command:

    "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" "GitCertInstaller.csproj" /p:DeployOnBuild=true /p:PublishProfile=MyPublishProfile

    Hope this helps

    ~nilay
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels