Grab project URL

Asked

Viewed 369 times

1

Hello, I need to get the url where my project is (wpf). The reason is this: there is an image upload inside the Image folder (which is in the Image File of my project) and I need the image File to be saved in the correct folder. I could put it in manually, but every time I change my computer, I’d have to change it and that’s not very feasible.

  • 1

    You can use System.AppDomain.CurrentDomain.BaseDirectory.

  • @qmechanik show. Thanks

  • I posted as an answer. =)

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.