View Single Post
Old 08-27-2007, 02:27 PM
teognost teognost is online now
Registered User
Join Date: 05-25-2004
Location: Prague,Czech Republic
Posts: 182
Get AssemblyName\OutputType from a csproj file

I need to get from a csproj file the assembly version and output type.
The file looks like this:
<Project DefaultTargets="Build" xmlns="">
<SchemaVersion>2.0</SchemaVersion> <AssemblyName>AutoTrader.BICManagement</AssemblyName>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

I tried to read it as an xml,having a 'Set Macro' step for CURRENT_ASSEMBLY_NAME:
but nothing is set...
However I noticed if the csproj doesn't contain the part
xmlns=""-it is read correctly.
But this does not help me ,I need to read the csproj file as it is ,with
part inside.
Any idea how can I do it?

Last edited by teognost; 08-28-2007 at 05:41 AM.
Reply With Quote