[Pkg-cli-apps-commits] [fsharp] 25/60: Cannot add reference to F# PCL project ==========================

Christopher Halse Rogers raof-guest at moszumanska.debian.org
Sun Sep 14 08:13:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

raof-guest pushed a commit to branch master
in repository fsharp.

commit 8d21149bb0c87943383ffac75acf11b496a60262
Author: KevinRansom <kevinr at microsoft.com>
Date:   Thu Jul 24 14:01:53 2014 -0700

    Cannot add reference to F# PCL project
    ==========================
    
    Update the project system to retrieve the value for : VSHPROPID_TargetPlatformIdentifier
    
     (changeset 1304952)
---
 .../FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs b/vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs
index 9eef80c..c38bca9 100644
--- a/vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs
+++ b/vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs
@@ -86,7 +86,8 @@ namespace Microsoft.VisualStudio.FSharp.ProjectSystem
         public static readonly Guid SolutionExplorer = new Guid(EnvDTE.Constants.vsWindowKindSolutionExplorer);
         public const int NoImage = -1;
 #if DEBUG
-        /*internal, but public for FSharp.Project.dll*/ public static int LastTracedProperty = 0;
+        /*Available only in debug build for FSharp.Project.dll*/ 
+        public static int LastTracedProperty = 0;
 #endif
         #endregion
 
@@ -832,6 +833,12 @@ namespace Microsoft.VisualStudio.FSharp.ProjectSystem
                 // Indicates what runtime the project targets
                 result = (UInt32)__VSPROJTARGETRUNTIME.VSPROJ_TARGETRUNTIME_MANAGED;
             }
+
+            if (propId == (int)__VSHPROPID5.VSHPROPID_TargetPlatformIdentifier)
+            {
+                // Indicates the target platform (e.g., Windows, Portable, or WindowsPhone)
+                result = this.ProjectMgr.GetProjectProperty("TargetPlatformIdentifier");
+            }
 #endif
 
 #if DEBUG

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-apps/packages/fsharp.git



More information about the Pkg-cli-apps-commits mailing list