• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

t4 templates

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    t4 templates

    i've updated the boilerplate code with the new

    return this.GenerationEnvironment.ToString();

    and

    public override string TransformText()

    however, the generator is now returning

    ================================================== ==============
    Error 1 Running transformation: System.Runtime.Remoting.RemotingException: Object '/04015e97_72ed_4336_8edd_d585edce188c/4rj2jzhrxbcngwf2f9th5vws_21.rem' has been disconnected or does not exist at the server.

    Server stack trace:
    at System.Runtime.Remoting.Channels.ChannelServices.C heckDisconnectedOrCreateWellKnownObject(IMessage msg)
    at System.Runtime.Remoting.Channels.ChannelServices.S yncDispatchMessage(IMessage msg)

    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
    at EnvDTE._DTE.get_Solution()
    at T4Toolbox.TransformationContext.FindProjectItem(St ring fileName)
    at Microsoft.VisualStudio.TextTemplatingF29FEFB933A0E 759E6C0557E72661EDC.GeneratedTextTransformation.Sc affoldingGenerator.DeleteT4OutputLog() in j:\VisualStudio2008Projects\SharpTest\tools\CrudSc affolding\Templates\ScaffoldingGenerator.tt:line 45
    at Microsoft.VisualStudio.TextTemplatingF29FEFB933A0E 759E6C0557E72661EDC.GeneratedTextTransformation.Sc affoldingGenerator..ctor(String solutionRootPath, String solutionName, EntityScaffoldingDetails entityScaffoldingDetails, ArtifactToGenerate[] artifactsToGenerate) in j:\VisualStudio2008Projects\SharpTest\tools\CrudSc affolding\Templates\ScaffoldingGenerator.tt:line 23
    at Microsoft.VisualStudio.TextTemplatingF29FEFB933A0E 759E6C0557E72661EDC.GeneratedTextTransformation.Sc affoldingGenerator..ctor(String solutionRootPath, String solutionName, EntityScaffoldingDetails entityScaffoldingDetails) in j:\VisualStudio2008Projects\SharpTest\tools\CrudSc affolding\Templates\ScaffoldingGenerator.tt:line 17
    at Microsoft.VisualStudio.TextTemplatingF29FEFB933A0E 759E6C0557E72661EDC.GeneratedTextTransformation.Tr ansformText() in j:\VisualStudio2008Projects\SharpTest\tools\CrudSc affolding\ScaffoldingGeneratorCommand.tt:line 41 J:\VisualStudio2008Projects\SharpTest\tools\CrudSc affolding\ScaffoldingGeneratorCommand.tt 1

    ================================================== ==========



    i was wondering if anyone has come across this before???

    #2
    fixed. reflection eh?

    Comment

    Working...
    X