I'm new to developing and my team leader asked me to solve this situation.
When compiling the solution with VS, every thing is OK. But when compiling with MSBuild, this line of code returns NULL value.
static DTE Dte; Dte = serviceProvider.GetService(typeof(SDTE)) as DTE;
How can I solve this????
Thanks in advance.