[英]Speed up F# compile with Reference Assembly
I thought I'd try out speeding up my compiles with Reference Assemblies.我想我会尝试使用 Reference Assemblies 加快编译速度。 So I add this to my projects:
所以我将它添加到我的项目中:
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
<Deterministic>true</Deterministic>
But get a nasty error for my F# projects:但是我的 F# 项目出现了一个严重的错误:
error: Expected file "obj\Debug\net5.0\ref\xyz.dll" does not exist.
It seems like F# doesn't support reference assemblies.似乎 F# 不支持参考程序集。
Will this be fixed?这会解决吗?
Is there a way to do this with F# signature files?有没有办法用 F# 签名文件做到这一点?
It appears that your are correct that the F# compiler does not support reference assemblies. F# 编译器不支持参考程序集似乎是正确的。 I could find no mention of them in the documentation of F# compiler options .
我在F# 编译器选项的文档中找不到任何提及它们。
There is an open feature request to add this support at https://github.com/dotnet/fsharp/issues/3066 .在https://github.com/dotnet/fsharp/issues/3066有一个开放的功能请求来添加此支持。 You could comment on that, if you think this would be a good feature to add to the F# compiler.
如果您认为这是添加到 F# 编译器的一个很好的功能,您可以对此发表评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.