本文介绍了vsix newtonsoft不在包中(VS> 15.5)压缩包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我们有一个针对vsix项目的解决方案。直到15.4版的visual studio软件包都是用newtonsoft.json.dll生成的,然而,从那个版本开始,newsoft被排除在软件包之外。



我所看到的,这是因为"Microsoft.VsSDK.targets"引起的。位于" C:\Program文件(x86)\Microsoft视觉Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.targets"有一个新的排除规则
"< SuppressFromVsix Include =" Newtonsoft.Json.dll" />"" b $ b $
我们的解决方案需要NewtonSoft,如果我使用VS> = 15.5安装vsix,关于newtonsoft不在包中,它无法请求此程序集在%appdata%\ microsrosoft \visualstudio \extensions。



我们已完成的测试:

我从VsSDK中删除了此排除项。目标,它的工作原理是因为newtonsoft被插入到包中。
$


我已经在清单的Assets上插入了程序集,但是没有插入程序集,所以它失败了。 br />


我们如何解决这个问题,考虑到我们不打算在构建机器上更改SDK.targets,因为它会在开发人员机器中失败。 />


是否可以在资产中添加相对路径?如果有,怎么样?因为我试过并且没有插入newtonsoft。



谢谢你,b
HugoLourenço

解决方案

Hi all,

We have a solution for vsix projects. Until version 15.4 of visual studio packages were produced with newtonsoft.json.dll, however, since that version, newsoft were excluded from the package.

For what I have seen, this is caused because "Microsoft.VsSDK.targets" located in "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\VSSDK\Microsoft.VsSDK.targets" has a new exclusion rule "<SuppressFromVsix Include="Newtonsoft.Json.dll" />"

Our solution needs NewtonSoft, if I install vsix with VS >=15.5, regarding newtonsoft isn't in package, it fails requesting this assembly in %appdata%\microsoft\visualstudio\extensions.

Tests we have done:
I remove this exclusion from VsSDK.targets, and it works because newtonsoft is inserted on package.

I have inserted the assembly on Assets of manifest, but assembly is not inserted, so, it fails.

How can we solve that, taking in consideration we don't wan't to change the SDK.targets on build machine because it will fail in developer machine.

Is it possible add relative path in Assets? if yes, how? because I have tried and newtonsoft it wasn't inserted.

Thank you,
Hugo Lourenço

解决方案


这篇关于vsix newtonsoft不在包中(VS&gt; 15.5)压缩包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-12 16:32