赞
踩
第一行应该是: <Project ToolsVersion="Current" Sdk="Microsoft.NET.Sdk">
如果是还不行:只保留 <Project> 其他内容删除,然后关闭vscode,unity内重新打开
launch.json 配置:
没有这个配置可以通过【运行和调试】 进行创建
配置信息
type: vstuc:就是unity
{
"version": "0.2.0",
"configurations": [
{
"type": "vstuc",
"name": "Unity Editor",
"request": "attach"
},
]
}
一直Downloading the .NET Runtime.
修改设置 setting.json 添加如下
- {
- .....
-
- "dotnetAcquisitionExtension.existingDotnetPath": [
- {
- "extensionId": "ms-dotnettools.csharp",
- "path": "C:\\Program Files\\dotnet\\dotnet.exe"
- },
- {
- "extensionId": "visualstudiotoolsforunity.vstuc",
- "path": "C:\\Program Files\\dotnet\\dotnet.exe"
- },
- {
- "extensionId": "ms-dotnettools.csdevkit",
- "path": "C:\\Program Files\\dotnet\\dotnet.exe"
- }
- ],
- .....
-
- }
2. path :本地已安装dotnet 的路径
更多问题进入:https://github.com/microsoft/vscode-dotnettools/issues
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。