Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于自定义业务问题 #70

Open
lll19920323outlook opened this issue May 6, 2022 · 1 comment
Open

关于自定义业务问题 #70

lll19920323outlook opened this issue May 6, 2022 · 1 comment

Comments

@lll19920323outlook
Copy link

您好,我需要定时给SQL数据库插入一条记录,所以自己参照Demo写了一个定时任务,但不像Demo简单一个dll搞定,而是夹杂了EFCore,实体等多个项目引用,编译后有至少5,6个dll,当我打包后(包含了myconfig.json文件)在master中添加了任务后,点击启动提示缺少依赖的引用 package: 'runtime.win-x64.runtime.native.System.Data.SqlClient.sni', version: '4.4.0'
path: 'runtimes/win-x64/native/sni.dll' 等。这个是我少做了什么配置了吗?或者有更复杂点的Demo吗?我参考下

@hey-hoho
Copy link
Owner

试一下在.proj文件中加这一段,再重新打包试试:

<PropertyGroup>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants