Skip to content
代码片段 群组 项目
repo.props 4.1 KB
更新 更旧
<Project>
  <PropertyGroup>
    <!-- This repo does not have solutions to build -->
    <DisableDefaultTargets>true</DisableDefaultTargets>
    <DisableDefaultItems>true</DisableDefaultItems>
    <BuildSolutions>false</BuildSolutions>

    <SkipTests>false</SkipTests>
    <SkipTests Condition="'$(CompileOnly)' == 'true'">true</SkipTests>
    <IsFinalBuild Condition="'$(IsFinalBuild)' == ''">false</IsFinalBuild>

    <SubmoduleRoot>$(RepositoryRoot)modules\</SubmoduleRoot>

    <DependencyPackageDir>$(RepositoryRoot).deps\build\</DependencyPackageDir>
    <SignedDependencyPackageDir>$(RepositoryRoot).deps\Signed\Packages\</SignedDependencyPackageDir>
    <SharedSourcesFolder>$(RepositoryRoot)src\Shared\</SharedSourcesFolder>
    <SharedSourceDirectories Include="$(SharedSourcesFolder)Hosting.WebHostBuilderFactory\" />
  <ItemGroup>
    <IntermediateInstaller Include="win-x86" FileExt=".zip" />
    <IntermediateInstaller Include="win-x86" FileExt=".wixlib" />
    <IntermediateInstaller Include="win-x64" FileExt=".zip" />
    <IntermediateInstaller Include="win-x64" FileExt=".wixlib" />
    <IntermediateInstaller Include="osx-x64" FileExt=".tar.gz" />
    <IntermediateInstaller Include="linux-x64" FileExt=".tar.gz" />
    <IntermediateInstaller Include="linux-arm" FileExt=".tar.gz" />
    <IntermediateInstaller Include="linux-musl-x64" FileExt=".tar.gz" />

    <NativeInstaller Include="win-x86" FileExt=".exe" />
    <NativeInstaller Include="win-x86" FileExt=".zip" />
    <NativeInstaller Include="win-x64" FileExt=".exe" />
    <NativeInstaller Include="win-x64" FileExt=".zip" />
    <NativeInstaller Include="osx-x64" FileExt=".tar.gz" />
    <NativeInstaller Include="linux-x64" FileExt=".tar.gz" />
    <NativeInstaller Include="linux-arm" FileExt=".tar.gz" />
    <NativeInstaller Include="linux-musl-x64" FileExt=".tar.gz" />
    <NativeInstaller Include="x64" FileExt=".deb" />
='s avatar
= 已提交
    <NativeInstaller Include="x64" FileExt=".rpm" />
    <NativeInstaller Include="rh.rhel.7-x64" FileExt=".rpm" />

    <SharedFrameworkName Include="Microsoft.AspNetCore.All" />
    <SharedFrameworkName Include="Microsoft.AspNetCore.App" />
    <SamplesProject Include="$(RepositoryRoot)src\**\samples\**\*.csproj;"/>

    <ProjectToExclude Include="@(SamplesProject)" Condition="'$(BuildSamples)' == 'false' "/>

    <!-- Exclude the websockets samples for now because they use classic .csproj, which is not yet supported in our build. -->
    <ProjectToExclude Include="
                       $(RepositoryRoot)src\Middleware\WebSockets\samples\**\*.csproj;
                       $(RepositoryRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj

    <ProjectToBuild Include="
                      $(RepositoryRoot)src\Features\JsonPatch\**\*.*proj;
                      $(RepositoryRoot)src\DataProtection\**\*.*proj;
                      $(RepositoryRoot)src\Hosting\**\*.*proj;
                      $(RepositoryRoot)src\Http\**\*.*proj;
                      $(RepositoryRoot)src\Tools\**\*.*proj;
                    Exclude="
                      @(ProjectToExclude);
                      $(RepositoryRoot)**\bin\**\*;
    <!-- myget = non-orchestrated builds -->
    <PublishToMyGet Condition=" $(PublishType.Contains('myget')) ">true</PublishToMyGet>
    <!-- azure = non-orchestrated builds -->
    <PublishToAzureFeed Condition="$(PublishType.Contains('azure'))">true</PublishToAzureFeed>
    <!-- blob = orchestrated builds -->
    <PublishToTransportFeed Condition="$(PublishType.Contains('blob'))">true</PublishToTransportFeed>
  <Import Project="runtimes.props" />
  <Import Project="external-dependencies.props" />
  <Import Project="artifacts.props" />
  <Import Project="submodules.props" />