Search code examples
t4visual-studio-mac

Visual Studio for Mac Cannot Resolve Assembly Reference EnvDTE


We are trying to use T4 Text Templates for code generation within Visual Studio for Mac. However when we save the file Visual Studio shows the error:

Error: Could not resolve assembly reference 'EnvDTE'

Others who are using Rider on Mac don't seem to see this issue so it seems to be specific to Visual Studio.

Where would we expect to find EnvDTE on a Mac?


Solution

  • Making Matt's comment above into an answer:

    "With a t4 referencing EnvDTE would need the EnvDTE assembly in the GAC, unless Rider is ignoring the error or somehow supplying it. Visual Studio for Mac does not have any EnvDTE assembly and neither does .NET nor Mono"