2012-05-23 39 views
1

我試圖在vb.net中創建類的層次結構。我能夠通過使用 以下標籤中的.csproj在vb.net中創建文件的層次結構

<Compile Include="ClassA.cs"> 
     <DependentUpon>ClassB.cs</DependentUpon> 
</Compile> 

實現它在CSHARP下面摘錄在Solution Explorer將如下

Class Hierarchy in Csharp

我需要實現在同一vb.net。

我是vb.net的新用戶。任何人都可以告訴我替代<DependUpon>屬性使用.csproj相當於.vbproj。出於某種原因,即使在visualstudio2010中顯示該屬性,該屬性在.vbproj中似乎也會被忽略。

回答

0

僅供參考,我的崗位被得到回答在下面的鏈接

[答案](http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5a79d68e-f85d-4bbe-a818-1e107efaafc4)

1

Your question on MSDN已被Ego回答。

它實際上是一樣的C#(的原因是,這是MSBUILD和Visual Studio是解釋它給你一個很好的演示體驗。

<Compile Include="ClassB.vb" /> 

    <Compile Include="ClassA.vb"> 

     <DependentUpon>ClassB.vb</DependentUpon> 

</Compile> 

enter image description here

+0

我嘗試了自我給出的解決方案。但是,問題仍然存在。只有ClassB在解決方案資源管理器中可見。出於某種原因,ClassA不可見。有關更多參考資料,請參閱[鏈接](http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/5a79d68e-f85d-4bbe-a818-1e107efaafc4)。讓我知道是否有任何需要完成的事情或缺少ClassA不可見的任何內容。 – shishi

相關問題