有没有办法避免安装诸如“SQLite for WinRT"之类的 VS 扩展?每个团队成员? [英] Is there a way to avoid installing VS extensions like "SQLite for WinRT" for each teammember?

查看:29
本文介绍了有没有办法避免安装诸如“SQLite for WinRT"之类的 VS 扩展?每个团队成员?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在开发一个 Windows Store C#/XAML 应用程序,它必须(除其他外)与 SQLite 数据库交互并显示特定 GPS 坐标的 Bing 地图.

We are developing a Windows Store C#/XAML application that has to (among other things) interact with SQLite database and display Bing maps for specific GPS coordinates.

官方"方法似乎是安装两个 Visual Studio 扩展 - Windows 运行时的 SQLiteBing Maps SDK.这种方法有两个问题:

"Official" way to do this seems to be to install two Visual Studio extensions - SQLite for Windows Runtime and Bing Maps SDK. I have two problems with this approach:

  • 有必要将它们分别安装在每个团队成员的机器上.随着新 PC、VS 重新安装以及项目人员的进出,这会很快变得乏味.
  • 更新.假设我安装了特定版本的扩展并提交了引用该特定版本的项目.然后,一个新的团队成员进来了,我也需要将扩展​​安装到他的 PC 上.但是,与此同时,Microsoft 发布了更新版本的扩展程序,我无法下载旧版本 - 现在,由于一个新人,每个人也必须更新他们的扩展程序.

理想情况下,我想做的是以某种方式将这些扩展放到 SVN 中.这样,它们只存储在一个地方,并且不会有持续安装和更新的麻烦.我能够从 SQLite 扩展中提取 .dll 文件,但是使用 Bing Maps,有一个 .winmd 文件以及一个本机 .dll.我无法直接引用 .winmd,动态加载它,如 我明白了,不可能.

Ideally, what I'd like to do is to somehow put these extensions to SVN. That way, they are stored in one place only and there is no hassle with constant installations and updates. I was able to extract .dll files from SQLite extension, but with the Bing Maps, there is a .winmd file as well as a native .dll. I am unable to reference .winmd directly, and loading it dynamically is, as I've come to understand, not possible.

有什么方法可以实现我想要的并避免所有概述的问题吗?我希望我忽略了一些东西,因为我无法相信微软会做出如此愚蠢的决定......

Is there some way to achieve what I want and avoid all outlined problems? I hope I am overlooking something, because I can't believe Microsoft would decide on something so stupid...

推荐答案

是的,有办法.

您将在 Oren Novotny 的这篇博文中找到解释和示例:http://novotny.org/blog/how-to-use-extension-sdks-per-project

You will find the explanation and an example in this blog post by Oren Novotny: http://novotny.org/blog/how-to-use-extension-sdks-per-project

感谢这篇文章的作者,它为我节省了大量的工作.在具有 Bing Maps 的项目中,在 Visual Studio Online 中尝试使用 TFSBuild 服务进行 CI 时,我遇到了同样的问题.我们无法在集成服务器中安装任何东西,因为它是基于云的,所以我必须进行很长时间的搜索才能找到解决方案.它涉及修改 .sln 文件并将文件置于源代码管理中以保持精确的文件夹结构,但是当您正确执行所有这些操作时,它就像一个魅力.

Kudos to the writer of this post, it saved me tons of work. I had the same problem when trying to do CI with TFSBuild service in Visual Studio Online in a project that had Bing Maps. We can't install anything in the integration server because is cloud based, so I had to do a very long search to find the solution. It involves modifying the .sln file and putting the files in source control maintaining a precise folder structure, but when you do all this correctly it works like a charm.

这篇关于有没有办法避免安装诸如“SQLite for WinRT"之类的 VS 扩展?每个团队成员?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆