VS code c#识别不了deepin怎么办
Tofloor
poster avatar
151******67
deepin
2017-08-03 18:46
Author
VS code c#安装之后,出现不能识别deepin,有谁知道怎么办啊

The current Linux distribution 'deepin' version '15.4.1' is not currently supported by the .NET Core debugger. Debugging will not be available.
If 'deepin' is binary compatible with a Linux distribution officially supported by .NET Core, you may be able to resolve this by setting 'csharp.fallbackDebuggerLinuxRuntimeId' in 'File->references->Settings' and restarting VS Code.
Reply Favorite View the author
All Replies
avatar
151******67
deepin
2017-08-03 18:49
#1
以前用VB,现在改用C#各种水土不服啊,求大神

Reply View the author
avatar
jingle
deepin
2017-08-03 19:01
#2
vscode里面插件?
Reply View the author
avatar
151******67
deepin
2017-08-03 19:06
#3

是的,c#扩展插件
Reply View the author
avatar
isunny
deepin
2017-08-03 19:11
#4
这里不是有提示吗?
If 'deepin' is binary compatible with a Linux distribution officially supported by .NET Core, you may be able to resolve this by setting 'csharp.fallbackDebuggerLinuxRuntimeId' in 'File->references->Settings' and restarting VS Code.


可能需要你自己设置一下,  具体怎么设置 需要你自己找到这个插件的文档,自己解决
Reply View the author
avatar
151******67
deepin
2017-08-03 19:24
#5
https://bbs.deepin.org/post/143657
这里不是有提示吗?

是的,我试了试,就是没找到要设置成什么参数?想问问大神有没有解决过的
Reply View the author
avatar
isunny
deepin
2017-08-03 20:09
#6
https://bbs.deepin.org/post/143657
是的,我试了试,就是没找到要设置成什么参数?想问问大神有没有解决过的 ...

不是大神  

没有遇到过

你去这个  vscode 的 插件市场 (网页版)  找到这个插件,它应该是有文档说明的,英文不好可以用翻译软件的
Reply View the author
avatar
isunny
deepin
2017-08-03 20:13
#7
https://stackoverflow.com/questions/34135720/omnisharp-failed-to-start-in-visual-studio-code


Your versions might be out of date. Uninstall and reinstall the C# extension in vs code.

Press F1, type ext show installed, press Enter. Click the x to remove it.
Restart vscode.
Press F1, type ext install, press Enter. Click the download icon to install.
Restart vscode.
Ominsharp will now run.
Reply View the author
avatar
151******67
deepin
2017-08-04 17:12
#8
https://bbs.deepin.org/post/143657
Your versions might be out of date. Uninstall and reinstall the C# extension in vs code.

Press F1 ...

多谢,我去试试看
Reply View the author
avatar
isunny
deepin
2017-08-04 19:05
#9
https://bbs.deepin.org/post/143657
多谢,我去试试看

可能那个页面的方法不一定适合你遇到的问题

我的建议是,你可以这样解决你的问题,
1  首先找到你的问题的原因
可用方法是你在你的系统里面新建 user1  和 user2  (这俩用户只是为了你找原因用的,不用了可以再删除),然后登陆 user1,重新打开 vs code ,然后 新建一个 c# hello world .cs  这时 vscode 会 提示或推荐你安装 c# 插件,你在尝试是否解决了你的问题,或者找到了原因,      ### 因为 每一个用户的家目录下的 vs code 的配置 和插件都是独立的,
2  尝试解决问题
https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp

这是你书的那个插件的微软的网页,在里面还附有该插件的 GitHub 地址。
更进一步的解决,需要你去尝试,我不能去帮你做所有的事情,因为我没有 deepin 环境,

3  提示 如果使用了修改的 hosts 或者使用了 vpn 等类似的东西  ,可能        会对 插件的下载有影响,因为我在 Mac 下也部分受影响

4  同时 sublime 也是可以 对 c# 有支持的当然没有 vscode 好用,但是单文件的 c# 编辑编译 都木有问题
Linux 或者 Mac 依赖 mono  相信你在 deepin 下如此搞应该明白
Reply View the author
avatar
151******67
deepin
2017-08-04 23:21
#10
https://bbs.deepin.org/post/143657
可能那个页面的方法不一定适合你遇到的问题

我的建议是,你可以这样解决你的问题,

多谢大神指导,我晚上试一下
Reply View the author
avatar
sinux
deepin
2017-08-05 00:59
#11
本帖最后由 sinux 于 2017-8-4 17:15 编辑

deepin是个小发行版,这插件没做适配,这不给出办法了吗,让这玩意忽略发行版名称,强制识别为用你指定的。

所以只管敲上Debian或者Ubuntu试试呗,又不会死人

更新:
https://stackoverflow.com/questi ... -visual-studio-code
                                


    I use visual studio code and plugin for C# version 1.10.0-beta1.When I try turn of debug, I get error:
  launch: launch.json must be configured. Change 'program' to the path  to the executable file that you would like to debug.
I use ubuntu 17.04My settings:
{    "window.menuBarVisibility": "toggle",    "csharp.fallbackDebuggerLinuxRuntimeId": "ubuntu.16.10-x64",    "omnisharp.useMono": true,}

Reply View the author