방금 Visual Studio 확장 RazorGenerator을 V1.5로 업그레이드했으며 (마지막 업데이트 2011 년 10 월 14 일) 이제 다음과 같은 문제가 있습니다. 나는 '사용자 지정 도구 실행'을 선택하면사용자 지정 도구 'RazorGenerator'가 실패했습니다. 메서드 또는 작업이 구현되지 않았습니다.
지금 편집 각 cshtml 파일은 내가이 문제없이 내 프로젝트에서 이전에 작업을하지만 업그레이드가 깨진 것 같습니다했다 The custom tool 'RazorGenerator' failed. The method or operation is not implemented.
를 얻을 수, 생성 된 파일을 제거합니다. 아무도 어떻게 해결할 수 있습니다 ..? ExtensionManager를 통해 설치되기 때문에 이전 버전으로 롤백하는 것처럼 보이지 않습니다.
RazorGenerator.MVC in nuget의 최신 버전은 1.4 (2012 년 4 월 20 일 금요일)이므로 버전 불일치가 문제가 될 수 있습니다 ..?
나는 VS와 내 컴퓨터를 성공하지 않고 다시 시도해 보았습니다. 심지어는 확장 프로그램을 제거하고 다시 설치 했는데도 작동하지 않았습니다. 이 외에도
Exception calling "RunCustomTool" with "0" argument(s): "The custom tool 'RazorGenerator' failed. The method or operation is not implemented."
At D:\Source\MySolution\MyProject\packages\RazorGenerator.Mvc.1.4.0.0\tools\RazorGenerator.psm1:32 char:32
+ $_.Object.RunCustomTool <<<<()
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
Exception calling "GetItem" with "1" argument(s): "The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))"
At D:\Source\MySolution\MyProject\packages\RazorGenerator.Mvc.1.4.0.0\tools\RazorGenerator.psm1:62 char:46
+ $solutionExplorer.GetItem <<<< ("$SolutionName\$ProjectName$relativePath").UIHierarchyItems.Expanded = $false
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
, 나는 각 뷰에 대한 빌드 오류 다음 (에도 불구하고 말을 빌드가 성공) 얻을 :
I downloaded the sourceCustom tool error: Could not load file or assembly 'file:///C:\Users\Rob\AppData\Local\assembly\dl3\VQ93NZJ0.M7K\4HA91P75.CHN\4b53b7b1\09b87db8_d4adcd01\RazorGenerator.Core.v1.dll' or one of its dependencies. The system cannot find the file specified.
는 로컬 내장하고 'RazorGenerator.Core.v1을 복사. dll '오류 메시지에서 디렉터리에 있지만 여전히 작동하지 않았다. 나는 심지어 모든 RazorGenerator * .dll 파일을 해당 디렉토리에 복사했지만 여전히 운이 없다. 종속성을 확인하면 시스템 어셈블리와 동일한 디렉토리에있는 'RazorGenerator.Core.dll'만 표시됩니다.
덧붙여 말하면, 'RazorGenerator.Core.dll'은 이미 위의 디렉토리에 있습니다. 다음과 같이 Visual Studio를 확장 폴더에 보면
나는 RazorGenerator에 대한 디렉토리를 가지고 :
C:\Users\Rob\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\RazorGenerator contributors\Razor Generator\1.5
다음 파일 및 어셈블리이 폴더 내에 :
가extension.vsixmanifest
RazorGenerator.Core.dll
RazorGenerator.Core.v1.dll
RazorGenerator.Core.V2.dll
RazorGenerator.dll
RazorGenerator.pdb
RazorGenerator.pkgdef
어떤 도움이 많이 될 것 고맙습니다.
이 문제가있는 유일한 사람은 아닌 것 같습니다. http://razorgenerator.codeplex.com/workitem/72 – nemesv
감사합니다. 전에는 그 점을 발견하지 못했습니다. 토론에 추가됨. – robmzd
동일한 문제가 있었는데 Visual Studio 확장 폴더에서 RazorGenerator.Core.DLL, 매니페스트 및 pkgdef를 포함하여 어셈블리 폴더로 * 모든 것을 복사하여 작동 시켰습니다. 시도 해봐? – Bobson