我創建了一個新的WebAPI項目,它引用了我在F#中編寫的組件。我在本地工作站上工作正常。當我將它部署到Windows Azure時,我收到了以下內容:F#和Windows Azure
<Error><Message>An error has occurred.</Message><ExceptionMessage>Could not load file or assembly 'FSharp.Core, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</ExceptionMessage><ExceptionType>System.IO.FileNotFoundException</ExceptionType><StackTrace> at System.Web.Http.ApiController.<InvokeActionWithExceptionFilters>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__0.MoveNext()</StackTrace></Error>
有沒有人有任何建議?我將F#.dlls設置爲複製本地。
我添加它通過添加...參考,它仍然失敗。然後,我不得不回去並將其標記爲本地副本,並且工作正常。感謝你們倆。 –