【问题标题】:VBPROJ / CSPROJVBPROJ / CSPROJ
【发布时间】:2010-10-15 18:37:02
【问题描述】:

我正在尝试深入了解 VBPROJ 文件的 XML。有谁知道我在哪里可以找到解释结构和属性用法的好资源?

【问题讨论】:

    标签: .net asp.net visual-studio visual-studio-2008 visual-studio-2005


    【解决方案1】:

    csproj 或 vbproj 文件只不过是 msbuild xml 文件,它们将被 msbuild.exe 使用。这些 xml 文件遵循 msbuild 架构,即:Microsoft.Build.xsd

    1. 有关 msbuild 架构参考,请参阅 http://msdn.microsoft.com/en-us/library/5dy88c2e.aspx
    2. 阅读Sara Ford's blog post about editing csproj/vbproj files in VS IDE
    3. Where is the MSBuild schema file?
    4. 另一个post on msdn blogs about editing csproj/vbproj files

    【讨论】:

    • .NET 1.1 怎么样,MSBUILD Schema 似乎只有 2.0 +
    【解决方案2】:

    如果您正在寻找此信息以便以编程方式翻阅一些 vbproj 文件,您可能需要查看Microsoft.Build.Engine.dll。引用此组件可让您访问 MSBuild 对象模型,该模型可用于读取和操作 MSBuild 文件(csproj 和 vbproj 文件是)。

    【讨论】:

      【解决方案3】:

      看看this code。它包含一个简单的 VS 解决方案和 csproj 文件解析器。 Vbproj 应该没有太大不同,因此您应该能够根据需要对其进行扩展。它在 MIT 许可下获得许可。

      【讨论】:

        猜你喜欢
        • 2010-09-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-03-13
        • 2021-12-27
        相关资源
        最近更新 更多