Jetbrains Rider + Visual Studio WPF

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38791818/
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-13 13:53:45  来源:igfitidea点击:

Jetbrains Rider + Visual Studio WPF

c#wpfwinformsrider

提问by xetra11

I'm about to have a project with C# again. As I love using Jetbrains IDE's I came along Rider. The main problem for me is that I need a Windows Forms or WPF Designer for the GUI.

我即将有一个 C# 项目。由于我喜欢使用 Jetbrains IDE,因此我选择了 Rider。对我来说,主要问题是我需要一个用于 GUI 的 Windows 窗体或 WPF 设计器。

Is there any external software available for it or does anybody knows a convenient work pipeline to use Visual Studio only for WPF/WinForms and Rider as Code IDE?

是否有任何可用的外部软件或有人知道一个方便的工作管道来将 Visual Studio 仅用于 WPF/WinForms 和 Rider as Code IDE?

回答by Timo Salom?ki

There's no real integration between the two IDE's. As far as I know, Rider detects file changes the same way as Visual Studio, so if you really want to build the UI with Visual Studio and do the rest using Rider, you can do it with quite a smooth workflow.

两个 IDE 之间没有真正的集成。据我所知,Rider 检测文件更改的方式与 Visual Studio 相同,因此如果您真的想使用 Visual Studio 构建 UI 而使用 Rider 完成其余的工作,您可以通过非常流畅的工作流程来完成。

Also, it's worth it to learn to write WPFUI code by hand. Nowadays I mostly write my UI code by hand instead of using the designer. With Windows Formsapplications it's different since editing the *.designer.csfiles can be a bit of a pain by hand. It's doable though.

此外,学习WPF手动编写UI 代码也是值得的。现在我主要是手工编写我的 UI 代码,而不是使用设计器。对于Windows Forms应用程序,情况有所不同,因为*.designer.cs手动编辑文件可能有点麻烦。不过也是可行的。



Update (04/2018): Rider 2018.1 now includes a XAML preview tool for WPF projects. It's still under active development and the preview window is non-interactive but it's certainly better than nothing.

更新 (04/2018):Rider 2018.1 现在包含用于 WPF 项目的 XAML 预览工具。它仍在积极开发中,预览窗口是非交互式的,但总比没有好。