2013-10-31 2 views
6

Nuget Package Manager에서이 오류를 해결할 수 없었습니다.Nuget PM의 오류 Visual Studio Express v2013

T4 스캐 폴딩을 제거하고 다시 설치하려고했습니다. Visual Studio 2012에서 3 개의 업데이트로이 프로그램을 개발했으며 이제이 프로그램을 VS Express 2013으로 마이그레이션했습니다. 2012 버전에는 프로그램에 오류가 없었습니다. 나는 인터넷, 너겟 및이 사이트를 수색했으며 나는 이것을 해결할 수 없었다. 패키지에 MvcMailer가 있고 T4 Scaffolding에 의존하는 것 같습니다. 그리고 대답은 감사하겠습니다.

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 
char:9 
+   Set-DefaultScaffolder -Name CustomTemplate -Scaffolder 
T4Scaffolding.Cus ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:51 
char:9 
+   Set-DefaultScaffolder -Name CustomScaffolder -Scaffolder 
T4Scaffolding.C ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.1.0.8\tools\init.ps1:6 char:1 
+ Set-DefaultScaffolder -Name DbContext -Scaffolder T4Scaffolding.EFDbContext 
-Sol ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.1.0.8\tools\init.ps1:7 char:1 
+ Set-DefaultScaffolder -Name Repository -Scaffolder 
T4Scaffolding.EFRepository -S ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:47 
char:1 
+ Set-DefaultScaffolder -Name Controller -Scaffolder MvcScaffolding.Controller 
-So ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:48 
char:1 
+ Set-DefaultScaffolder -Name Views -Scaffolder MvcScaffolding.Views 
-SolutionWide ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:49 
char:1 
+ Set-DefaultScaffolder -Name Action -Scaffolder MvcScaffolding.Action 
-SolutionWi ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:50 
char:1 
+ Set-DefaultScaffolder -Name UnitTest -Scaffolder 
MvcScaffolding.ActionUnitTest - ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:54 
char:1 
+ Set-DefaultScaffolder -Name View -Scaffolder $viewScaffolder -SolutionWide 
-DoNo ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

PM> Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 
char:9 
+   Set-DefaultScaffolder -Name CustomTemplate -Scaffolder 
T4Scaffolding.Cus ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:51 
char:9 
+   Set-DefaultScaffolder -Name CustomScaffolder -Scaffolder 
T4Scaffolding.C ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.1.0.8\tools\init.ps1:6 char:1 
+ Set-DefaultScaffolder -Name DbContext -Scaffolder T4Scaffolding.EFDbContext 
-Sol ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\T4Scaffolding.1.0.8\tools\init.ps1:7 char:1 
+ Set-DefaultScaffolder -Name Repository -Scaffolder 
T4Scaffolding.EFRepository -S ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:47 
char:1 
+ Set-DefaultScaffolder -Name Controller -Scaffolder MvcScaffolding.Controller 
-So ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:48 
char:1 
+ Set-DefaultScaffolder -Name Views -Scaffolder MvcScaffolding.Views 
-SolutionWide ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:49 
char:1 
+ Set-DefaultScaffolder -Name Action -Scaffolder MvcScaffolding.Action 
-SolutionWi ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:50 
char:1 
+ Set-DefaultScaffolder -Name UnitTest -Scaffolder 
MvcScaffolding.ActionUnitTest - ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 

Exception calling "EnumerateFiles" with "3" argument(s): "The path is not of a 
legal form." 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:35 
char:8 
+   | %{ [System.IO.Directory]::EnumerateFiles($_, "*." + $extension, 
[System.IO.S ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~~~~~~~ 
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : ArgumentException 

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE 
At E:\Visual Studio 
2012\Projects\ArtsProject\packages\MvcScaffolding.1.0.9\tools\init.ps1:54 
char:1 
+ Set-DefaultScaffolder -Name View -Scaffolder $viewScaffolder -SolutionWide 
-DoNo ... 
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
~~~ 
    + CategoryInfo   : NotSpecified: (:) [Set-DefaultScaffolder], Inval 
    idOperationException 
    + FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet 
+0

어제 정확하게 똑같은 문제가 있었는데, 내 프로젝트가 최근에 진행되었습니다. y가 시작되어 vs2013으로 마이그레이션되었습니다. 메일러 요구 사항이 거의 없기 때문에 나는 nuget : Postal로 옮겼습니다. –

+0

같음 ... VS2013 MVC 스캐 폴딩은 nuget을 실행하거나 대체 버전을 설치하는 데 문제가 있습니다. –

+0

이것에 대한 기쁨이 있습니까? 이 문제에 대한 해결책, 아니면 그냥 포기할 것인가? –

답변

-1

불행히도 Microsoft는 VS2013에서 큰 실수를 저질 렀습니다. 그들은 "오래된"방식의 스 캐 폴딩을 동맥이라고 부르는 것으로 대체하고 있습니다 ... 저는 모든 너겟 패키지에서 T4scaffolding을 사용합니다. 이제는 VS2013에서 사용할 수 없습니다. (

만족스러운 대답을받지 않고 T4scaffolding의 개발자.

그것은 그들이이 "동맥"일에 작동하는지 큰하지만 Env.DTE에 대한 지원을 잃어버린 경우 :(

유일한 해결책을 지금 그들이 큰 실수를 이 버그가 수정 될 때까지 VS2012를 사용하는 것입니다 : (

+0

저는 이것이 마이크로 소프트와 그들의 전략에 관한 것이라고는 생각하지 않습니다. 이것은 nuget 패키지와 다양한 확장 기능과의 호환성 문제입니다. –

+0

당신은 당신이 원하는 것을 생각할 수 있습니다, 그것은 모든 버전 VS2013 이전에서 작동합니다. T4Scaffolding 패키지를 살펴보면 VS2013 용 시험판 패키지가 있음을 알 수 있습니다. https://www.nuget.org/packages/T4Scaffolding.Core/1.0.0-vs2013 MS f? * & % ed T4 최대 시간 VS2013부터 .. – Uffe