Visual Studio MonoGame NuGet 包中是否不再包含 MonoGame 管道工具?

Is MonoGame Pipeline Tool not included anymore in the Visual Studio MonoGame NuGet Package?

所以我目前正在尝试使用 MonoGame 在 Visual Studio (C#) 中制作游戏,但是当我尝试双击内容文件夹中的内容文件。在我观看最近的教程时,每个人都使用 Pipeline,并且在使用 NuGet 后没有问题。在内容文件夹中,我只有 'obj' 文件夹和 Content.mgcb 文件。See How Content File Shows In Project

是的,我看到有些人通过 右键单击​​文件 'open with...' 然后MonoGame 管道工具选项将出现。听说有这个东西,MGCB Editor出来了。它是 Pipeline 的替代品吗?我应该怎么做才能获得 Pipeline?

PS: 我使用的是最新版本的 Mono,3.8.0

实际上,MonoGame 管道工具包含在 nuget 包中 dotnet-mgcb-editor

到目前为止,团队已经改为使用那个。 The old one's instruction is here.

I heard that there's this thing, MGCB Editor out. Is it a replacement for Pipeline? What should I do to get Pipeline?

是的。它现在是 MonoGame Pipeline Tool 的替代品,目前正在使用。

安装此类工具之前,您应该安装Net Core 3.1 SDK并且它需要。

安装工具,你应该打开CMD安装那个包,调用这些:

dotnet tool install -g dotnet-mgcb-editor

并且它会从

下的nuget包中安装工具
C:\Users\xxx(current user)\.dotnet\tools\mgcb-editor.exe

并且你可以在那里使用它,也可以直接从CMD调用它。

另外,我觉得nuget包MonoGame.Content.Builder.Task 3.8.0.1641是可以的,如果达不到你的要求,可以忽略。

C:\Users\username\.dotnet\tools\.store\dotnet-mgcb-editor.8.0.1641\dotnet-mgcb-editor.8.0.1641\tools\netcoreapp3.1\any\mgcb-editor-wpf.exe

按照接受的答案安装工具后,双击 visual studio 中的 Content.mgcb 仍然无效。将 .mgcb 扩展名与上述文件相关联对我有用。

我 运行 在我的 CMD 中的这段代码在接受了答案之后,我能够使用 VS 启动它。

首先 运行 这是已接受的答案:

dotnet tool install -g dotnet-mgcb-editor

然后这个

mgcb-editor --register