Reputation: 1652
I have an add in which is used to add dll to the project based on the framework of the project.for this i need to know the .NET Frame work of the project and i can achieve this by reading the .csproj file of the project. But what I am looking is Ways to get it via dte/vsproject object. is there any way?
Thanks,
Upvotes: 0
Views: 594
Reputation: 4414
You can get it from EnvDTE, using:
Project.Properties.Item("TargetFramework").Value
See:
Upvotes: 3