1
我需要在ubuntu上編譯c#.sln文件。xbuild錯誤建立* .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文件。
還是不可能?
plz幫助我
這仍然是這種情況?我知道他們已經實現了PresentationCore,但是在我的Ubuntu安裝中找不到它:/ http://www.go-mono.com/status/status.aspx?reference=4.0&profile=4.5&assembly=PresentationCore – EralpB
仍然是這樣的情況下http ://www.mono-project.com/docs/gui/wpf/ @EralpB – TheNextman