无法从visual studio 2015发布到AWS lambda
问题描述:
I have installed VS 2015 SDK for AWS and .NetCore 1.0 as a prerequisite for deployment.
While trying to deploy from Publish to AWS Lambda.. by right click on project, I am getting below error
"No .NET project found in directory D:\SampleProjects\AWSServerless1\AWSLambda1\AWSLambda1 to build. "
How do I resolve this issue?
我的尝试:
我尝试了所有可能的解决方案卸载并重新安装但没有用。
What I have tried:
I have tried all possible solutions by uninstalling and re-installing but of no use.
答
错误消息显示目录中没有项目。从我所看到的 - 以及你共享的内容 - 我只能建议你检查该工具为什么试图在该目录中找到项目,它似乎在AWSServerless1 \AWSLambda1目录中。该项目是 .csproj 文件,您可以验证该项目文件的位置,然后检查该SDK使用其他目录的原因。
看看这个 [ ^ ]示例代码了解更多信息。这显示了如何使用CLI和工具构建项目然后对其进行测试,假设您已经下载了SDK。
The error message says that there are no projects in the directory. From what I can see—and from what you have shared—I can only suggest that you check why the tool is trying to find the project in that directory, it seems to be in, "AWSServerless1\AWSLambda1" directory. The project is a .csproj file, you can verify where that project file is and then check why that SDK is using a different directory.
Take a look at this[^] sample code for more. This shows how you can use CLI and tools to build the project and then test it, this assume that you have downloaded the SDK too.