Welcome to mirror list, hosted at ThFree Co, Russian Federation.

repo.props « build - github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e595d67e626934d4d416e1dc89b7dc22abdad4cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<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>
    <SharedFxArchitecture Condition="'$(SharedFxArchitecture)' == ''">$(SharedFxRid.Substring($([MSBuild]::Add($(SharedFxRid.LastIndexOf('-')), 1))))</SharedFxArchitecture>
    <BuildSiteExtension>false</BuildSiteExtension>
    <BuildSiteExtension Condition="'$(BuildSiteExtension)' == 'true' AND '$(OS)' != 'Windows_NT'">false</BuildSiteExtension>
  </PropertyGroup>

  <ItemGroup>
    <SharedSourceDirectories Include="$(SharedSourcesFolder)Hosting.WebHostBuilderFactory\" />
  </ItemGroup>

  <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" />
    <NativeInstaller Include="x64" FileExt=".rpm" />
    <NativeInstaller Include="rh.rhel.7-x64" FileExt=".rpm" />

    <SharedFrameworkName Include="Microsoft.AspNetCore.All" />
    <SharedFrameworkName Include="Microsoft.AspNetCore.App" />
  </ItemGroup>

  <ItemGroup>
    <!-- These projects use 'legacy' csproj, which is not supported by dotnet-msbuild. -->
    <ProjectToExclude Include="
                      $(RepositoryRoot)src\Servers\HttpSys\samples\TestClient\TestClient.csproj;
                      $(RepositoryRoot)src\Middleware\WebSockets\samples\TestServer\TestServer.csproj;
                      $(RepositoryRoot)src\Identity\samples\NativeWPFClient\NativeWPFClient.csproj;
                      "
                      Condition=" '$(MSBuildRuntimeType)' == 'Core' " />

    <!-- 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\Middleware\NodeServices.Sockets\**\*.csproj;
                      $(RepositoryRoot)src\Tools\dotnet-watch\test\TestProjects\**\*.csproj;
                      $(RepositoryRoot)src\Razor\Razor.Design\test\testassets\**\*.*proj;
                      $(RepositoryRoot)src\SignalR\clients\cpp\**\*.*proj;
                      $(RepositoryRoot)src\SignalR\clients\ts\**\node_modules\**\*.*proj;
                      " />
  </ItemGroup>

  <Choose>
    <!-- Project selection can be overridden on the command line by passing in -projects -->
    <When Condition="'$(Projects)' != ''">
      <ItemGroup>
        <ProjectToBuild Include="$(Projects)" Exclude="@(ProjectToExclude)">
          <RestoreInParallel Condition="'%(Extension)' == '.npmproj'">false</RestoreInParallel>
        </ProjectToBuild>
      </ItemGroup>
    </When>
    <Otherwise>
      <ItemGroup>
        <ProjectToBuild Condition="'$(SkipNpm)' != 'true'"
                        Include="$(RepositoryRoot)src\SignalR\**\*.npmproj"
                        RestoreInParallel="false"
                        Exclude="@(ProjectToExclude)" />

        <ProjectToBuild Include="
                          $(RepositoryRoot)src\DefaultBuilder\**\*.*proj;
                          $(RepositoryRoot)src\Features\JsonPatch\**\*.*proj;
                          $(RepositoryRoot)src\DataProtection\**\*.*proj;
                          $(RepositoryRoot)src\Antiforgery\**\*.*proj;
                          $(RepositoryRoot)src\Hosting\**\*.*proj;
                          $(RepositoryRoot)src\Http\**\*.*proj;
                          $(RepositoryRoot)src\Html\**\*.*proj;
                          $(RepositoryRoot)src\Identity\**\*.*proj;
                          $(RepositoryRoot)src\Servers\**\*.csproj;
                          $(RepositoryRoot)src\Servers\**\*.pkgproj;
                          $(RepositoryRoot)src\Security\**\*.*proj;
                          $(RepositoryRoot)src\Shared\**\*.*proj;
                          $(RepositoryRoot)src\Tools\**\*.*proj;
                          $(RepositoryRoot)src\Middleware\**\*.*proj;
                          $(RepositoryRoot)src\Razor\**\*.*proj;
                          $(RepositoryRoot)src\Mvc\**\*.*proj;
                          $(RepositoryRoot)src\Azure\**\*.*proj;
                          $(RepositoryRoot)src\MusicStore\**\*.*proj;
                          $(RepositoryRoot)src\SignalR\**\*.csproj;
                          "
                        Exclude="
                          @(ProjectToExclude);
                          $(RepositoryRoot)**\node_modules\**\*;
                          $(RepositoryRoot)**\bin\**\*;
                          $(RepositoryRoot)**\obj\**\*;">
          <RestoreInParallel Condition="'%(Extension)' == '.npmproj'">false</RestoreInParallel>
        </ProjectToBuild>
      </ItemGroup>
    </Otherwise>
  </Choose>

  <!-- Properties for publishing -->
  <PropertyGroup>
    <!-- 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>
  </PropertyGroup>

  <Import Project="runtimes.props" />
  <Import Project="sources.props" />
  <Import Project="external-dependencies.props" />
  <Import Project="artifacts.props" />
  <Import Project="submodules.props" />
</Project>