0

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?

Enrico
  • 3,592
  • 6
  • 45
  • 102
  • You can use Refit 4.x by changing your Forms-based PCL to NetStd 1.5 and updating Xamarin.Forms to 2.4.x (in Prerelease right now) Make sure that you add Refit to your application projects also.... – SushiHangover Aug 29 '17 at 18:02

1 Answers1

0

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

Enrico
  • 3,592
  • 6
  • 45
  • 102