Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d21149

Browse files
committed
Cannot add reference to F# PCL project
==========================Update the project system to retrieve the value for : VSHPROPID_TargetPlatformIdentifier (changeset 1304952)
1 parente91de7e commit8d21149

File tree

1 file changed

+8
-1
lines changed
  • vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project

1 file changed

+8
-1
lines changed

‎vsintegration/src/vs/FsPkgs/FSharp.Project/Common.Source.CSharp/Project/HierarchyNode.cs‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ internal event EventHandler<HierarchyNodeEventArgs> OnChildRemoved
8686
publicstaticreadonlyGuidSolutionExplorer=newGuid(EnvDTE.Constants.vsWindowKindSolutionExplorer);
8787
publicconstintNoImage=-1;
8888
#ifDEBUG
89-
/*internal, but public for FSharp.Project.dll*/publicstaticintLastTracedProperty=0;
89+
/*Available only in debug build for FSharp.Project.dll*/
90+
publicstaticintLastTracedProperty=0;
9091
#endif
9192
#endregion
9293

@@ -832,6 +833,12 @@ public virtual object GetProperty(int propId)
832833
// Indicates what runtime the project targets
833834
result=(UInt32)__VSPROJTARGETRUNTIME.VSPROJ_TARGETRUNTIME_MANAGED;
834835
}
836+
837+
if(propId==(int)__VSHPROPID5.VSHPROPID_TargetPlatformIdentifier)
838+
{
839+
// Indicates the target platform (e.g., Windows, Portable, or WindowsPhone)
840+
result=this.ProjectMgr.GetProjectProperty("TargetPlatformIdentifier");
841+
}
835842
#endif
836843

837844
#ifDEBUG

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp