Hi i have solution with many projects in my mvc3 application
One of the projects is console. And i need to get full path to upload folder in web project from this console.
How i can do this?
var path = System.IO.Path.GetFullPath("~/Content/Upload"); //return wrong path...
You can’t, best way is to put a key in your console app’s app.config of the full path of your upload folder.