打开解决方案文件(.sln)时强制打开文件 [英] Force a file to open when a solution file (.sln) is opened

查看:281
本文介绍了打开解决方案文件(.sln)时强制打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Visual Studio将打开的文件存储并保存在它生成的*.user文件中,但是不应将这些文件签入TFS或在团队之间共享.

I know that Visual Studio stores and persists opened files in the *.user files that it generates, but these files are not supposed to be checked in to TFS or shared between a team.

我们在TFS中的许多解决方案中都有README.md个文件,这些文件是解决方案项".我想要的是,在打开解决方案时,如果尚未打开README.md文件,则将其打开. (模仿了GitHub在浏览到项目主页时如何向您显示自述文件,但这严格来说是TFS和Visual Studio.)文档对我们来说是巨大的,因此我们想强制将其显示给任何打开解决方案的人,很难错过.

We have README.md files that are "solution items" in a lot of our solutions in TFS. What I want is, when a solution is opened, have the README.md file open if it is not open already. (Sort of mimicking how GitHub shows you the readme file when you browse to the project homepage, but this is strictly TFS and Visual Studio.) Documentation is huge for us, so we want to forcibly display it to anyone who opens a solution, making it hard to miss.

.sln文件中的任何类型的配置行,在.csproj文件中的XML条目或扩展名,是否可能?我希望它可以在使用TFS的不同工作站之间持久存在(除非它只是一个扩展,在这种情况下我们都可以安装它).

Is this possible with any sort of configuration line in the .sln file, or an XML entry in a .csproj file, or possibly an extension? I would like this to be something that can persist between different workstations using TFS (unless it's just an extension, in which case we can all install that).

推荐答案

您可以自定义在为Visual Commander打开解决方案扩展名以打开README.md时,从解决方案目录中打开文件.

You can customize the Open a file from the solution directory on opening a solution extension for Visual Commander to open README.md.

这篇关于打开解决方案文件(.sln)时强制打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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