2012-05-03 3 views
1
내가 MVC4 (목표는 사용자 MvcMailer이다)에 VS2010 SP1에서 비계 패키지를 설치하려고

, 여기에 명령을 내가Nuget 비계 설치 실패

PM> install-package T4Scaffolding 
PM> install-package MvcScaffolding 

을 실행하고 T4Scaffolding를 설치하는 날이 오류를 제공합니다 있습니다 :

Import-Module : Could not load file or assembly 'file:///path/packages\T4Scaffolding.1.0.5\tools\T4Scaffolding.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

내가 다시 설치 사용하는 경우 설치하지만 난 비계 명령을 사용할 때 날이 오류를 제공

PM> Scaffolding Mailer.Razor UserMailer subs 
,

The term 'Scaffolding' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:12 + Scaffolding <<<< Mailer.Razor UserMailer subs + CategoryInfo : ObjectNotFound: (Scaffolding:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

패키지를 제거하고 삭제하고 다시 설치했지만 운이 없었습니다. 두 패키지 모두에서 update 명령을 시도했지만 아무것도 표시하지 않았습니다. 내가 가져 오기 모듈 "하는 DLLPath"

을 실행하면

나는 같은 오류 메시지가 즉

Could not load file or assembly 'file:///path/packages\T4Scaffolding.1.0.5\tools\T4Scaffolding.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

설치, 변경 가능한 모든 아무것도를 다시 설치하지 제거 후 VS를 다시 시작했습니다.

내가 잘못하고있는 것.

편집 : ".이 어셈블리가 현재로드 된 런타임보다 최신 런타임에 의해 건설되고 를로드 할 수없는"나는

PS C:\Windows\system32> import-module "path\T4Scaffolding.1.0.5\tools\T4Scaffolding.dll" Import-Module : Could not load file or assembly 'file:///path\T4Scaffolding.1.0.5\tools\T4Scaffolding.d ll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. At line:1 char:14 + import-module <<<< "path\T4Scaffolding.1.0.5\tools\T4Scaffolding.dll" + CategoryInfo : NotSpecified: (:) [Import-Module], BadImageFormatException + FullyQualifiedErrorId : System.BadImageFormatException,Microsoft.PowerShell.Commands.ImportModuleCommand

그것은 오류를 제공 파워 쉘을 사용하는 시도 나는 여기서 실패의 시작점이라고 믿는다. 어떤 생각? 이것을 먼저 고치는 법.

답변

2

해결되었지만 솔루션에서 새로운 것은 없지만 검색, 히트 및 평가판을 많이해야했습니다. VS2010 SP1, 기본 설치가있었습니다. 프로젝트가 네트워크 드라이브에서로드되었습니다.

Import-Module : 파일 또는 어셈블리 'file : /// path/packages \ T4Scaffolding.1.0.5 \ tools \ T4Scaffolding.dll'또는 해당 종속성 중 하나를로드 할 수 없습니다. 작업이 지원되지 않습니다.

위의 오류 메시지는 원격 소스에서로드 할 수 없으므로 VS에서 온 것입니다. 수정 : Visual Studio devenv.exe 위치로 이동하십시오. 즉, 기본 C : \ 프로그램 Files \ Microsoft Visual Studio를 실행 섹션의 예에서 devenv.exe.config의 추가 라인 10.0 \ Common7 \ IDE :

<configuration> 
<configSections> 

</configSections> 
<startup useLegacyV2RuntimeActivationPolicy="true"> 
    <supportedRuntime version="v4.0.30319"/> 
    <requiredRuntime version="v4.0.30319" safemode="true"/> 

</startup> 
<runtime> 
<loadFromRemoteSources enabled="true"/> 

나는 오류 메시지에 더 적절한 좋겠어요 첫번째 장소 그러나 나는 또한 더 많이 읽어야한다.