I use the following code to create a project. I want to run Clean first (or just force ReBuild, I suppose?), But I can't find the documentation on how I do this:
Private Shared _globalProp As Dictionary(Of String, String)
Private Shared _logger As BuildLogger
Dim thisProject As Project = Nothing
Dim buildSuceeded As Boolean
If _globalProp Is Nothing Then
_globalProp = New Dictionary(Of String, String)
_globalProp.Add("Configuration", "Release")
_globalProp.Add("Platform", "x86")
End If
_logger = New BuildLogger
thisProject = New Project(projectFilename, _globalProp, "14.0")
buildSuceeded = thisProject.Build(_logger)
source
share