MSBuild Not working When Attempting to Build Projects Manually

Ranorex Spy, Recorder, and Studio.
sheafox
Posts: 26
Joined: Mon Jul 09, 2018 3:54 am

MSBuild Not working When Attempting to Build Projects Manually

Post by sheafox » Tue Apr 23, 2019 4:53 pm

I am trying to use MSBuild to build our test automation projects. However, I am getting several reference warning when I do this. Also the automation exe will not work once the build process completes. Is there a step I am missing? I am using a command similar to %WINDIR%\Microsoft.NET\Framework\v3.5\MSBuild.exe project.csproj.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5180
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: MSBuild Not working When Attempting to Build Projects Manually

Post by odklizec » Wed Apr 24, 2019 7:15 am

Hi,

To build the test via msbuild, you have to use 'sln' file, instead of 'csproj' file. Also, some warnings are normal. Usually, you don't have to care about them, as long as they are not errors ;) Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration