![](/img/trans.png)
[英]Getting Monogame content pipeline to work with Visual studio 2013 in windows 8
[英]Is MonoGame Pipeline Tool not included anymore in the Visual Studio MonoGame NuGet Package?
所以我目前正在嘗試使用 MonoGame在Visual Studio (C#) 中制作游戲,但是當我嘗試雙擊Content Folder 中的Content 文件時,MPT 沒有打開。 當我觀看最近的教程時,每個人都使用 Pipeline 並且在使用 NuGet 后沒有任何問題。 在 Content 文件夾中,我只有“obj”文件夾和Content.mgcb文件。 查看內容文件在項目中的顯示方式
所以是的,我看到有些人通過右鍵單擊文件並“打開方式...”來解決這個問題,然后 MonoGame 管道工具選項會出現。 聽說有這個東西, MGCB Editor出來了。 它是管道的替代品嗎? 我應該怎么做才能獲得 Pipeline?
PS:我使用的是最新版本的 Mono,3.8.0
實際上,MonoGame 管道工具包含在 nuget 包dotnet-mgcb-editor 中。
到目前為止,該小組已更改為使用的那一個。 舊人的指示在這里。
聽說有這個東西,MGCB Editor出來了。 它是管道的替代品嗎? 我應該怎么做才能獲得 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\3.8.0.1641\dotnet-mgcb-editor\3.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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.