2017-02-17 58 views
0

想要使用app.config變換並使其在VB項目中顯而易見。Visual Studio VB Project config變換不顯示

轉換app.config文件是在VB項目中創建的。轉換確實已經完成。但是我無法在解決方案資源管理器中顯示App.Debug.config和App.Release.config。

我已經嘗試'添加現有'到App.Debug.config,並且它不會顯示在VB項目中。

我也試着編輯VB項目,改變的情況下「的app.config」到「App.config中」,這讓在顯示屏上沒有任何區別:

<ItemGroup> 
    <Content Include="App.config" /> 
    <Content Include="App.Debug.config"> 
     <DependentUpon>App.config</DependentUpon> 
    </Content> 
    <Content Include="App.Release.config"> 
     <DependentUpon>App.config</DependentUpon> 
    </Content> 
    </ItemGroup> 

我怎樣才能獲得一個VB項目以類似於C#項目的方式顯示.configs?

enter image description here

回答

0

好吧!如果單擊「顯示所有文件」應用程序,它會在解決方案資源管理器中生效.Debug.config和app.Release.config將顯示在VB項目中。