【问题标题】:Finding out what type of project it is in Visual Studio在 Visual Studio 中找出它是什么类型的项目
【发布时间】:2023-03-16 18:27:01
【问题描述】:

我想在 Visual Studio 中查找项目的类型。当我进行研究时,我发现了一些信息,当 .csproj 文件的 projecttypeGuid 与 MSDN 网站和以下链接中的列表进行比较时,这些信息没有提供有关如何查找 WCF 项目子类型的任何信息。当我比较时,我将 C# 和 Web 应用程序作为项目类型,但我的 .csproj 文件中有两个用分号分隔的 projecttypeguid,这无法检查它是什么类型的 WCF 项目。

我提到的一些链接是:

  1. How to find out what type of project I have in Visual Studio 2010

  2. How do you tell the Visual Studio project type from an existing Visual Studio project

  3. determine project type in visual studio

【问题讨论】:

    标签: c# asp.net wcf project project-types


    【解决方案1】:

    我想如果你进入项目的属性窗口,你会看到下面这张图片后面的信息。

    请查看输出类型。它显示类库。如果您的项目显示 Windows 应用程序,则输出为 Windows 应用程序。

    【讨论】:

    • 以后请不要复制粘贴答案,即使是你写的(答案完全相同here)。如有必要,您可以将问题标记为重复。
    【解决方案2】:

    我想你会发现这个问题很有用。它标识了应该枚举项目“Types”和“Flavors”的注册表项,它们分别是第一个和第二个 guid。

    What is the significance of ProjectTypeGuids tag in the visual studio project file

    您可能需要检查不同的注册表项,具体取决于您使用的 Visual Studio 版本。此示例使用 Visual Studio 版本 10(即 VS 2010)。当我检查 Visual Studio 12 的“类似”注册表路径 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\12.0 时,我发现没有 Packages 子键,因此方法可能已更改。

    如果您能提供更详细的信息,例如 Visual Studio 和 ASP.NET 的版本,或者具体的项目 GUID,我认为我们可以提出更有用的回应。

    干杯!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-12-28
      • 2016-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-21
      • 1970-01-01
      • 2011-02-07
      相关资源
      最近更新 更多