Ошибки предупреждения VS Installer Solution: «Файл DLL находится под защитой системных файлов Windows» во время компиляцC#

Место общения программистов C#
Ответить
Anonymous
 Ошибки предупреждения VS Installer Solution: «Файл DLL находится под защитой системных файлов Windows» во время компиляц

Сообщение Anonymous »

Я создаю решение установщика для проекта Visual Studio на C#.
Во время процесса компиляции я получаю следующие предупреждения:

Код: Выделить всё

WARNING: 'System.Linq.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Linq\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Linq.dll' is under Windows System File Protection.
WARNING: 'System.Net.Http.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll' is under Windows System File Protection.
WARNING: 'System.Collections.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Collections\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Collections.dll' is under Windows System File Protection.
WARNING: 'System.Runtime.Serialization.Primitives.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization.Primitives\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Serialization.Primitives.dll' is under Windows System File Protection.
WARNING: 'System.Diagnostics.Debug.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Debug\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Debug.dll' is under Windows System File Protection.
WARNING: 'System.Threading.Tasks.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading.Tasks\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.Tasks.dll' is under Windows System File Protection.
WARNING: 'System.Runtime.Extensions.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Extensions.dll' is under Windows System File Protection.
WARNING: 'System.IO.Compression.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO.Compression\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.dll' is under Windows System File Protection.
WARNING: 'System.Reflection.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.dll' is under Windows System File Protection.
WARNING: 'System.Net.Http.WebRequest.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http.WebRequest\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.WebRequest.dll' is under Windows System File Protection.
WARNING: 'System.Runtime.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll' is under Windows System File Protection.
WARNING: 'System.Reflection.Extensions.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Reflection.Extensions\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Reflection.Extensions.dll' is under Windows System File Protection.
WARNING: 'System.Threading.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Threading\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Threading.dll' is under Windows System File Protection.
WARNING: 'System.Text.Encoding.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Text.Encoding\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Text.Encoding.dll' is under Windows System File Protection.
WARNING: 'System.Diagnostics.Tracing.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Diagnostics.Tracing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Diagnostics.Tracing.dll' is under Windows System File Protection.
WARNING: 'System.IO.dll' should be excluded because its source file 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.IO\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.IO.dll' is under Windows System File Protection.
А также те, которые, по моему мнению, связаны между собой:

Код: Выделить всё

WARNING: Two or more objects have the same target location ('[targetdir]\system.reflection.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.reflection.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.net.http.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.net.http.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.extensions.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.extensions.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.threading.dll')
WARNING:  Two or more objects have the same target location ('[targetdir]\system.threading.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.diagnostics.debug.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.diagnostics.debug.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.threading.tasks.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.threading.tasks.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.serialization.primitives.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.serialization.primitives.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.io.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.io.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.text.encoding.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.text.encoding.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.io.compression.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.io.compression.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.diagnostics.tracing.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.diagnostics.tracing.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.reflection.extensions.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.reflection.extensions.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.linq.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.linq.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.collections.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.collections.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.dll')
WARNING: Two or more objects have the same target location ('[targetdir]\system.runtime.dll')
Читая некоторые связанные сообщения, я считаю, что мне следует удалить эти библиотеки DLL из самого установщика, то есть из основного вывода решения установщика...? Это правильно или проблема где-то еще?
Еще один вопрос: повредит ли это каким-либо функциям на компьютере пользователя? Все ли эти библиотеки DLL существуют в стандартной Windows и будут ли работать без компиляции?

Подробнее здесь: https://stackoverflow.com/questions/709 ... m-file-pro
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C#»