简体   繁体   English

无法在 Mono 上编译 MojoPortal:/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5):错误 MSB3073

[英]Can't Compile MojoPortal on Mono: /usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3073

I'm trying to compile MojoPortal on Linux for MySQL for Mono.我正在尝试在 Linux 上为 Mono 为 MySQL 编译 MojoPortal。 My aim is to be able to be able to create a web application that runs on both Windows and Linux servers using Microsoft technologies.我的目标是能够使用 Microsoft 技术创建在 Windows 和 Linux 服务器上运行的 Web 应用程序。 I'm fully aware that MojoPortal hasn't supported Mono officially for years , but due to some... complicated circumstances , I can't just build my application in ASP.NET Mono or .NET Core directly.我很清楚 MojoPortal 多年来一直没有正式支持 Mono ,但是由于一些......复杂的情况,我不能直接在 ASP.NET Mono 或 .NET Core 中构建我的应用程序。 Nor can I just write the application in PHP or any other server-side technology that is proven to work on both platforms.我也不能只用 PHP 或任何其他被证明可以在两个平台上工作的服务器端技术来编写应用程序。

For this project, I'm using the latest stable version of MojoPortal obtained from the official GitHub repository.对于这个项目,我使用从官方 GitHub 存储库获得的 MojoPortal 的最新稳定版本。

I've gotten as far as fixing the majority of dependencies for the various projects.我已经修复了各种项目的大部分依赖项。 There doesn't appear to be any other errors in the program other than this one when I try to run it normally in Debug Mode:当我尝试在调试模式下正常运行程序时,除了这个错误之外,程序中似乎没有任何其他错误:

/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB3073: The command "if "Debug" == "Release - SQLite" xcopy /s /y /d "/home/callum/Working/mojoportal/Web/data/sqlitedb/sqlite3.dll" "/home/callum/Working/mojoportal/Web/bin/"
if "Debug" == "Debug - SQLite" xcopy /s /y /d "/home/callum/Working/mojoportal/Web/data/sqlitedb/sqlite3.dll" "/home/callum/Working/mojoportal/Web/bin/"" exited with code 2. (MSB3073) (mojoPortal.Web)

Looking at it, it appears to be complaining about the SQLite packages, but I don't want to use SQLite;看着它,它似乎在抱怨 SQLite 包,但我不想使用 SQLite; I want to use MySQL!我想用MySQL! I've been working my way through all of the various MySQL build modes, but nothing seems to be working.我一直在研究所有各种 MySQL 构建模式,但似乎没有任何效果。 What should I do?我该怎么办?

mojoPortal doesn't support running on Linux w/ mono anymore and hasn't for several years. mojoPortal 不再支持在带有单声道的 Linux 上运行,并且已经有好几年了。 That doesn't mean it will not work, just that the development team doesn't test or target Mono at all.这并不意味着它不会工作,只是开发团队根本不测试或针对 Mono。

Make sure you are building against the MySQL data layer and not the sqlite layer.确保您是针对 MySQL 数据层而不是 sqlite 层构建的。 From there, be sure you aren't deploying the sqlite3.dll to your server.从那里开始,确保您没有将 sqlite3.dll 部署到您的服务器。 It could be that you are building against the MySQL data layer but have the sqlite3.dll in your files so Mono is trying to JIT build it.可能是您正在针对 MySQL 数据层进行构建,但您的文件中有 sqlite3.dll,因此 Mono 正在尝试 JIT 构建它。

Hope this helps,希望这可以帮助,
Joe

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MSBuild \\ 12.0 \\ bin \\ Microsoft.Common.CurrentVersion.targets(3243,9):错误MSB4094 - MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(3243,9): error MSB4094 在kali linux 2020 上的monoDevelop IDE 中找不到“/usr/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets” - “/usr/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.CSharp.Core.targets” was not found in monoDevelop IDE on kali linux 2020 MSB3073错误代码9009 - MSB3073 error code 9009 VS 2017 for Mac错误MSB3073 - VS 2017 for Mac Error MSB3073 错误MSB3073:命令““ C:\\ Program Files(x86)\\ Microsoft Xbox 360 SDK \\ bin \\ win32 \\ xbreboot.exe”退出,代码为1 - error MSB3073: The command “”C:\Program Files (x86)\Microsoft Xbox 360 SDK\bin\win32\xbreboot.exe“” exited with code 1 错误 MSB3073:命令“npm install”以代码 1 退出 - error MSB3073: The command "npm install" exited with code 1 Visual Studio post build事件返回错误MSB3073 - Visual Studio post build event returns error MSB3073 Devops 构建管道 - 错误 MSB3073:命令 XCOPY - Devops Build Pipeline - Error MSB3073: The command XCOPY 错误MSB3073以代码1退出并且无法加载源index.json的服务索引 - Error MSB3073 Exited With Code 1 and unable to load the service index for source index.json 生成后事件触发错误MSB3073,代码9009退出 - Post build event triggers error MSB3073 exited with code 9009
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM