Re: Is a custom project hierarchy possible for C# projects?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 03/07/05


Date: Mon, 7 Mar 2005 11:18:19 -0500

SpookyET,

    I understand what you are saying now, and no, you can not decouple the
source and the project file in this manner. The best you could have is the
project file in a directory that is a parent directory of where the source
is.

    Also, the VS.NET build system IS MSBUILD for VS.NET 2005, and for the
Express Editions (I believe, since they are locked down versions of VS.NET
2005).

    And yes, project files in VS.NET 2005 (and the Express Editions) are
MSBUILD files.

    I wouldn't expect the URL for the schema in the file to work either,
since the namespace definition doesn't have to necessarily point to a valid
resource, it just serves as a unique identifier.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"SpookyET" <not4_u@hotmail.com> wrote in message 
news:op.sm9y9qi11s9n15@saturn...
> Mr. Paldino,
>
> Starting with a blank solution does not help.  Visual Studio wants source 
> files coupled with .csproj files.  The file hierarchy that I want 
> decouples the project files from the source code and also have them under 
> different root directories.
> This is how VS wants its directories.
>    /Foo
>    /Foo/Foo.csproj
>    /Foo/Foo.cs
>    /Foo/Bar/
>    /Foo/Bar/Bar.cs
>
> Obviously, the hierarchy that I want goes against it.  MSBUILD does not 
> care where your files reside on disk.  This is a Visual Studio problem. 
> Also, the schemas that define the MSBuild tags in the .NET directory do 
> not define the VS project files.  MSBuild allows you to have additional 
> tags that you define like <AppDesigner> that are useful for other tools, 
> which it ignores.  However, those schemas are missing.  The URL for the 
> .csproj "http://schemas.microsoft.com/developer/msbuild/2003" returns 404.
>
> PS: You don't have to modify the master files to change something.  You 
> can overwrite settings in your project files.  It works like CSS.
>
> On Mon, 07 Mar 2005 09:50:14 -0500, Nicholas Paldino [.NET/C# MVP] 
> <mvp@spam.guard.caspershouse.com> wrote:
>
>> SpookyET,
>>
>>     Have yout tried starting with a blank project/solution, and then 
>> adding
>> things to that?  It's much easier to get the structure you need by doing
>> that.
>>
>>     Also, I believe you should be able to create directories in your sub
>> projects like you want, and place your source files in those sub
>> directories.
>>
>>     As for the obj files, you will have to go into the project file and
>> modify it yourself to do that.  The Express edition should be using the
>> MSBUILD system in order to compile the project.  However, it probably 
>> will
>> require you to go to the master build files on the system (they are in 
>> the
>> .NET install directory) and change those, or replicate the tasks in your
>> project file.
>>
>>     Hope this helps.
>>
>>
>
>
>
> -- 
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ 


Relevant Pages

  • Re: Is a custom project hierarchy possible for C# projects?
    ... Are you trying to use use to different dev tools at ... MSBuild is decoupled from Visual Studio. ... >> source and the project file in this manner. ... >> project file in a directory that is a parent directory of where the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Is a custom project hierarchy possible for C# projects?
    ... MSBuild is decoupled from Visual Studio. ... > I understand what you are saying now, and no, you can not decouple ... > source and the project file in this manner. ... > project file in a directory that is a parent directory of where the ...
    (microsoft.public.dotnet.languages.csharp)
  • "Microsoft.Sdc.Tasks" project is not getting recognized
    ... have copied the bin foldr from \GDN2.0.2574.000\Microsoft.Sdc.Tasks ... Running the below project file using MSBuild gives the ... Msbuild script?" ...
    (microsoft.public.dotnet.framework)
  • Why msbuild changes a new line when using console.write(" ") ?
    ... I'm testing to see whether msbuild can replace nmake. ... When runing test.exe alone or using nmake, the numbers are in one line, ... How to write the msbuild project file to let the numbers in one line? ...
    (microsoft.public.dotnet.general)
  • Re: MS Project Automation - Show hidden field
    ... I have written a C# utility that creates an MS Project file and it's great, ... Phil Johnson ... Sub showColumn() ... ' Macro showColumn ...
    (microsoft.public.office.developer.automation)