使用this template,我一直试图让Lambda函数运行。当它执行包含
的模块时open Amazon
open Amazon.S3
它爆炸了
" errorType":" FileNotFoundException",
" errorMessage":"无法加载文件或程序集' AWSSDK.Core,Version = 3.3.0.0,Culture = neutral,PublicKeyToken = 885c28607f98e604'。系统找不到指定的文件。",`
我尝试过nuget install
AWSSDK.Core无济于事。
Errors in /Users/sanitized/aws_lambda/project.json
Package AWSSDK.Core 3.1.0 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package AWSSDK.Core 3.1.0 supports:
- monoandroid (MonoAndroid,Version=v0.0)
- net35 (.NETFramework,Version=v3.5)
- net45 (.NETFramework,Version=v4.5)
- portable-net45+win8+wp8+wpa81 (.NETPortable,Version=v0.0,Profile=Profile259)
- win8 (Windows,Version=v8.0)
- wp8 (WindowsPhone,Version=v8.0)
- wpa81 (WindowsPhoneApp,Version=v8.1)
- xamarinios10 (Xamarin.iOS,Version=v1.0)
- xamarinmac20 (Xamarin.Mac,Version=v2.0)
One or more packages are incompatible with .NETCoreApp,Version=v1.0.
这是我项目的依赖项部分:
"dependencies": {
"Microsoft.FSharp.Core.netcore": "1.0.0-alpha-*",
"Amazon.Core": "0.6.0",
"Amazon.Lambda.Core": "1.0.0*",
"Amazon.Lambda.Serialization.Json": "1.0.0",
"Amazon.Lambda.Tools": {
"type": "build",
"version": "1.0.0-preview1"
}
},
Lambda库似乎正确加载,但尝试使用S3客户端会中断。什么是.net-core祝福等同于AWSSDK.Core和AWSSDK.S3?
答案 0 :(得分:2)