加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Mono上用F#签署DLL的问题

发布时间:2020-12-14 01:51:52 所属栏目:Windows 来源:网络整理
导读:我试图在单声道F#中签署一个dll时遇到错误: $mono /usr/local/share/FSharp-2.0.0.0/bin/fsc.exe --target:library --keyfile:../../external/MyKeyFile.snk AssemblyInfo.fs ../../fs/FooBar.fs -o:FooBar.dll 没有生成DLL,我收到此错误: Microsoft
我试图在单声道F#中签署一个dll时遇到错误:

$mono /usr/local/share/FSharp-2.0.0.0/bin/fsc.exe
   --target:library 
   --keyfile:../../external/MyKeyFile.snk
   AssemblyInfo.fs
   ../../fs/FooBar.fs  
   -o:FooBar.dll

没有生成DLL,我收到此错误:

Microsoft (R) F# 2.0 Compiler build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved.`

error FS2014: A problem occurred writing the binary '': A call to StrongNameGetPublicKey failed (mscoree.dll)`

密钥文件是在Windows中生成的,这有什么不同吗?

更新:

使用Mono 2.6.4

$mono --version 

Mono JIT compiler version 2.6.4 (tarball Mon Jun 21 19:26:21 UTC 2010) 
Copyright (C) 2002-2010 Novell,Inc and Contributors. www.mono-project.com
TLS:           __thread
GC:            Included Boehm (with typed GC and Parallel Mark)
SIGSEGV:       altstack
Notifications: epoll
Architecture:  amd64
Disabled:      none

解决方法

看起来fsc是P / Invoking本机Windows API,它不可移植.您可能应该向F#团队提出问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读