因為用了third party 的元件,因此在建置專案時,
VS會*.vbproj中紀錄,要把BuildAction = "Compile",改成BuildAction = "None"
,這樣建置專案,就不會編譯這個元件
int buildAction = 3;
ProjectItem projItem = project.ProjectItems.AddFromFile(fullPath)
projItem.Properties.Item("BuildAction").Value = buildAction;
//Possible Values for buildAction are:
0 - none
1 - compile
2 - content
3 - embedded Resource
沒有留言:
張貼留言