Visual Studio for Mac, Xamarin Forms with Refit: exited with code 1

299 views Asked by At

in my Xamarin project I added Refit (site here): the solution has Profile 111. If I compile the project I receive this error:

/Users/mypc/.nuget/packages/refit/3.1.0/build/netstandard1.1/refit.targets(5,5): Error MSB3073: The command "mono "/Users/mypc/.nuget/packages/refit/3.1.0/build/netstandard1.1/../../tools/InterfaceStubGenerator.exe" "obj/Debug//RefitStubs.g.cs" "/Users/mypc/Projects/myproject/App/Common" "obj/Debug/RefitParams.rsp"" exited with code 1. (MSB3073) (MyPolicy.Common)

I tried to change in refit.targets the path with this instruction:

  • Open refit.targets
  • Line 30: <RefitExecCmd>mono "$(MSBuildThisFileDirectory) ..snip.. </RefitExecCmd>
  • Change mono path to it's absolute location in my case: /usr/local/bin/mono
  • Like this: <RefitExecCmd>/usr/local/bin/mono "$(MSBuildThisFileDirectory) ..snip.. </RefitExecCmd>

I also read this post on BugZilla. It didn't work. Any ideas?

1

There are 1 answers

0
Enrico On

I resolved the problem. I removed completely the project that has the problem and I recreated it. After that operation, the solution is build.