项目不显示“导入项目”引用的文件(System.Data.SQLite解决方案)
我在加载 System.Data.SQLite 源时遇到一些问题解决方案。 System.Data.SQLite.2010
项目似乎是空的,实际上它不包含对文件的引用。但是,项目文件包含如下字符串:
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.References.targets" />
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Properties.targets" />
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" />
实际上,其中包含对文件的引用。但看起来我的 VS 忽略了这个 Import Project
指令。有什么我想做的事吗?或者也许我需要安装一些插件?解决方案已从 VS 成功构建,我只想查看文件,以便可以更轻松地在源代码上导航。
I have some trouble with loading a System.Data.SQLite source solution. The System.Data.SQLite.2010
project seems to be empty, it is, indeed, does not contain references to files. However project file contains strings like these:
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.References.targets" />
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Properties.targets" />
<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" />
which, actually, contain references to files. But it's looks like this Import Project
instructions are ignored by my VS. Is there is something I miss to do? Or maybe I need some plugin to install? Solution is builded successfully from VS, I just want to see files so I can navigate more easily on source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您没有丢失任何插件,VS 也没有忽略
Import
指令。构建项目时使用导入指令。如果您构建该项目,它会构建得很好并且具有可以在 System.Data.SQLite*.cs 中找到的所有类。
我想这样做的原因之一是为了保护“核心”框架文件免遭意外修改。
如果您想在解决方案文件夹中查看这些文件 -
ItemGroup
节点并将其粘贴到 System.Data.SQLite.2010.csproj
并保存 csproj 文件。这是我的 csproj 经过上述修改后的样子:
You're not missing any plugins, nor is VS ignoring the
Import
directives. The import directives are used when build the project.If you build the project, it builds fine and has all the classes that can be found in System.Data.SQLite*.cs.
I guess one of the reasons why this was done to protect 'core' framework files from accidental modification.
If you would like to see those files in your solution folder -
ItemGroup
nodes and paste them in System.Data.SQLite.2010.csproj<Import Project="$(MSBuildProjectDirectory)\System.Data.SQLite.Files.targets" />
and save the csproj file.Here's what my csproj looks after above modification: