How to increment C++ project PRODUCTVERSION and FILEVERSION from .rc file using DTE assembly.
-
quarta-feira, 8 de agosto de 2012 14:25
Hi,
I am working on build automation using DTE assembly. I have solution file which contains C# and C++ projects. I can change the AssemblyVersion by using DTE but I am not able to do same with C++ project. Please suggest me how to set the C++ .rc file using DTE assembly.
Regards,
Sanjay
Todas as Respostas
-
quinta-feira, 9 de agosto de 2012 05:34Moderador
Hi Sanjay,
Project-specific objects such as DTE.VBProjects.Item and DTE.VCProjects.Item are located in other assemblies. Visual Basic and Visual C# project objects are located in VSLangProj, and Visual C++ project objects are located in Microsoft.VisualStudio.VCProjectEngine. See Extending Visual Basic and Visual C# Projects and Visual C++ Project Model for more information about programming against project-specific objects.
More information you can refer to:
http://msdn.microsoft.com/en-us/library/x29xdte5
So I think if you want to change the AssemblyVersion in C++ project, you should use the VCProjectEngine.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us
- Marcado como Resposta Ego JiangMicrosoft Contingent Staff, Moderator sexta-feira, 17 de agosto de 2012 08:48
-
sexta-feira, 17 de agosto de 2012 08:49Moderador
HI Sanjay,
I will mark my reply as answer.
If you feel it is not the answer, please unmark it.
Thank you for your understanding and support.
Best regards,
Ego [MSFT]
MSDN Community Support | Feedback to us

