silanos_1

Analytics

ad silanors2

2011年7月16日 星期六

[VISUAL STUDIO]使用 同一專案內協同多種程式語言開發(Collaborative development of a variety of programming languages within the same project)


問題

當在專案內,如果需要用到VB或是C#的語法一起開發,會發生以下情形:

錯誤訊息如下:
Error 1 The files '/Starter/App_Code/VB/CustomerInfo.vb' and '/Starter/App_Code/CS/CustomerInfo.cs' use a different language, which is not allowed since they need to be compiled together.




解決方法

到Config底下,找到<compilation>

加入以下:
<codeSubDirectories>
<add directoryName="VB"/>
<add directoryName="CS"/>
</codeSubDirectories>
如下圖,即可協同開發






沒有留言:

as silanors3

熱門文章

bloggerads