I have a VS macro that I've been using for years to build my projects automatically. I'm currently trying out VS 2010 to see if I like it (my regular version is 2005), and one segment of the macro is not working in 2010. Well, rather, it will work ONCE on a given day, and then every time I run it after that, it fails. Here is the code:
With DTE.Solution
'Set the Build to "Release"
.SolutionBuild.SolutionConfigurations.Item("Release").Activate()
'Build solution
.SolutionBuild.Build(True)
'Set Build back to Debug
.SolutionBuild.SolutionConfigurations.Item("Debug").Activate()
End With
The line that fails is ".SolutionBuild.Build(True)". It simply doesn't Build the solution. There's no error. No indication that something is wrong. The code will run, but it just doesn't actually DO the build.
Does anyone have any idea why this would be happening?