使用Submodule管理SilkyUIFramework和SilkyUIAnalyzer引用 #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概述
通过git的submodule功能来管理SilkyUIFramework和SilkyUIAnalyzer引用
对于已克隆并配置好平行目录下的SilkyUIFramework和SilkyUIAnalyzer项目的开发者来说,并不需要作出任何更改
对于该仓库的克隆和配置依旧可以使用之前的方法,即分别克隆ImproveGame、SilkyUIFramework和SilkyUIAnalyzer,但该PR提供了一种更方便的配置方案:
在Git Bash或终端中运行以下命令:
git clone --recurse-submodules https://github.com/ForOne-Club/ImproveGame.git cd ImproveGame .\CreateLinks.bat即通过
--recurse-submodules克隆该仓库以及连接到的子仓库,并通过CreateLinks.bat批处理文件创建文件链接。以上命令执行后,可以直接打开.sln文件编译有什么好处?
使初次克隆更加方便,因为不再需要分别克隆三个仓库,且自动连接到SilkyUIFramework的preview分支,不用自己选了
对于任何想要克隆仓库下来用于学习的(如果有的话?),他们不会被搞得一头雾水了
有什么坏处?
由于把SilkyUIFramework和SilkyUIAnalyzer都放到了ImproveGame下,这两个文件夹里的fx文件也会被紫幽ModBuilder识别并编译成xnb文件,导致一些重名fx冲突。解决方法或许只有fork紫幽的ModBuilder项目,然后添加一个“排除某些文件夹下的资源文件”的功能