gpt4 book ai didi

f# - 在 Mono 上的 F# 中签名 dll 的问题

转载 作者:行者123 更新时间:2023-12-04 19:20:46 25 4
gpt4 key购买 nike

我在尝试在单声道的 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)`

key 文件是在 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 native Windows API,不可移植。您可能应该向 F# 团队提出这个问题。

关于f# - 在 Mono 上的 F# 中签名 dll 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3733148/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com