在我的Xamarin
項目中我添加了Refit
(site here):解決方案有Profile 111
。如果我編譯項目,我收到此錯誤:Visual Studio for Mac,Xamarin Forms with Refit:退出並帶有代碼1
/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)
我試圖在refit.targets
改變這種instruction路徑:
- 打開refit.targets
- 第30行:
<RefitExecCmd>mono "$(MSBuildThisFileDirectory) ..snip.. </RefitExecCmd>
- 變化在我的情況下,它的絕對位置的單聲道:
/usr/local/bin/mono
- 喜歡這個:
<RefitExecCmd>/usr/local/bin/mono "$(MSBuildThisFileDirectory) ..snip.. </RefitExecCmd>
我也看過這篇文章BugZilla。它沒有工作。有任何想法嗎?
通過將基於表單的PCL更改爲NetStd 1.5並將Xamarin.Forms更新爲2.4.x(現在提前發佈),您可以使用Refit 4.x確保將改裝添加到您的應用程序項目中.... – SushiHangover