bin - 忽略或不忽略
bin - to ignore or not to ignore
只是一个简短的问题,因为它让我很烦。 :)
VS 的许多 .gitignore 模板使用 [Bb]in/
之类的东西忽略 bin,如果这是已编译项目的 'output',这是可以理解的。
最近在一个 Umbraco 项目上,更多的 DLL 被添加到垃圾箱中,现在我不得不四处寻找正确的 DLL 的正确版本。
现在确定,项目所需的BIN中的程序集应该在版本控制下?
如果有错误修复或我们需要来自提供商的更新 DLL(已经发生),那么提交这个更新文件以及相关更改肯定有意义吗?
这种方式在新机器上(也是最近发生的)可以签出存储库并且无需去寻找支持文件就可以正常工作。
我是一个布偶,只是没有得到它还是我错过了一个技巧?
如果您无法通过包管理器以其他方式获得这些依赖项,如评论所述,那么添加它们似乎是记录在案的方式:
Umbraco "Visual Studio Setup"确实包括:
Now that you've added your own touch to your site, and thoroughly tested of course, you're ready to deploy to your Umbraco Cloud development site (the destination might vary depending on the plan you chose).
The key thing to remember is that you'll commit anything that is required by your site to the local git repository and will not commit source or project files.
That means you'll add .dll
files to the git repository (which is found within the *.Web
Project), which is typically something you wouldn't do with a source code repository.
详细的在Umbraco "Git - what should be committed" page:
The cloned git repository from Umbraco Cloud comes with its own .gitignore
so files that should NOT be committed are already handled.
As a rule of thumb all files that are required to run the Umbraco site should be committed to the git repository in the *.Web
folder and deployed to Umbraco Cloud. This includes assemblies (*.dll
).
Please note that its especially important to commit the files under the *.Web/data/
folder as these files are the serialized versions of the meta data (Document Types, Data Types, Media Types, Member Types, Member Groups, Templates and currently also Dictionary Items) for the site.
只是一个简短的问题,因为它让我很烦。 :)
VS 的许多 .gitignore 模板使用 [Bb]in/
之类的东西忽略 bin,如果这是已编译项目的 'output',这是可以理解的。
最近在一个 Umbraco 项目上,更多的 DLL 被添加到垃圾箱中,现在我不得不四处寻找正确的 DLL 的正确版本。
现在确定,项目所需的BIN中的程序集应该在版本控制下? 如果有错误修复或我们需要来自提供商的更新 DLL(已经发生),那么提交这个更新文件以及相关更改肯定有意义吗?
这种方式在新机器上(也是最近发生的)可以签出存储库并且无需去寻找支持文件就可以正常工作。
我是一个布偶,只是没有得到它还是我错过了一个技巧?
如果您无法通过包管理器以其他方式获得这些依赖项,如评论所述,那么添加它们似乎是记录在案的方式:
Umbraco "Visual Studio Setup"确实包括:
Now that you've added your own touch to your site, and thoroughly tested of course, you're ready to deploy to your Umbraco Cloud development site (the destination might vary depending on the plan you chose).
The key thing to remember is that you'll commit anything that is required by your site to the local git repository and will not commit source or project files.
That means you'll add.dll
files to the git repository (which is found within the*.Web
Project), which is typically something you wouldn't do with a source code repository.
详细的在Umbraco "Git - what should be committed" page:
The cloned git repository from Umbraco Cloud comes with its own
.gitignore
so files that should NOT be committed are already handled.As a rule of thumb all files that are required to run the Umbraco site should be committed to the git repository in the
*.Web
folder and deployed to Umbraco Cloud. This includes assemblies (*.dll
).Please note that its especially important to commit the files under the
*.Web/data/
folder as these files are the serialized versions of the meta data (Document Types, Data Types, Media Types, Member Types, Member Groups, Templates and currently also Dictionary Items) for the site.