IIS7快捷方式重定向到原始位置

发布于 2024-10-18 00:12:32 字数 306 浏览 6 评论 0 原文

我正在使用 git 来测试我正在开发的 dojo 小部件。我正在与某人在 *nix 机器上开发这个程序,并且我遇到了如何将所有内容组合在一起的问题。

dojo 按文件夹约定组织,而 git 希望所有内容都位于单个文件夹中。 *nix 上的另一个编码器使用符号链接将文件放置在 dojo 文件夹结构中需要的位置,但在 Windows 上创建这些文件的快捷方式(我认为这与 Windows 等效)会导致 IIS 重定向到快捷方式原始位置破坏文件内的所有相对路径。有没有更合适的方法来做到这一点,因为从 git 存储库中将文件粘贴到需要的位置是 PITA。有没有更好的方法来做到这一点。

I'm using git to test out a dojo widget I'm developing. I am developing this with someone on a *nix machine and I'm running into issues with how everything is put together.

dojo is organized by a folder convention and git wants everything to be inside a single folder. The other coder on *nix is using symlinks to place the files where they need to be within the dojo folder structure but creating shortcuts to these files on windows, which i see as being the windows equivalent, causes IIS to redirect to the shortcut origin location breaking all of the relative paths within the file. Is there a more proper way to do this since coping pasting the files where they need to be from the git repository is a PITA. Is there a better way to do this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

物价感观 2024-10-25 00:12:32

您可以尝试在 Windows 中使用实际的符号或硬链接,它可能会给您带来更好的运气。

根据操作系统的不同,您可能已经拥有此功能(例如 Windows 7 中的 mklink 命令,我相信 Vista 中也有);在 Windows XP 中,有一个 junction 命令可用作 powertoy(但联结仅适用于目录):http://technet.microsoft.com/en-us/sysinternals/bb896768

还有一些 shell 扩展可以通过右键单击菜单项来访问符号链接/连接功能explorer:

You could try using actual symbolic or hard links in Windows, it might give you better luck.

Depending on OS, you may already have this functionality available (e.g. the mklink command in Windows 7 and I believe Vista as well); in Windows XP there is a junction command available as a powertoy (but junctions apply only to directories): http://technet.microsoft.com/en-us/sysinternals/bb896768

There are also a few shell extensions that enable access to symlink/junction functionality as right-click menu items in explorer:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文