我正在使用以下代码构建项目。我想先执行一次清理(或者只是强制重新构建?)- 但我找不到任何文档说明如何操作:
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)