Deploy to Windows Plesk with msbuild

Hi! I have an ASP.NET project with this .travis.yml working like a charm.

language: csharp
solution: LigaSoft.sln
install:
  - cd Liga
  - curl -L -o nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
  - mono nuget.exe restore LigaSoft.sln -Verbosity Detailed -NonInteractive -ConfigFile nuget.config
  - nuget install NUnit.Console -Version 3.9.0 -OutputDirectory testrunner
before_script:
  - sudo docker pull microsoft/mssql-server-linux:2017-latest
  - docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=YourSTRONG!Passw0rd' -p 1401:1433 --name=sql1 -d microsoft/mssql-server-linux:2017-latest
script:
  - msbuild /p:Configuration=IntegracionContinua LigaSoft.sln /p:DeployOnBuild=true /p:PublishProfile=IntegracionContinuaPublishProfile
  - mono ./testrunner/NUnit.ConsoleRunner.3.9.0/tools/nunit3-console.exe ./Tests/bin/IntegracionContinua/Tests.dll

The problem is I can’t deploy it to my Plesk server with msbuild. I got silent errors.

I’ve tried a lot of options in the last few days, all are variants of:

- msbuild /p:Configuration=IntegracionContinua LigaSoft.sln /p:DeployOnBuild=True /p:PublishProfile=IntegracionContinuaPublishProfile

Can anyone please help me?

@joshua-anderson
@nterry

Imprint