deepin上Rider使用C#的问题
Tofloor
poster avatar
130******12
deepin
2019-11-20 07:34
Author
我看了下,文件(红色部分)明明是存在的,但是它死活要报不存在,让我很头痛,完全找不到病因!

Project 'WpfApp1' load finished with warnings
                        The imported project "/usr/share/dotnet/sdk/3.0.100/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.WinFX.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.  /usr/share/dotnet/sdk/3.0.100/Sdks/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.targets at (26:3)
                        Windows is required to build Windows desktop applications. at (59:5)
                       

下午11:32        MSBuild targets were not found: Make sure that all SDKs required for projects in this solution are installed, or specify a different MSBuild version in settings.


Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-11-20 07:41
#1
wpf才开源,这么快就可以用在 linux 上,和 dotnet core 3.0 一起工作了么?
Reply View the author
avatar
130******12
deepin
2019-11-20 07:46
#2
lidanger 发表于 2019-11-19 23:41
wpf才开源,这么快就可以用在 linux 上,和 dotnet core 3.0 一起工作了么?

用winfrom也是一样啊,报同样的错
Reply View the author
avatar
走钢丝
deepin
2019-11-20 07:52
#3
zfdllh 发表于 2019-11-19 23:46
用winfrom也是一样啊,报同样的错

我记得,虽然 dotnet 跨平台了,但这两项界面技术,目前只能在 Windows 下运营,不过由于开源了,所以未来可能会兼容 Linux。
Reply View the author
avatar
走钢丝
deepin
2019-11-20 08:08
#4
本帖最后由 lidanger 于 2019-11-20 09:04 编辑

不过github 上倒是有不少开源 dotnet core 界面库可以使用。我以前看过 qmlnet,但没用过。

Reply View the author
avatar
testpassword
deepin
2019-11-20 17:55
#5
winform 和 wpf 仅限于 windows

楼主你好歹也搞清楚了再用

另外,微软也没有打算要让这两项技术跨平台
Reply View the author
avatar
c***u@126.com
deepin
2021-03-20 22:03
#6

如果用wpf跨平台,可以使用开源项目AvaloniaUI,是类wpf

Reply View the author