编译安装程序然后给出警告 Dll is under Windows System File Protection

问题描述 投票:0回答:0

我在创建安装文件期间编译安装程序项目时遇到以下警告。

警告:“System.IO.Compression.dll”应该被排除在外,因为它 源文件 'C:\Windows\Microsoft.Net ssembly\GAC_MSIL\System.IO.Compression 4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll' 受 Windows 系统文件保护。

警告:“System.Diagnostics.Tracing.dll”应该被排除在外,因为 它的源文件 'C:\Windows\Microsoft.Net ssembly\GAC_MSIL\System.Diagnostics.Tracing 4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tracing.dll' 受 Windows 系统文件保护。

警告:“System.Net.Http.dll”应该被排除在外,因为它的来源 文件 'C:\Windows\Microsoft.Net ssembly\GAC_MSIL\System.Net.Http 4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll' 受 Windows 系统文件保护。

警告:应排除“System.IO.Compression.FileSystem.dll” 因为它的源文件 'C:\Windows\Microsoft.Net ssembly\GAC_MSIL\System.IO.Compression.FileSystem 4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.FileSystem.dll' 受 Windows 系统文件保护。

我正在使用 Visual Studio 2019 和带有 C# 的 WPF 应用程序。

我可以从安装程序项目中删除这种 dll 引用还是保持原样?

c# wpf windows-installer
© www.soinside.com 2019 - 2024. All rights reserved.