If the project-path will be changed

  • Thread starter Thread starter Peter Stojkovic
  • Start date Start date
P

Peter Stojkovic

I have the following problem:

I have a solution in path C:\AAA\CustomerA


Now I have a second project:
Then I copy everyThing to C:\AAA\CustomerB

Bit inside the new project everything is looking to C:\AAA\CustomerA

It is not possible to input relative pathes !!

What is the solution for this problem ??

Peter
SMS-Eumuco
 
It's likely you have absolute physical paths in your app :
- see Server.MapPath to translate the virtual path to the physical path
- the special ~ character is handled server side and allows to address the
application root (rather than the website root)

This way if you have an app in :
c:\root\subweb\page.aspx
c:\locationA\page.aspx
c:\locationB\page.aspx

Using Server.Path("~/page.aspx") will always return the above physical
path...

Patrice
 
I have problems with
REFERENCE-PATHES
in File for example only AlarmClass.vbproj.user within Visual-Studio.NET

And we have a lot of projects within one solution

So I dont know, how to change it automatically ?

Peter
 
project files are human readable. For some problems, it is simple to just
edit the project files and the solution file.

I'm not sure that I understand what your problem is. I've only had to edit
the project file on very rare occasion. However, it is easy to do.

--- Nick
 
Back
Top