2013-01-18 3 views
1

설치하지 않고 AjaxMin을 사용하려고합니다. 이 링크 (http://ajaxmin.codeplex.com/wikipage?title=AjaxMinTask)에서 나는 UsingTask 태그 나 그것을 할 수 있도록 것이라고 생각하지만 난이 오류가 점점 계속 :설치하지 않고 AjaxMin 사용하기

E:......csproj (487): The "AjaxMin" task could not be instantiated from "E:...\libraries\AjaxMinTask.dll". System.IO.FileNotFoundException: Could not load file or assembly 'AjaxMin, Version=4.79.4762.18504, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified. File name: 'AjaxMin, Version=4.79.4762.18504, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' at Microsoft.Ajax.Minifier.Tasks.AjaxMin..ctor() WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. E:......Web.csproj (487): The "AjaxMin" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.

내가이 (Could not load file or assembly App_Licenses)을 시도했지만 여전히 작동하지 않습니다. 어떤 아이디어?

+0

안녕하세요. @mike. 같은 위키 링크를 읽으면서'UsingTask'를 사용하려면 프로젝트에'AjaxMinTask.dll'이 있어야합니다. 'AjaxMinTask.dll'에 대한 참조를 프로젝트에 추가 했습니까? –

+0

AjaxMinTask.dll을 내 저장소에 체크인했는데 내 프로젝트 .csproj 파일에 해당 위치를 참조하는 태그가 포함되어 있습니다. 그러나 나는 내 프로젝트의 References에 dll을 추가하지 않았다. 나는 그것이 필요하다고 생각하지 않는다 ...? – mike

+0

오류 메시지가 표시되면 프로젝트에 'AjaxMinTask.dll'에 대한 참조를 추가하는 것이 좋습니다. –

답변

2

fyi - dll을 참조로 추가하는 기능이 작동하지 않았습니다. 우리는 AjaxMin dll과 exes를 저장소에 추가하고 manifest.xml을 작성한 다음 사전 빌드 단계로 다음을 추가합니다.

"$ (SolutionDir) \ libraries \ AjaxMin"-clobber -xml "$ (ProjectDir) \ AjaxMin \ manifest.xml "

우리는 또한 압축 된 파일을 저장소에 추가하여 게시 영역에 복사합니다. 가장 우아한 해결책은 아니지만 우리의 상황에서 효과가 있습니다.

관련 문제