RE: Managing C# solution and proj files for both VS 2003 & 2005

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Bill,

>However, it seems VS 2003 can't deal with relative path of
>code files (.cs) that are not under the directory where the
>csproj file resides.

yes, this behavior is by design. The VS2003's C# project needs all of its
source file in local directory(project directory). So if you add an
existing code files from another project/solution, the VS2003 IDE will copy
it to the current project's directory. I am afraid it doesn't work if you
modify the project file .csproj manually...


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: c++ project structures
    ... each project contains code files within its project ... but I still want to use relative path names on my includes. ... files that define the public interface to libraries. ... non-header source files that are shared, the solution needs to be refactored ...
    (microsoft.public.dotnet.languages.vc)
  • c++ project structures
    ... So I've got a project structure question. ... each project contains code files within its project ... shared directory and have one solution that includes all the projects, ... but I still want to use relative path names on my includes. ...
    (microsoft.public.dotnet.languages.vc)