Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Disable addition/editing of platforms for a project

$
0
0
I've a created a custom project type and was able to customise the target platform for my project type. Following is the code block:
public override int GetPlatformNames(uint celt, string[] names, uint[] actual)
         {
             if (names != null)
             {
                 names[0] = "My platform"; 
             }

             if (actual != null)
                 actual[0] = 1;
             
             return VSConstants.S_OK;
         }
This is working fine and the platform is reflected in configuration manager as expected. However, there is an option to add a new platform or edit the platform for the project in the Configuration manager. Can I disable this addition and editing option?

Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>