none
EF POWER TOOLS Error after Update 2 RRS feed

  • Question

  • Is anyone else having an issue with this after installing Update 2 for VS2015? I installed it yesterday and now every time I try to execute the reverse engineer function I get the following error:

    One or more errors occurred while processing template 'Entity.tt'.
    error : An exception was thrown while trying to compile the transformation code. The following Exception was thrown:
    System.ArgumentException: Empty path name is not legal.
    Sunday, April 17, 2016 1:51 PM

Answers

All replies

  • Yes, I have also seen this reported somewhere else - why not try the "EF Reverse POCO" template instead...?

    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

    Sunday, April 17, 2016 3:21 PM
  • I have many projects made with EF Power Tools,

    EF Reverse POCO make same source, but not equal !!.

    So using this I have to change all my projects ...

    No one have Idea what is the problem in EF Power Tools ?


    • Edited by mtugnoli Sunday, April 17, 2016 8:21 PM
    Sunday, April 17, 2016 8:19 PM
  • Hi mtugnoli,

    >> No one have Idea what is the problem in EF Power Tools ?

    As your description, firstly, I upgrade my vs2015 to update2, then I install EF Power Tools Beta4, then I execute the reverse engineer function on my side, all is ok, I don't encounter the issue that you occurring.

    please try to uninstall your EF Power Tools and install EF Power Tools again, then check if it works for you.

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Wednesday, April 20, 2016 9:46 AM
    Moderator
  • Hi Cole,

    I do what you writed :

    1) uninstall EF Power Tools 

    2) Install EF Power Tools  again

    3) restart my pc

    but same error occour (my pc is a Windows 10 Pro),  follow the result in output window :

    PS: I think EF Power Tools is one of best tools on VisualStudioGallery, and one of many dowloads (408.906), why don't make a upgrade ?

    One or more errors occurred while processing template 'Entity.tt'.
    error : An exception was thrown while trying to compile the transformation code. The following Exception was thrown:
    System.ArgumentException: Empty path name is not legal.
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
       at System.IO.File.OpenRead(String path)
       at Roslyn.Utilities.FileUtilities.OpenFileStream(String path)
       at Microsoft.CodeAnalysis.MetadataReference.CreateFromFile(String path, MetadataReferenceProperties properties, DocumentationProvider documentation)
       at Microsoft.VisualStudio.TextTemplating.CompilerBridge.<>c.<.ctor>b__15_0(String x)
       at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
       at System.Linq.Enumerable.<UnionIterator>d__66`1.MoveNext()
       at System.Linq.Enumerable.<UnionIterator>d__66`1.MoveNext()
       at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)
       at Microsoft.CodeAnalysis.ImmutableArrayExtensions.AsImmutableOrEmpty[T](IEnumerable`1 items)
       at Microsoft.CodeAnalysis.Compilation.ValidateReferences[T](IEnumerable`1 references)
       at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.WithReferences(IEnumerable`1 references)
       at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.CommonWithReferences(IEnumerable`1 newReferences)
       at Microsoft.VisualStudio.TextTemplating.CompilerBridge.PrepareNewCompilation()
       at Microsoft.VisualStudio.TextTemplating.CompilerBridge.Compile()
       at Microsoft.VisualStudio.TextTemplating.TransformationRunner.Compile(String source, String inputFile, IEnumerable`1 references, Boolean debug, SupportedLanguage language, String compilerOptions)

    Friday, April 22, 2016 7:26 AM
  • Hi Meccanica Rossi,

    At the EF Power Tools download page (link as below, please click reviews), it seems that some peoples encounter the same issue, and some one provide a simple solution as below for your reference.

    #Full Mode
    Make the download of project and change framework to 4.5 and rebuild
    #Easy Mode
    I rebuild in 4.6 and change for VS2015 too.
    https://onedrive.live.com/redir?resid=FFD7F3DFCD5E1160!61967&authkey=!AP6uv8OLvM5qnmU&ithint=file%2cvsix

    https://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d

    In addition, as your requirement, vs2015 provides a similar features, Code First development targeting an existing database, For more information, please refer to:

    https://msdn.microsoft.com/en-us/library/jj200620.aspx

    Best regards,

    Cole Wu


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    Wednesday, April 27, 2016 8:36 AM
    Moderator