简体   繁体   English

在Visual Studio Professional 2013中实现Bulid SQLite-Net扩展,但未成功

[英]Bulid SQLite-Net Extensions in visual studio professional 2013 but not successful

I am new to windows app and I am going to build the sqlite-net extension project to .dll file in order to make the models have the relationship attribute of one-to-many, one-to-one, many-to-many. 我是Windows应用程序的新手,我打算将sqlite-net扩展项目构建为.dll文件,以使模型具有一对多,一对一,多对多的关系属性。 。

Link: https://bitbucket.org/twincoders/sqlite-net-extensions 链接: https//bitbucket.org/twincoders/sqlite-net-extensions

This is the info that it shows when I open the project in visual studio 2013. 这是我在Visual Studio 2013中打开项目时显示的信息。

Unsupported 不支持

This version of Visual Studio is unable to open the following projects. 此版本的Visual Studio无法打开以下项目。 The project types may not be installed or this version of Visual Studio may not support them. 可能未安装项目类型,或者此版本的Visual Studio可能不支持它们。 For more information on enabling these project types or otherwise migrating your assets, please see the details in the "Migration Report" displayed after clicking OK. 有关启用这些项目类型或以其他方式迁移资产的更多信息,请单击“确定”后,在显示的“迁移报告”中查看详细信息。 - IntegrationTests.Touch-MvvmCross, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\IntegrationTests.Touch\\IntegrationTests.Touch-MvvmCross.csproj" - IntegrationTests.Touch-PCL, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\IntegrationTests.Touch\\IntegrationTests.Touch-PCL.csproj" -IntegrationTests.Touch-MvvmCross,“ C:\\ Users \\ ** \\ Downloads \\ sqlite-net-extensions \\ sqlite-net-extensions \\ IntegrationTests.Touch \\ IntegrationTests.Touch-MvvmCross.csproj”-IntegrationTests.Touch-PCL,“ C:\\用户\\ ** \\下载\\ sqlite的净扩展\\ sqlite的净扩展\\ IntegrationTests.Touch \\ IntegrationTests.Touch-PCL.csproj”

No changes required These projects can be opened in Visual Studio 2013, Visual Studio 2012, and Visual Studio 2010 SP1 without changing them. 无需更改这些项目可以在Visual Studio 2013,Visual Studio 2012和Visual Studio 2010 SP1中打开,而无需对其进行更改。 - Tests, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\Tests\\Tests.csproj" - MvvmCross, "MvvmCross" - SQLiteNetExtensions-MvvmCross, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\SQLiteNetExtensions\\SQLiteNetExtensions-MvvmCross.csproj" - SQLiteNetExtensions-PCL, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\SQLiteNetExtensions\\SQLiteNetExtensions-PCL.csproj" - SQLiteNetExtensions, "C:\\Users\\**\\Downloads\\sqlite-net-extensions\\sqlite-net-extensions\\SQLiteNetExtensions.sln" -测试,“ C:\\ Users \\ ** \\ Downloads \\ sqlite-net-extensions \\ sqlite-net-extensions \\ Tests \\ Tests.csproj”-MvvmCross,“ MvvmCross”-SQLiteNetExtensions-MvvmCross,“ C:\\ Users \\ * * \\ Downloads \\ sqlite-net-extensions \\ sqlite-net-extensions \\ SQLiteNetExtensions \\ SQLiteNetExtensions-MvvmCross.csproj“-SQLiteNetExtensions-PCL,” C:\\ Users \\ ** \\ Downloads \\ sqlite-net-extensions \\ sqlite-net- extensions \\ SQLiteNetExtensions \\ SQLiteNetExtensions-PCL.csproj”-SQLiteNetExtensions,“ C:\\ Users \\ ** \\ Downloads \\ sqlite-net-extensions \\ sqlite-net-extensions \\ SQLiteNetExtensions.sln”

I try to build it and it shows some errors. 我尝试构建它,它显示了一些错误。 So I right click the project and download the missing packages. 因此,我右键单击该项目并下载缺少的软件包。 When I try to build it again, it shows these errors: 当我尝试再次构建它时,它显示以下错误: 在此处输入图片说明

Does anyone successfully bulid it to .dll file or anyone can fix the problems like these? 是否有人成功将其扩展到.dll文件,或者任何人都可以解决这些问题?

Many Thanks! 非常感谢!

The Integration test projects are MonoTouch projects, that won't open in Visual Studio unless you have Xamarin Business license installed in your PC. 集成测试项目是MonoTouch项目,除非您在PC中安装了Xamarin Business许可证,否则它们不会在Visual Studio中打开。

However, the SQLite-Net Extensions project is a standard PCL project and you will be able to compile it from Visual Studio without Xamarin. 但是,SQLite-Net Extensions项目是一个标准的PCL项目,您无需Xamarin就可以从Visual Studio对其进行编译。 The problem that you are describing is probably related to not having the SQLite-Net dependency downloaded. 您正在描述的问题可能与没有下载SQLite-Net依赖项有关。

Make sure that you have NuGet Package Manager plugin installed and restore NuGet packages for the project to restore the dependencies and it should work. 确保已安装NuGet软件包管理器插件,并为项目还原NuGet软件包以恢复依赖关系,并且该软件包应该可以工作。

You can also download the pre-compiled DLL from the Download page in the project page. 您也可以从项目页面的“ 下载”页面下载预编译的DLL。

I solved it with changing the build platform. 我通过更改构建平台解决了该问题。 Thx guys! 谢谢你们!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM