Показаны сообщения с ярлыком Visual Studio 2015. Показать все сообщения
Показаны сообщения с ярлыком Visual Studio 2015. Показать все сообщения

понедельник, 16 января 2017 г.

Visual Studio зависает при публикации файлов веб-проекта (Publish Selected Files)

Ситуация

Visual Studio 2015 стала зависать при частичной публикации веб-проекта (когда выбираю несколько файлов проекта и жму Publish Selected files).

Причем полная публикация проекта работала.

Решение

Сделал Repair студии через управление программами.
Установил свежую версию Asure SDK через Студию, меню Tools/Extensions and Updates.

Что именно помогло - не знаю. но вопрос решился.

среда, 11 января 2017 г.

MS Visual Studio Веб-публикация. Исключить папку


MS Visual Studio: How to exclude certain Project Folders from publishing?
http://stackoverflow.com/questions/6104818/ms-visual-studio-how-to-exclude-certain-project-folders-from-publishing

суббота, 30 июля 2016 г.

Visual Studio 2015 Ошибка The "TransformXml" task could not be loaded from the assembly ....\Microsoft.Web.Publishing.Tasks.dll

Ситуация


в Visual studio 2015 получаю ошибку при билде проекта (после переустановки студии)

The "TransformXml" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll. 

Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.Tasks.dll' or one of its dependencies. The system cannot find the file specified. 

Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.


Решение


Выгрузил проект (Unload Project из контекстного меню проекта)

Открыл окно редактирования файла проекта (Edit (project name).proj из контекстного меню проекта)

в файле проекта нашел строчку

Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets" />

заменил на

<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.targets" />

суть замены выделил.

перезагрузил проект (из контексного меню проекта)

Для других версий студии решение тоже должно помочь но в строчках посика и в тексте ошибки версия студии модет отличаться.

Ссылки по теме

TransformXml task could not be loaded from Microsoft.Web.Publishing.Tasks.dll
http://stackoverflow.com/questions/20358747/transformxml-task-could-not-be-loaded-from-microsoft-web-publishing-tasks-dll