Visual Studio and .NET Framework Home
EnvDTE.Project.CodeModel doesn't retrieve attribute code elements in AssemblyInfo file for C#
Carlos J. Quintero
as Won't Fix
7/1/2009 2:21:43 AM
User(s) can reproduce this bug
When you iterate the code elements of the code model of a project, attributes in the AssemblyInfo.cs file are not retrieved for C# projects. They are retrieved for VB.NET projects.
Visual Studio 2010 Beta 1
Operating System Language
Steps to Reproduce
- Create a C# class library
- Run this macro:
Sub GetCodeElements(ByVal codeElements As CodeElements)
For Each codeElement As CodeElement In codeElements
No messagebox is shown for attributes that are in the AssemblyInfo.cs file
Attributes are code elements of the project code model. They do show if you run the macro against a VB.NET project.
TAP Code (if applicable)
You can indicate your satisfaction with how Microsoft handled this issue by completing this quick
3 question survey
to post a comment.
Please enter a comment.
on 7/23/2009 at 11:36 AM
Thanks for filing this issue! One potential workaround for this issue would be to use the FileCodeModel to grab the attributes. We unfortunately won't be able to address the limitation in the Project.CodeModel for the VS2010 release given that we're purely focused on stabilization and performance but I've marked this bug down to be considered as we begin planning for the next release. In the meantime, I'm going to mark the bug as a "Wont Fix" but please feel free to re-activate if you have any further questions/comments.
C# IDE, Program Manager
on 7/1/2009 at 11:16 PM
Thanks for your feedback. We are routing this bug to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.
Visual Studio Product Team
to post a workaround.
Please enter a workaround.
© 2014 Microsoft