UWP排除要复制/包含在程序包中的依赖项DLL [英] UWP exclude dependency DLL to be copied / included into package

查看:60
本文介绍了UWP排除要复制/包含在程序包中的依赖项DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我完成了一个xamarin表单应用程序,并提供给Android Market.没问题,一切都很好.它是活的.我在调试和发布中测试了UWP.创建了程序包,并使用该程序包进行了本地应用认证测试,所有检查均呈绿色,通过了.我创建了提交并发布到Microsoft Store.该消息未通过认证.

I completed a xamarin forms application and provided to Android Market. No problem everything worked fine. it is live. I tested UWP in debug and release. Created package and made local app certification test using the package, all checks green, passed. I created submission and published into Microsoft Store. it failed certification with the message.

调试配置测试

FAILED
Debug configuration
Error Found: The debug configuration test detected the following errors:
The binary Syncfusion.SfNumericTextBox.XForms.dll is built in debug mode.
Impact if not fixed: Windows Store doesn’t allow a debug version of an app.
How to fix: Please make sure the app isn’t linking to any debug versions of a framework and it is built with release configuration with optimization enabled. If this is a managed app please make sure you have installed the correct version of .NET framework.

我根本没有将此软件包安装到我的项目中.但是,还有来自syncfusion的另一个名为sfDatagrid的程序包,该程序包将此dll作为依赖项.因此,它为我的XF和UWP项目添加了参考.我根本不需要并使用此dll.那就是为什么我尝试关注

I didnt install this package at all into my project. however there is another package from syncfusion called sfDatagrid which has this dll as dependency. So it adds a reference into my XF and UWP projects. I dont need and use this dll at all. thats why I tried followings

  1. project.json 中删除引用和nuget引用在两个项目上都归档.删除bin,每个项目(XF和UWP)下的obj文件夹,清理的temp文件夹.重建整个解决方案.

  1. remove the references and nuget references from project.json file on both projects. deleted bin, obj folders under each project (XF and UWP), cleaned temp folder. Rebuild entire solution.

第一次失败.所以我让它引用在那里,但将 local copy 设置为"false".它也没有用.

first failed. so I let it reference to be there but set local copy as "false". It also didnt work.

这显然是软件包提供程序的错误.我已经报告了此事,他们已经注册为事件,但是即使他们解决了,他们也会在月底发布较新的版本.所以我的问题是创建软件包时,我是否可以告诉编译器排除此dll?

This is obviously error with the package provider. I already reported it and they registered as an incident but they will publish newer version at the end of the month even if they fix. So my question is Is there anyway that I can tell compiler to exclude this dll when creating package?

在Android中,可能是因为我使用的是完全链接",因此它没有该dll的情况下就排除了该dll.

In Android probably since I am using "Full Linking", it excludes this dll while there is no reference to this dll.

在UWP中,我确实使用使用本机工具Chain选项编译,如下所示,但显然它不能完成相同的工作.

In UWP, I do use Compile with Native tool Chain option as shown below but obviously it doesnt do the same job.

推荐答案

Syncfusion重新发布了带有DLL发行版的NuGet软件包.

Syncfusion has reposted the NuGet package with the release version of the DLL.

在构建之前,请确保清除您的NuGet缓存( https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache ).

Be sure to clear your NuGet cache before building (https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache).

这篇关于UWP排除要复制/包含在程序包中的依赖项DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆