* Remove some dependencies from source build
* Add back GenAPI for sourcebuild
We cannot remove GenAPI as it is needed for generating platform-not-supported
assemblies.
We will need handle this differently. The tentative plan is that sourcebuild
will have two phases. During the first phase we can use GenAPI and generate
source for not-supported assemblies and save it off in some location. In the
second phase of source build (OfflineBuild=true) we won't use GenAPI and instead
will read the sources from this location.
Commit migrated from https://github.com/dotnet/corefx/commit/
ecfb60b67d09b992f24af0625305299710bc128f
-<Project>
+<Project DefaultTargets="Build">
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.targets))" />
<Target Name="BuildAllProjects" DependsOnTargets="FilterProjects">
<Project Include="Native\native-binplace.proj" />
<Project Include="src.builds" />
<Project Include="shims\manual\*.csproj" />
- <Project Include="shims\ApiCompat.proj" />
- <Project Include="pretest.builds" />
+ <Project Include="shims\ApiCompat.proj" Condition="'$(DotNetBuildFromSource)' != 'true'" />
+ <Project Include="pretest.builds" Condition="'$(DotNetBuildFromSource)' != 'true'" />
</ItemGroup>
<!-- Don't build System.Text.Encodings.Web tools as part of build; they're intended to be run manually. -->