How can i add project outputs using DTE.ExecuteCommand()?

3 respostas
desenvolvimentocsharp
Davi_Almeida

I would like to execute this commands to include project outputs.

My current code is this:

EnvDTE.DTE dte = Marshal.GetActiveObject("VisualStudio.DTE.14.0") as EnvDTE.DTE;
dte.ExecuteCommand("Project.AddProjectOutputs", "Rumo.GeneratorSetup, Primary output, Localized       resources");

But this is generating an exeception:

An exception of type ‘System.Runtime.InteropServices.COMException’ occurred in Rumo.GeneratorSetup.dll but was not handled in user code

Additional information: Command “Project.AddProjectOutputs” is not available.

What can I do to fix this problem?

Thanks.

3 Respostas

Dragoon

Por favor tem tradução?

L

Translating:

Davi_Almeida

Eu preciso inserir no meu projeto Setup, os arquivos OutPuts, no caso o Primary output e o Localized resource
Só que preciso inserir via código usando o DTE ou algo similar.

Criado 27 de março de 2017
Ultima resposta 27 de mar. de 2017
Respostas 3
Participantes 3