gpt4 book ai didi

wpf - Visual Studio 2017 在输出\bin\debug 中添加额外的 dll

转载 作者:行者123 更新时间:2023-12-02 05:57:42 26 4
gpt4 key购买 nike

我使用的是 Visual Studio Community,2017,版本 15.1。 WPF 应用程序与赢形式报告控制。刚刚从 SQL Server 迁移到 SQLite。现在在\bin\debug(名为 Microsoft.VisualStudio.*.dll)中有额外的 21 个文件,例如 Microsoft.VisualStudio.VSHelp.dll。手动删除这些文件,应用程序运行良好。
看着 NuGet 配置,一切似乎都很好。有任何想法吗?

最佳答案

建议书名 (我无法编辑):为什么 Visual Studio 2017 在 bin 文件夹中添加 Microsoft 和 Visual Studio dll(调试/发布)

我找到了原因:这是由于 Microsoft 报告查看器 14 .

转载:

  • 创建一个新项目,添加您想要的任何 DLL(ReportViewer 14 的 Nuget 除外)并编译:没有无用的文件。
  • 然后,添加 ReportViewer 14 :繁荣,大量无用文件。

  • 解决方案 :
  • 在您的项目中
  • 在引用部分
  • 选择 Microsoft.ReportViewer.Design 库
  • 将“复制本地”设置为 FALSE
  • 当您分发应用程序时,此 dll 不是必需的。

  • 仅举几例(帮助谷歌搜索):
    Microsoft.VisualStudio.CoreUtility.dll, 
    Microsoft.VisualStudio.Editor.dll,
    Microsoft.VisualStudio.Shell.Interop.dll,
    Microsoft.VisualStudio.Text.UI.dll,
    Microsoft.VisualStudio.VSHelp.dll (there is like 20 DLLs with Microsoft.VisualStudio.*.dll)

    关于wpf - Visual Studio 2017 在输出\bin\debug 中添加额外的 dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43742668/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com