【问题标题】:Access a 2nd project in the same solution with MSBuild使用 MSBuild 在同一解决方案中访问第二个项目
【发布时间】:2008-09-29 13:03:10
【问题描述】:

我是 MSBuild 的新手,我正在学习,因为我需要知道如何做事。目前,我正在使用从 Visual Studio 的 Web 部署项目扩展生成的 MSBuild 文件。我已经可以通过创建这个 XML 块的属性来访问和操作直接在我的 Web 项目中的文件:

  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{0B9F9B60-7AD7-49F0-A168-9D4D29FB1A21}</ProjectGuid>
    <SourceWebPhysicalPath>..\ARP_FORMS</SourceWebPhysicalPath>
    <SourceWebProject>{7FCA4A38-0FEE-4D46-82EF-AD0089F9CAA2}|ARP_FORMS\ARP_FORMS.csproj</SourceWebProject>
    <SourceWebVirtualPath>/ARP_FORMS.csproj</SourceWebVirtualPath>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>

我需要创建属性来操作我的解决方案中其他项目的其他文件。谁能指出正确的语法?

【问题讨论】:

    标签: msbuild


    【解决方案1】:

    Sayed Ibrahim Hashimi answers this question 非常好,他包含示例源代码。基本上,您创建一个执行其他 MSBuild 项目的 MSBuild 项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-18
      • 1970-01-01
      • 1970-01-01
      • 2019-03-18
      • 1970-01-01
      • 2019-08-13
      • 1970-01-01
      • 2020-05-08
      相关资源
      最近更新 更多