gpt4 book ai didi

c# - xbuild 构建 *.sln 文件时出错

转载 作者:太空宇宙 更新时间:2023-11-03 21:41:18 26 4
gpt4 key购买 nike

我需要在 ubuntu 上编译 c# .sln 文件。

此文件是 ITU 眼动追踪器。他们基于window .net框架开发的。

但我需要在 ubuntu 上运行它。所以我尝试使用 xbuild 对其进行编译。

当我输入“xbuild GazeTracker.sln”时,出现如下错误。

                For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /usr/lib/mono/3.5, assembly named 'PresentationCore' not found.
Considered target framework dir /usr/lib/mono/2.0, assembly named 'PresentationCore' not found.
Considered target framework dir /usr/lib/mono/2.0, assembly named 'PresentationCore' not found.
For searchpath {PkgConfig}
Considered PresentationCore, but could not find in any pkg-config files.
For searchpath {GAC}
Considered PresentationCore, but could not find in the GAC.
For searchpath {RawFileName}
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/GTCommons/PresentationCore' as a file, but the file does not exist
For searchpath ../Debug/
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationCore' as a file, but the file does not exist
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationCore.exe' as a file, but the file does not exist
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationCore.dll' as a file, but the file does not exist
/usr/lib/mono/3.5/Microsoft.Common.targets: warning : Reference 'PresentationFramework' not resolved


For searchpath {CandidateAssemblyFiles}
Warning: {CandidateAssemblyFiles} not supported currently
For searchpath {HintPathFromItem}
HintPath attribute not found
For searchpath {TargetFrameworkDirectory}
Considered target framework dir /usr/lib/mono/3.5, assembly named 'PresentationFramework' not found.
Considered target framework dir /usr/lib/mono/2.0, assembly named 'PresentationFramework' not found.
Considered target framework dir /usr/lib/mono/2.0, assembly named 'PresentationFramework' not found.
For searchpath {PkgConfig}
Considered PresentationFramework, but could not find in any pkg-config files.
For searchpath {GAC}
Considered PresentationFramework, but could not find in the GAC.
For searchpath {RawFileName}
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/GTCommons/PresentationFramework' as a file, but the file does not exist
For searchpath ../Debug/
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationFramework' as a file, but the file does not exist
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationFramework.exe' as a file, but the file does not exist
Considered '/home/sabi/Gazetracker/gazetrackinglib-code-564-trunk/Debug/PresentationFramework.dll' as a file, but the file does not exist
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /usr/bin/gmcs execution started with arguments: /noconfig /debug:full /debug+ /keyfile:GTCommons.snk /optimize+ /out:obj/Debug/GTCommons.dll Commands/AutotuneCommands.cs Commands/CalibrationCommands.cs Commands/CameraCommands.cs Commands/TrackerViewerCommands.cs Converter.cs Events/CalibrationPointEventArgs.cs Events/CalibrationResultEventArgs.cs Commands.cs Enums.cs Events/StringEventArgs.cs GTPath.cs Properties/AssemblyInfo.cs Commands/SettingsCommands.cs Protocol.cs /target:library /define:"DEBUG;TRACE" /reference:/usr/lib/mono/2.0/System.dll /reference:/usr/lib/mono/2.0/System.Core.dll /reference:/usr/lib/mono/2.0/System.Drawing.dll /reference:/usr/lib/mono/2.0/System.Data.DataSetExtensions.dll /reference:/usr/lib/mono/2.0/System.Data.dll /reference:/usr/lib/mono/2.0/System.Xml.dll /reference:/usr/lib/mono/2.0/WindowsBase.dll /warn:4

我该如何解决这个问题并编译这个 .sln 文件。

还是不可能的?

请帮帮我

最佳答案

看起来解决方案引用了 PresentationCore/PresentationFramework - 即 Windows Presentation Foundation

WPF 未在 Mono 上实现,他们也没有这样做的计划 (WPF - Mono)。

您将需要为客户端 GUI 找到另一种实现方式(或自己制作一个!)。

关于c# - xbuild 构建 *.sln 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19173336/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com