简体   繁体   English

为什么F#库没有dll版本?

[英]Why F# library not having dll version?

I have created f# library, Now I want to set some version number to the same. 我创建了f#库,现在我想将一些版本号设置为相同。 But it has no option to set the version number. 但它无法设置版本号。

If you're using Visual Studio, the project template should have added an AssemblyInfo.fs file to your project. 如果您使用的是Visual Studio,则项目模板应该已将AssemblyInfo.fs文件添加到项目中。 If it hasn't, you should probably check your Visual Studio installation, but you can add that file yourself. 如果没有,您应该检查Visual Studio安装,但您可以自己添加该文件。

If the file is already there, you can edit these attributues: 如果文件已经存在,您可以编辑这些属性:

[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]

If the file wasn't there, you can add these yourself, but you'll need to end the file with an expression: 如果文件不存在,您可以自己添加,但是您需要使用表达式结束文件:

do
    ()

Again, the template should already have added that. 同样,模板应该已经添加了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM