c# - 如何在 Docker 中将文件夹路径作为运行参数传递
问题描述
这是我的码头文件
ENV filePath = "C:\newfiles\Prepayment_DB.accdb"
sourcePath = "C:\srcPath\"
destPath = "C:\destPath\"
FROM mcr.microsoft.com/dotnet/framework/sdk:3.5
COPY bin/ MbrRst/
WORKDIR MbrRst/Release
ENTRYPOINT ["RunApplication.exe", "oradbserv1", "krish", "one", $filePath, $sourcePath, $destPath]
当我尝试运行上面的代码时,它给了我错误
详细信息:给定的程序集名称或代码库无效。(来自 HRESULT 的异常:0x80131047)
我想在运行 exe 时将文件夹名称和文件作为输入传递。有人可以帮帮我吗?
提前致谢
解决方案
推荐阅读
- swift - SwiftUI:在 Xcode > 13 beta 2 中将 TextField 绑定到 Decimal 类型的属性
- r - ggplot2:将几何大小映射到数据中的组均值
- android - 三星设备上的 ANR
- javascript - Firefox 扩展,上下文识别
- python - 处理重复的用户名和电子邮件 FastAPI
- flutter - Flutter - 如何创建响应式 CircleAvatar 小部件?
- javascript - 模拟时钟的指针无法正常工作
- python - Django Rest Forest (DRF) 中的 Python/Django 'OperationalError:no such table: main.auth_user_old'
- python - 使用 Pandas 在 Python 中进行数据预处理
- javascript - npm puppeter 包返回有关 node_package 空间的错误