You Could just include one file in a folder or somewhere called License.txt which contains the Ms-RL But thats realy not a programming question. The admin should (must) close this question
A copy of the full licence text with each project (licence.txt).
A 'reference' to the licence file (as well as a small blurb) at the top of each code file.
Of course, throwing a bit of text in the top of each code file might be a simple concept but its not a trivial thing to do if you have multiple projects and files. So in the end I whipped up a small tool to do it for me.
Copy your code to a staging area (I use RoboCopy).
Crank up the Licence Inserter Tool and have it 'embed' a bit of text (which you write once) into the top of every file you want the reference to appear in.
Check or test the end result of the licence embedding process, and you're good to go.
The program automatically 'wraps' your text in the correct commenting syntax for the file type.
发布评论
评论(2)
您可以只在文件夹或名为 License.txt 的位置包含一个文件,其中包含 Ms-RL
但这确实不是一个编程问题。管理员应该(必须)关闭这个问题
You Could just include one file in a folder or somewhere called License.txt which contains the Ms-RL
But thats realy not a programming question. The admin should (must) close this question
最后,我采用了 GNU GPL 类型的方法:
当然,在每个代码文件的顶部添加一些文本可能是一个简单的概念,但如果您有多个项目和文件,那么这并不是一件小事。所以最后我想出了一个小工具来帮我做到这一点。
在这里获取它:http://www.morphological.geek.nz/MorphologicalLicenceInserter/default。 aspx(99Kb,完整源代码,在 Ms-RL 下发布)。
如何使用它:
该程序会自动用适合该文件类型的正确注释语法“包装”您的文本。
In the end I took the GNU GPL type approach:
Of course, throwing a bit of text in the top of each code file might be a simple concept but its not a trivial thing to do if you have multiple projects and files. So in the end I whipped up a small tool to do it for me.
Get it here: http://www.morphological.geek.nz/MorphologicalLicenceInserter/default.aspx (99Kb, full source code, released under Ms-RL).
How to use it:
The program automatically 'wraps' your text in the correct commenting syntax for the file type.