简体   繁体   English

如何在visual studio中调试nuget包

[英]How to debug nuget package in visual studio

I work on my own xamarin nuget package and I would like to know how to debug it in sample or any other project. 我在自己的xamarin nuget包上工作,我想知道如何在样本或任何其他项目中调试它。 Right know I have to create nuget package with symbols and then update the package in sample project. 我知道我必须使用符号创建nuget包,然后更新示例项目中的包。 In process of developing nuget package this is really time consuming. 在开发nuget包的过程中,这非常耗时。 Do you know any better way how to save some time? 你知道如何节省一些时间吗?

Right know I have to create nuget package with symbols and then update the package in sample project. 我知道我必须使用符号创建nuget包,然后更新示例项目中的包。 In process of developing nuget package this is really time consuming. 在开发nuget包的过程中,这非常耗时。

Using dotpeek you can debug any package there is even if it does not contain debug symbols. 使用dotpeek,您可以调试任何包,即使它不包含调试符号。 Personally i would set up a local nuget repository and deploy to that if you're in a testing/debugging stage. 就个人而言,如果您处于测试/调试阶段,我会设置一个本地nuget存储库并进行部署。

If you're "publishing" to a local nuget and set up a reference in your testing project to that local nuget the time should be pretty minimal. 如果您正在“发布”到本地nuget并在测试项目中为该本地nuget设置一个引用,那么时间应该非常短。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Nuget 包未在 Visual Studio 中更新 - Nuget package not updating in Visual Studio 在Visual Studio中构建项目时如何安装Nuget包 - How install Nuget package when building project in Visual Studio 如何从 Visual Studio 中的 nuget 包中排除依赖项 - How to exclude a dependency from nuget package in Visual studio 如何在 Visual Studio 中启用 NuGet Package 还原? - How do I enable NuGet Package Restore in Visual Studio? 如何在Visual Studio中运行作为NuGet软件包安装的wkhtmltopdf(.exe) - How run wkhtmltopdf(.exe) installed as NuGet package in Visual Studio C#visual studio如何重新定位nuget包文件夹? - C# visual studio how to relocate nuget package folder? 如何解决 Visual Studio 中的“NuGet package 还原失败”? - How to resolve "NuGet package restore failed" in Visual Studio? Visual Studio错误地将wwwroot打包在NuGet包中 - Visual Studio incorrectly packs wwwroot in NuGet package Visual Studio 引用显示未引用的 NuGet 包 - Visual Studio References shows NuGet package that is not referenced Visual Studio正在寻找一个没有publicKeyToken的旧Nuget包 - Visual Studio is looking for an old Nuget Package with no publicKeyToken
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM