1

Hello I have been having issues with MonoGame when building I get the glbind... error in the opengl32.dll so I was suggested to find my GUID and it sounds like a simple task but i have looked in the project folder files and cant find it I found one which is

<ProjectGuid>{325BCA73-8459-49AF-9C31-D4A268BF8A1A}</ProjectGuid>

but im looking for one like this

<ProjectTypeGuids>{9B831FEF-F496-498F-9FE8-180DA5CB4258};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

here is a image of my file folder and the main "collisions".csproj file where I found the one GUID. I have done some research but i cant seem to find an answer as to where to look. HERE

More accuretly im looking for the Projecttypeguids so I can delete one of them to see if that solves my problem as suggested here....I recognized what i worded at the top is kind of vague sorry

Here

4

3 に答える 3

1

あなたが与えた最初の例は、プロジェクトの GUID です。したがってProjectGuid
2 つ目は、プロジェクトのプロジェクト タイプの GUID のリストです。したがってProjectTypeGuids

プロジェクトの GUID を探している場合は、最初の例が正しい答えを示しています。

于 2013-06-05T01:22:11.983 に答える
0

リンク先のスクリーンショットは、タイプ GUID がリストされていないプロジェクトを示しています。存在する場合、値は主に開発ツールによって使用されます (たとえば、VS はそれを使用して、新しい項目を追加するためのコンテキスト メニューに含める項目を決定します)。プロジェクト タイプの GUID がない場合でも、プロジェクトはほとんどの場合「機能」します。一部ですが、選択した IDE で奇妙な動作が発生する可能性があります。

質問のプロジェクト タイプ GUID 値は、MonoGame プラグインを使用する C# アプリケーションであるプロジェクトに対して正しいです。プロジェクト ファイルにそのタグがない場合は、プロジェクトに必要な GUID を自分で追加してください。

(よく知られている GUID のリストはここにありますが、MonoGame のものは Google で調べなければなりませんでした。)

于 2013-06-05T01:37:42.993 に答える
0

最初に、winforms または wpf を使用しているものについて言及しませんでした。

OK何でも。wpfを使用している場合、ProjectTypeGuidsはwinformsでサポートされていません。

wpf を使用している場合は、次のコードを使用できます。

 public string GetProjectTypeGuids(EnvDTE.Project proj)
       {

      string projectTypeGuids = "";
      object service = null;
      Microsoft.VisualStudio.Shell.Interop.IVsSolution solution = null;
      Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy = null;
      Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject aggregatableProject = null;
      int result = 0;

      service = GetService(proj.DTE, typeof(Microsoft.VisualStudio.Shell.Interop.IVsSolution));
      solution = (Microsoft.VisualStudio.Shell.Interop.IVsSolution)service;

      result = solution.GetProjectOfUniqueName(proj.UniqueName, hierarchy);

      if (result == 0)
      {
         aggregatableProject = (Microsoft.VisualStudio.Shell.Interop.IVsAggregatableProject) hierarchy;
         result = aggregatableProject.GetAggregateProjectTypeGuids(projectTypeGuids);
      }

      return projectTypeGuids;

   }

   public object GetService(object serviceProvider, System.Type type)
   {
      return GetService(serviceProvider, type.GUID);
   }

   public object GetService(object serviceProviderObject, System.Guid guid)
   {

      object service = null;
      Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider = null;
      IntPtr serviceIntPtr;
      int hr = 0;
      Guid SIDGuid;
      Guid IIDGuid;

      SIDGuid = guid;
      IIDGuid = SIDGuid;
      serviceProvider = (Microsoft.VisualStudio.OLE.Interop.IServiceProvider)serviceProviderObject;
      hr = serviceProvider.QueryService(SIDGuid, IIDGuid, serviceIntPtr);

      if (hr != 0)
      {
         System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(hr);
      }
      else if (!serviceIntPtr.Equals(IntPtr.Zero))
      {
         service = System.Runtime.InteropServices.Marshal.GetObjectForIUnknown(serviceIntPtr);
         System.Runtime.InteropServices.Marshal.Release(serviceIntPtr);
      }

      return service;
   }

ここからです

于 2013-06-05T02:21:03.083 に答える