Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

win10,serverless本地运行或调试提示FileNotFoundException project.dll #243

Open
jefth opened this issue Jul 7, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jefth
Copy link

jefth commented Jul 7, 2020

Describe the bug
· Win10 环境 (估计mac没这个问题)

To Reproduce
Steps to reproduce the behavior:

  1. 通过vs code插件,在服务下新增netcore2.1函数:testfun03-netcore
  2. 右键Local Run,(期间下载镜像 aliyunfc/runtime-dotnetcore2.1:1.9.5 )
  3. 回到代码目录,通过终端 dotnet build后,再回到serverless重新再Local Run,错误依旧

Expected behavior
FunctionCompute dotnetcore2.1 runtime inited.
FC Invoke Start RequestId: ba3cd554-a795-4081-9db2-62a858d50baf
2020-07-07T03:41:00.318Z ba3cd554-a795-4081-9db2-62a858d50baf [ERROR] System.IO.FileNotFoundException: project.dll cannot be found.

Screenshots
image

Desktop (please complete the following information):

  • OS: Win10
  • VSCode Version: 1.46.1
  • Aliyun Serverless Extension Version :v1.27.11

Additional context
yml片段参考:
testfun03-netcore:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: 'project::example.App::HandleRequest'
Runtime: dotnetcore2.1
Timeout: 60
MemorySize: 512
InstanceConcurrency: 1
EnvironmentVariables:
LD_LIBRARY_PATH: >-
/code/.fun/root/usr/local/lib:/code/.fun/root/usr/lib:/code/.fun/root/usr/lib/x86_64-linux-gnu:/code/.fun/root/usr/lib64:/code/.fun/root/lib:/code/.fun/root/lib/x86_64-linux-gnu:/code:/code/lib:/usr/local/lib
NODE_PATH: '/code/node_modules:/usr/local/lib/node_modules'
PATH: >-
/code/.fun/root/usr/local/bin:/code/.fun/root/usr/local/sbin:/code/.fun/root/usr/bin:/code/.fun/root/usr/sbin:/code/.fun/root/sbin:/code/.fun/root/bin:/code:/code/node_modules/.bin:/code/.fun/python/bin:/code/.fun/node_modules/.bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/sbin:/bin
PYTHONUSERBASE: /code/.fun/python
CodeUri: ./service-demo/testfun03-netcore

@jefth jefth added the bug Something isn't working label Jul 7, 2020
@jefth
Copy link
Author

jefth commented Jul 7, 2020

CodeUri: ./service-demo/testfun03-netcore
-->
CodeUri: ./service-demo/testfun03-netcore/bin/Debug/netcoreapp2.1

直接改为编译目录就能执行。(就是麻烦点,每次都要文件系统里先dotnet build,然后再到serverless 的local run)
nodejs是目录一致的,dotnet是有bin目录的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants