Getting the Assembly that will be produced by a .NET project... #45
Replies: 5 comments
-
MvsSln/MvsSln/Core/IXProject.cs Line 356 in 9ce5885 And everything related to its metadata if you need MvsSln/MvsSln/Projects/Item.cs Line 61 in 9ce5885 You can also access to AsmData helper MvsSln/MvsSln/Projects/Item.cs Lines 91 to 97 in 9ce5885 If you need a type of the .NET projects, In 2.5.3 you may note the following:
|
Beta Was this translation helpful? Give feedback.
-
Thanks... I must be being dense.... The AsmData (Assembly) appears to be on an Item type... What I am looking for (ideally in a project type invariant manner (i.e. the details are encapsulated) is related to: |
Beta Was this translation helpful? Give feedback.
-
This is called property in the context of msbuild. You just need access to the MvsSln/MvsSln/Core/IXProject.cs Lines 180 to 183 in 9ce5885 Note the 2 different values in PropertyItem:
The evaluation of the nodes is recursive (ie. each property can contain other properties, and so on); this is part of the msbuild (MvsSln 2.x). But even for 3.0 with IeXod it should follow the same rules. // ~
xp.GetProperty("AssemblyName").evaluatedValue == "VSDependencies" |
Beta Was this translation helpful? Give feedback.
-
hmm, /// <returns>null if no property of that name and scope exists.</returns> looks like a typo o_o |
Beta Was this translation helpful? Give feedback.
-
Thanks that was what I could not find. Since it is surfaced so hig in the VS UI, and also a "key group" my mind sort of expected a dedicated Property... Thanks again. |
Beta Was this translation helpful? Give feedback.
-
PRetty sure I am missing, but I have spend a few hours, and just don't see it as a property of the Project type classes.
background: I am processing a huge system. Assembly references rather than project references are used. I need to generate the association between the proj file that creates and assembly and the proj file(s) that reference it...
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions