Is there a way to get the application's name from an adding in VS RRS feed

  • Question

  • I am currently working on an addin in VS which supposed to be run on asp.net websites. I select a web page and execute my addIn's tasks. when selecting the web page, I get it's absolute path as the following

    C:\Users\Sherihan\Documents\Visual Studio 2010\Projects\TestWebsite\Default.aspx

    C:\Users\User\Documents\Visual Studio 2010\Projects\TestWebsite\TestWebpages\FAQs.aspx

    from the full path i get the current file's name and file type. I want to get the name of the website as well. My first attempt was to tokenize the string and get the last string and the one before last as the filename and the website name respectively. But as you see, that wont work all the time when we have a folder structure.

    what I want to know is, is there a way to get the currently running website's (DTE2 _applicationObject 's ) name somehow. please give a help

    thanks in advance

    Wednesday, July 24, 2013 7:23 PM


All replies