Помогите! Не могу собрать проект. Делаю релиз - у меня запускается, на 4 других машинах либо ошибка(на одной машине), либо совсем ничего. Пришел к выводу, что не доложил что-то в проект. Пробовал собрать через ILMerge(хабростатья). Получаю вот такую ошибку при компиляции:
1>------ Build started: Project: MessagesDumperForVK, Configuration: Release Any CPU ------
1> MessagesDumperForVK -> E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\MessagesDumperForVK.exe 1> Start Release Merging MessagesDumperForVK.exe. 1> Target: "E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\MessagesDumperForVK.exe" 1> target_dir: E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\ 1> Config: Release 1> Merging: '"""E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\"ILMerge\ILMerge.exe"" /wildcards /targetplatform:"v4, E:\Windows\Microsoft.NET\Framework\v4.0.30319" /out:"E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\Output\MessagesDumperForVK.exe" "E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\MessagesDumperForVK.exe" "E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release*.dll"' 1> An exception occurred during merging: 1> Unresolved assembly reference not allowed: PresentationFramework. 1> в System.Compiler.Ir2md.GetAssemblyRefIndex(AssemblyNode assembly) 1> в System.Compiler.Ir2md.GetTypeRefIndex(TypeNode type) 1> в System.Compiler.Ir2md.VisitReferencedType(TypeNode type) 1> в System.Compiler.Ir2md.VisitClass(Class Class) 1> в System.Compiler.Ir2md.VisitModule(Module module) 1> в System.Compiler.Ir2md.SetupMetadataWriter(String debugSymbolsLocation) 1> в System.Compiler.Ir2md.WritePE(Module module, String debugSymbolsLocation, BinaryWriter writer) 1> в System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName) 1> в System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module) 1> в ILMerging.ILMerge.Merge() 1> в ILMerging.ILMerge.Main(String[] args) 1> Merge failed 1>E:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(4714,5): error MSB3073: The command ""E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\ILMerge\merge_all.bat" "E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\" "E:\Users\DezmontDeXa\Documents\Visual Studio 2015\Projects\MessagesDumperForVK\MessagesDumperForVK\bin\Release\MessagesDumperForVK.exe" Release" exited with code 1. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Выручайте) Желательно способ по проще. Видел пару статей, так там кода нужно больше чем у меня в программе...
Проблема оказалась в WPF. Оказывается он в случае ошибки - крошится без единого намека на то что произошло. А произошло отсутствие frameworka нужной версии. Переделал по WFA - все сразу ок. При первом запуске на виртуалке - сказал, что не хватает ему 4.0 framework. Скачал поставил - попросил 4.6. После заработал как надо.
Проблема глубже. Я делал утилиту на заказ. Она возможно запуститься то всего 1 раз в жизни, после чего пропадет на каком-нибудь сдохшем винте. Потому делать для нее установщик - как то не практично.
Печально что без кучи строк кода не удастся сделать и красиво и с уведомлением - чего не хзватает.
Современные инструменты для криптотрейдинга: как технологии помогают принимать решения
Апостиль в Лос-Анджелесе без лишних нервов и бумажной волокиты
Основные этапы разработки сайта для стоматологической клиники
Продвижение своими сайтами как стратегия роста и независимости