当前位置: 首页 > news >正文

Godot4 C# vscode开发环境搭建

用vscode搭建Godot4 C# 开发环境搭建

  • 软件
  • Godot配置
  • vscode配置
  • 结果
  • 参考

软件

  1. Godot .Net版本: 下载链接
  2. vscode :自行下载
  3. .netcore7:.netcore6可能也行
  4. vscode插件:在这里插入图片描述

Godot配置

1.配置文件用VSCode打开
在这里插入图片描述

在这里插入图片描述2.生成C#项目
项目–>工具–>C#->Create C# Solution,
在这里插入图片描述
项目文件如下:
在这里插入图片描述

vscode配置

1.打开工程目录
2.创建launch.json与task.json:按.netcore配置,godot插件不顶用
ctrl+shift+p
在这里插入图片描述launch.json :"program"换成自己路径


{// Use IntelliSense to learn about possible attributes.// Hover to view descriptions of existing attributes.// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "Launch","type": "coreclr","request": "launch","preLaunchTask": "build","program": "D:/1.learn/2.godot/Godot_v4.1.1-stable_mono_win64/Godot_v4.1.1-stable_mono_win64.exe","console": "internalConsole","stopAtEntry": false}]
}

task.json

{// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0","tasks": [{"label": "build","command": "dotnet","type": "shell","args": ["build",// Ask dotnet build to generate full paths for file names."/property:GenerateFullPaths=true",// Do not generate summary otherwise it leads to duplicate errors in Problems panel"/consoleloggerparameters:NoSummary"],"group": "build","presentation": {"reveal": "silent"},"problemMatcher": "$msCompile"}]
}

结果

在这里插入图片描述

参考

[1]: 【Godot 4 中文教程:在Godot 4中使用Visual Studio和VS Code集成C#脚本!】 https://www.bilibili.com/video/BV1gg41187kK

http://www.lryc.cn/news/116070.html

相关文章:

  • nginx简介与安装配置,目录结构和配置文件介绍
  • CTF流量题解http4.pcapng
  • 旷视科技AIoT软硬一体化走向深处,生态和大模型成为“两翼”?
  • STM32 F103C8T6学习笔记2:GPIO的认识—GPIO的基本输入输出—点亮一个LED
  • 数组相关练习
  • Leetcode-每日一题【剑指 Offer 11. 旋转数组的最小数字】
  • git教程(第一次使用)
  • Autoware.ai1.14.0自动驾驶-Demo运行
  • AttributeConverter
  • 【逗老师的PMP学习笔记】8、项目质量管理
  • Zookeeper集群
  • 后端进阶之路——Spring Security构建强大的身份验证和授权系统(四)
  • 【香瓜说职场】第10月(2018.01.29)
  • ​LeetCode解法汇总1749. 任意子数组和的绝对值的最大值
  • 4.2、Flink任务怎样读取文件中的数据
  • Effective Java笔记(28)列表优于数组
  • 做BI领域的ChatGPT,思迈特升级一站式ABI平台
  • ELFK——ELK结合filebeat日志分析系统(2)
  • webSocket 协议是什么
  • CentOS 7迁移Anolis OS 8
  • Transformer 立体视觉 Depth Estimation
  • vue去掉所有输入框两边空格,封装指令去空格,支持Vue2和Vue3,ElementUI Input去空格
  • 认识FFMPEG框架
  • Vue3 大屏数字滚动效果
  • 【深度学习注意力机制系列】—— SENet注意力机制(附pytorch实现)
  • go 函数
  • python之正则表达式
  • 【LeetCode每日一题】——219.存在重复元素II
  • 篇六:适配器模式:让不兼容变兼容
  • 【云原生】Docker-compose中所有模块学习