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

升到1.7之后 An assembly specified in the application dependencies manifest (BXJ.WeAppApi.deps.json) was not found: package: 'Microsoft.Data.SqlClient.SNI.runtime', version: '2.0.0' path: 'runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.pdb' #398

Closed
gwhzh21 opened this issue Aug 1, 2020 · 10 comments

Comments

@gwhzh21
Copy link

gwhzh21 commented Aug 1, 2020

主要的问题是,当我使用了独立发布之后,运行不起来了。我觉得应该不能在此提这个问题
我的配置是
.net core 3.1
独立
win-64
然后运行exe,会提示。
An assembly specified in the application dependencies manifest (BXJ.WeAppApi.deps.json) was not found:
package: 'Microsoft.Data.SqlClient.SNI.runtime', version: '2.0.0'
path: 'runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.pdb'
老是这个提示

@2881099
Copy link
Collaborator

2881099 commented Aug 1, 2020

freesql.provider.sqlserver 1.7.0 的adonet 换成了 microsoft.data.sqlclient,写个新的 coreapp31 demo 发布试试看会不会这样。

@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

就是最新建的。我还还没有写数据库的一行代码。连注入的代码都没有写。

@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

我换成了1.6就可以了。

@2881099
Copy link
Collaborator

2881099 commented Aug 1, 2020

没办法微软推荐新的 adonet,被迫换的。

因为市面上其他开源项目换了,我们不换的话交互会有问题

@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

那看来要去那边提问了。

@2881099
Copy link
Collaborator

2881099 commented Aug 1, 2020

你先问看怎么解决,有办法的话回复到这里。

实在没办法的话,我后面发布多一个 freesql.provider.sqlserverForSystem 包

@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

没事,我新建一个,直接用那个。看看有没有问题。

@gwhzh21 gwhzh21 closed this as completed Aug 1, 2020
@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

我已经看到了。sni加载不了。很多人报。

@gwhzh21
Copy link
Author

gwhzh21 commented Aug 1, 2020

遇到同样的问题,请参考此解决方案。
dotnet/SqlClient#612

@2881099
Copy link
Collaborator

2881099 commented Aug 1, 2020

<PropertyGroup>
      <IncludeSymbolsInSingleFile>true</IncludeSymbolsInSingleFile>
</PropertyGroup>

@2881099 2881099 changed the title 升到1.7之后,无法运行了 升到1.7之后 An assembly specified in the application dependencies manifest (BXJ.WeAppApi.deps.json) was not found: package: 'Microsoft.Data.SqlClient.SNI.runtime', version: '2.0.0' path: 'runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.pdb' Aug 1, 2020
2881099 pushed a commit that referenced this issue Aug 3, 2020
2881099 pushed a commit that referenced this issue Aug 3, 2020
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