CodeSmith Community
Your Code. Your Way. Faster!

Click and Drag CST into ASPX Page in Visual Studio 2008

Latest post 03-20-2008 9:40 AM by pwelter34. 1 replies.
  • 03-14-2008 11:06 AM

    • B-Dub
    • Not Ranked
    • Joined on 03-14-2008
    • Posts 1
    • Points 35

    Click and Drag CST into ASPX Page in Visual Studio 2008

    With CodeSmith 3 I used to be able to click and drag a CodeSmith template from the CodeSmith Explorer in Visual Studio into an ASPX page (source view) and the template properties dialog would pop up. I could fill out the properties as needed, click the generate button and the code generated by the template would be injected into my ASPX page.

    Since CodeSmith 4 came out, when I click and drag a CodeSmith template into the source view of an ASPX page, it puts in an anchor tag with an HREF value of the path to the CST file on my network share - view screenshot here.

    Is this a configuration issue with Visual Studio (it has this issue in 2005 and 2008) that can be fixed or is this just not possible with CodeSmith 4 (which would be greatly disappointing)?

    Thanks,

    Brandon

    Filed under:
    • Post Points: 35
  • 03-20-2008 9:40 AM In reply to

    • pwelter34
    • Top 25 Contributor
    • Joined on 03-13-2003
    • Eden Prairie, MN
    • Posts 255
    • Points 680,955

    Re: Click and Drag CST into ASPX Page in Visual Studio 2008

     Hi,

     This is a chanage made in Visual Studio.  This was changed to support things like dragging js files and it creating the script tag.  However, that change breaks the feature you are speaking of.  There is the Active Snippets feature that is similar to this.  Also, we are looking to improve Active Snippets to make it easier so you don't have to memories the parameters.

    ~ Paul

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems