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

Programmatically add snk file to Solution Items using DTE object

$
0
0

Hi Folks,

How can I programmatically add snk file to solution items(at solution level) using DTE object.

var solution = this.dteObject.Solution as EnvDTE100.Solution4;
solution.AddFromFile(snkFilePath, false);

It throws an error "specified template could not be found.Check the full path".

Does Solution.AddFromFile expects only project items.How do I add snk file at solution level programmatically

 

Viewing all articles
Browse latest Browse all 4410

Trending Articles



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