This repository was archived by the owner on Oct 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
src/AddIns/Misc/PackageManagement Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,13 +32,18 @@ string GetProjectKind(Project project)
3232 {
3333 string type = ProjectType . GetProjectType ( project ) ;
3434 if ( type == ProjectType . CSharp ) {
35- return SD . ProjectTypeGuids . CSharp . ToString ( ) ;
35+ return GetProjectKind ( SD . ProjectTypeGuids . CSharp ) ;
3636 } else if ( type == ProjectType . VB ) {
37- return SD . ProjectTypeGuids . VB . ToString ( ) ;
37+ return GetProjectKind ( SD . ProjectTypeGuids . VB ) ;
3838 }
3939 return String . Empty ;
4040 }
4141
42+ string GetProjectKind ( Guid guid )
43+ {
44+ return "{" + guid . ToString ( ) . ToUpperInvariant ( ) + "}" ;
45+ }
46+
4247 public string Kind { get ; private set ; }
4348 }
4449}
Original file line number Diff line number Diff line change 2121using ICSharpCode . Core ;
2222using ICSharpCode . PackageManagement ;
2323using ICSharpCode . PackageManagement . EnvDTE ;
24- using ICSharpCode . SharpDevelop . Dom ;
2524using ICSharpCode . SharpDevelop . Project ;
2625using NUnit . Framework ;
2726using PackageManagement . Tests . Helpers ;
@@ -141,7 +140,7 @@ public void Kind_ProjectIsCSharpProject_ReturnsCSharpProjectTypeGuid()
141140
142141 string kind = dteProject . Kind ;
143142
144- Assert . AreEqual ( ProjectTypeGuids . CSharp . ToString ( ) , kind ) ;
143+ Assert . AreEqual ( "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" , kind ) ;
145144 }
146145
147146 [ Test ]
@@ -151,7 +150,7 @@ public void Kind_ProjectIsVBNetProject_ReturnsVBProjectTypeGuid()
151150
152151 string kind = dteProject . Kind ;
153152
154- Assert . AreEqual ( ProjectTypeGuids . VB . ToString ( ) , kind ) ;
153+ Assert . AreEqual ( "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}" , kind ) ;
155154 }
156155
157156 [ Test ]
You can’t perform that action at this time.
0 commit comments