alibaba / alibaba/serverless-vscode

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

Open
#243 1 comment 0 reactions 1 assignee Claimed by @ChanDaoH View on GitHub
bug
Dominant language
TypeScript
Stars
289
Forks
38
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/771326/86706206-3a363c80-c049-11ea-82e3-b1711ae660fe.png)

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.