MvcMailer icon indicating copy to clipboard operation
MvcMailer copied to clipboard

Problem with MvcMailer in Visual Studio Express 2013 installing MvcMail in default Mvc Ap

Open exec6106 opened this issue 11 years ago • 11 comments

PM> Install-Package MvcMailer Attempting to resolve dependency 'T4Scaffolding.Core (≥ 1.0.0)'. Installing 'T4Scaffolding.Core 1.0.0'. Successfully installed 'T4Scaffolding.Core 1.0.0'. Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE At C:\Users\MALCOLM\documents\visual studio 2013\Projects\TestApp\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:9

  •     Set-DefaultScaffolder -Name CustomTemplate -Scaffolder T4Scaffolding.Cus ...
    
  • - CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    - FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
    
    

Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE At C:\Users\MALCOLM\documents\visual studio 2013\Projects\TestApp\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:51 char:9

  •     Set-DefaultScaffolder -Name CustomScaffolder -Scaffolder T4Scaffolding.C ...
    
  • - CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    - FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
    
    

Installing 'MvcMailer 4.5'. Successfully installed 'MvcMailer 4.5'. Adding 'T4Scaffolding.Core 1.0.0' to TestApp. Successfully added 'T4Scaffolding.Core 1.0.0' to TestApp. Adding 'MvcMailer 4.5' to TestApp. Successfully added 'MvcMailer 4.5' to TestApp. Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE At C:\Users\MALCOLM\documents\visual studio 2013\Projects\TestApp\packages\MvcMailer.4.5\tools\Install.ps1:23 char:1

  • Set-DefaultScaffolder -Name Mailer -Scaffolder $mailerScaffolder -SolutionWide - ...
  • - CategoryInfo          : NotSpecified: (:) [Set-DefaultScaffolder], InvalidOperationException
    - FullyQualifiedErrorId : T4Scaffolding.Cmdlets.SetDefaultScaffolderCmdlet
    

exec6106 avatar Oct 31 '13 08:10 exec6106

Got the same error! Please help, did you solved?

AresDev avatar Jan 20 '14 16:01 AresDev

It appears there is an issue with the T4Scaffolding.Core dependency that MVCMailer 4.5 has and VS2013. Until a new version comes out that resolves the dependency issues with VS2013, I had to copy the MVCMailer assembly somewhere and reference it directly instead of using the Nuget package. It still works fine, but you can't use the scaffolding features with MVCMailer.

bweber avatar Feb 10 '14 17:02 bweber

http://stackoverflow.com/questions/19699563/error-in-nuget-pm-visual-studio-express-v2013

can't find any good source about this but it seems something is broken in vs2013 and mvcmailer depends on the broken stuff. Sohan, do you have more info on this? VS2013 is not that new anymore and a lot of people will run into trouble when installing mvcmailer in their projects.Not that good for a nice package like this. Apparently the mvc scaffolding engine in vs2012 was replaced by a new one? in vs2013 and breaks packages that depend on t4scaffolding.Do you have a workaround for people running vs2013?

spacecat avatar Feb 11 '14 22:02 spacecat

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this. You'll need to lcally update the nuspec INSIDE the MVcMailer4.5 nupkg to depend on

<package id="T4Scaffolding.Core" version="1.0.0-vs2013" targetFramework="net45" />

This is bad, but it is what it is. Ideally MvcMailer would have a vs2013 version that would do this for us.

shanselman avatar Feb 12 '14 01:02 shanselman

Will push a new version in the next week


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:40 PM, Scott Hanselman [email protected] wrote:

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this. You'll need to lcally update the nuspec INSIDE the MVcMailer4.5 nupkg to depend on

<package id="T4Scaffolding.Core" version="1.0.0-vs2013" targetFramework="net45" />

This is bad, but it is what it is. Ideally MvcMailer would have a vs2013 version that would do this for us.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830190 .

smsohan avatar Feb 12 '14 01:02 smsohan

Great! Let's chat about it because we don't want to break the old one! Perhaps Mvcmailer-vs2013?

On Feb 11, 2014, at 5:50 PM, SM Sohan [email protected] wrote:

Will push a new version in the next week


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:40 PM, Scott Hanselman [email protected] wrote:

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this. You'll need to lcally update the nuspec INSIDE the MVcMailer4.5 nupkg to depend on

<package id="T4Scaffolding.Core" version="1.0.0-vs2013" targetFramework="net45" />

This is bad, but it is what it is. Ideally MvcMailer would have a vs2013 version that would do this for us.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830190 . — Reply to this email directly or view it on GitHub.

shanselman avatar Feb 12 '14 01:02 shanselman

Yup, it'll be something like that. My only problem is I'm not doing a lot of .net these days. Pull requests welcome.


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:54 PM, Scott Hanselman [email protected] wrote:

Great! Let's chat about it because we don't want to break the old one! Perhaps Mvcmailer-vs2013?

On Feb 11, 2014, at 5:50 PM, SM Sohan [email protected] wrote:

Will push a new version in the next week


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:40 PM, Scott Hanselman [email protected] wrote:

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this. You'll need to lcally update the nuspec INSIDE the MVcMailer4.5 nupkg to depend on

<package id="T4Scaffolding.Core" version="1.0.0-vs2013" targetFramework="net45" />

This is bad, but it is what it is. Ideally MvcMailer would have a vs2013 version that would do this for us.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830190

.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830957 .

smsohan avatar Feb 12 '14 02:02 smsohan

I'll take a look tonight!

Scott Hanselman

On Feb 11, 2014, at 6:01 PM, SM Sohan [email protected] wrote:

Yup, it'll be something like that. My only problem is I'm not doing a lot of .net these days. Pull requests welcome.


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:54 PM, Scott Hanselman [email protected] wrote:

Great! Let's chat about it because we don't want to break the old one! Perhaps Mvcmailer-vs2013?

On Feb 11, 2014, at 5:50 PM, SM Sohan [email protected] wrote:

Will push a new version in the next week


Sent from my iPhone Sohan SM

On Feb 11, 2014, at 6:40 PM, Scott Hanselman [email protected] wrote:

We are moving to a new system for Scaffolding, but for now, run VS as admin and use this -pre version we've updated:

Install-Package MvcScaffolding -Version 1.0.8-vs2013 -Pre

I'll blog this. You'll need to lcally update the nuspec INSIDE the MVcMailer4.5 nupkg to depend on

<package id="T4Scaffolding.Core" version="1.0.0-vs2013" targetFramework="net45" />

This is bad, but it is what it is. Ideally MvcMailer would have a vs2013 version that would do this for us.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830190

.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/116#issuecomment-34830957 . — Reply to this email directly or view it on GitHub.

shanselman avatar Feb 12 '14 02:02 shanselman

Is there a solution to this yet. Scaffolding in MVC5 apps does not work if you install MVCMailer. Everytime we open a project with MVC Scaffold installed and Package Manager Console initialises with error on set-DefaultScaffolder: Cannot get an instance of EnvDTE.DTE at T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:30 and same on 51 char:30 as well Is there another way to set default scaffolder and ignore this package in scaffolding.

After 3 hours I have uninstalled MVCMailer and T4Scaffolding and MVCMailer is not longer there but scaffolding works. Then I installed -vs2013 package. The Scaffolding wont work and Pacakage Manager initialisation did not show any issue on set-DefaultScaffolder.

Is there a way to remove scaffolding from MVCMailer at all and just use it with Manual creation of Mailers and Views.

farrukhsubhani avatar Jun 12 '14 12:06 farrukhsubhani

Is there any update on this? I am getting the same error.

gokussx4 avatar Oct 06 '14 03:10 gokussx4

Hi,

I know this was posted a while ago, but, I came across this same bug in VS2015 whilst using MvcScaffolding. The actual bug lies in the T4Scaffolding.Core package. I pulled the source, fixed the bugs, and uploaded new NuGet packages with linked dependencies. The 3 new packages are:

First uninstall MvcScaffolding and its dependencies, T4Scaffolding, & T4Scaffolding.Core. If you then simply install the MvcScaffolding package, the other packages will be pulled through. Hope this helps someone else.

Cheers.

processedbeets avatar Sep 28 '15 16:09 processedbeets