如何在不使用 Visual Studio 的情况下创建 WPF 项目?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/44153523/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 15:36:16  来源:igfitidea点击:

How to create a WPF project without using Visual Studio?

wpfvisual-studio-code

提问by Mohammad Daliri

How can I create (and run) a new WPF (Windows Presentation Foundation) project without having Visual Studio installed? My primary editor is VS code but it does not have the feature for creating new projects from templates?

如何在没有安装 Visual Studio 的情况下创建(和运行)新的 WPF(Windows Presentation Foundation)项目?我的主要编辑器是 VS 代码,但它没有从模板创建新项目的功能?

采纳答案by LuvForAirplanes

VS Code is designed more to host Console based apps such as .Net Core, .Net Framework Console, and Node.js. If you would like to develop WPF apps look for a different solution. I highly recommend using Visual Studioby Microsoft. Just my opinion... -Micah Stauffer

VS Code 旨在托管基于控制台的应用程序,例如 .Net Core、.Net Framework Console 和 Node.js。如果您想开发 WPF 应用程序,请寻找不同的解决方案。我强烈推荐使用Microsoft 的Visual Studio。只是我的意见...-Micah Stauffer

回答by Marek Borecki

write in terminal "dotnet new" and check the list. Class library is at "dotnet new classlib", but I'm interested in how to create WPF applications too, because there isn't that comand in the list.

在终端“dotnet new”中写入并检查列表。类库位于“dotnet new classlib”,但我对如何创建 WPF 应用程序也很感兴趣,因为列表中没有那个命令。