Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorMarek Habersack <grendel@twistedcode.net>2016-08-11 22:39:07 +0300
committerMarek Habersack <grendel@twistedcode.net>2016-08-11 22:42:12 +0300
commit3ddd6df42101f35bdc7e71b5c356d49f4f5043c5 (patch)
treecdcdf5c4e313769dc7829878892bdc6c4ed6817c /main/src
parent2b5c7c7c48fcd28afe714370b200706ac2de8a95 (diff)
Support to read MSBuild extension path from environment
In some situations the MSBuild extensions path is not obvious to find - for instance in the case of Xamarin.Android installed only locally, in the developer's directory. This commit reads the MSBuildExtensionsPath environment variable which points to the director(ies) where the extensions can be found.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs
index 08e6b5181c..68f74ecf63 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildEvaluationContext.cs
@@ -166,6 +166,9 @@ namespace MonoDevelop.Projects.MSBuild
internal static string DefaultExtensionsPath {
get {
+ if (extensionsPath == null)
+ extensionsPath = Environment.GetEnvironmentVariable ("MSBuildExtensionsPath");
+
if (extensionsPath == null) {
// NOTE: code from mcs/tools/gacutil/driver.cs
PropertyInfo gac = typeof (System.Environment).GetProperty (