1
I am in search of a way to leave the path of a file inside my project in a dynamic way, currently this so:
string arquivoImagem = @"D:\Projetos\ProjetoSolution\Projeto.Web\Images\Gerenciador\login\logo.png";
I would not leave this fixed path as this above, as I do to leave it dynamic?
It is a web application, this path is of an image that will be inserted inside a report, it is an image of the application itself so there is no interference from the user, in case the report uses the path to insert the image in the report that later becomes a PDF. I wanted a way to solve this because we have problems when another developer opens the project the way does not exist, because the project may be in another location on his machine.
This on console or Windwos form ?
– Dev
Define dynamic. What do you want to do? What you have described does not mean anything, we do not know how to help just with this.
– Maniero
You can put for the user to type the path
– Dev
I made some editions explaining better
– Brayan
Solve what? Say what you need to do. The question there is to figure out what you need, not described in the question. Do you want to put it where? In a file? What type of file? A database? A global variable?
– Maniero