Re: Version 3.5 Path
Marc Brooks <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
> The following will get me the root and then I can just append on the version
> number to get me the correct versio of MSBUild.
>
> var root = string.Format("{0}\\Microsoft.net\\Framework\\", Environment
> .SystemDirectory);
Let's not assume path separators and use String.Format for mere concatenation:
using System.IO;
string root = Path.Combine(Path.Combine(Environment.SystemDirectory,
"Microsoft.Net"), "Framework");
--
Marc C. Brooks
http://musingmarc.blogspot.com
NOT sent from an iPhone
===================================
View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives