-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Enable restore for ref and src projects in libs #33553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
b9e701e
Enable restore for ref and src projects in libs
ViktorHofer f9f120a
Rename .builds to .proj files in libraries
ViktorHofer 444f49f
Enable RestoreUseStaticGraphEvaluation
ViktorHofer 0bf42c0
RestoreGraph fixes
ViktorHofer f6dce74
Use private TargetFramework.Sdk package
ViktorHofer 99b837c
Update global.json
ViktorHofer 050280a
Introduce subsets
ViktorHofer 79715c4
Rename .builds to .proj
ViktorHofer f11dbd9
Depproj restore fixes
ViktorHofer 12e3116
traversal code cleanup
ViktorHofer 534b233
Package fixes
ViktorHofer 786700a
Add missing pinvoke exceptions
ViktorHofer ddfe69b
Move Tfm defines to Configurations.props
ViktorHofer 25a5a58
Build fixes for runtime.depproj and cleanup
ViktorHofer 5b71e82
Bring solution support back
ViktorHofer 95befac
Subset and yml fixes
ViktorHofer c2b3a93
runtime.depproj fixes for restore
ViktorHofer 2effd4c
Update subset rename
ViktorHofer bb5e0e7
Fix runtime.depproj tfm
ViktorHofer 872d5b4
Traversal support
ViktorHofer 65b1863
Update TargetFramework.Sdk
ViktorHofer 0dbcec2
Add required PackageReferences
ViktorHofer 6385ce2
Sequence GenerateRuntimeOSPropsFile correctly
ViktorHofer 95f4fd6
Avoid packages.proj binclashes
ViktorHofer 08fcf2e
Avoid dirs.proj binclashes
ViktorHofer 7b7ebf7
Downgrade compiler version
ViktorHofer e95e8e1
Upgrade Sdk.IL
ViktorHofer b54fed1
Fix Merge conflicts
ViktorHofer 12457da
Update IL versions in Version.Details.xml
ViktorHofer a3d014a
Move ToolRuntimeRID usage
ViktorHofer c5a4d8e
Fix typo in eng/build.sh
ViktorHofer 1d27de8
Fix Newtonsoft packagerefs
ViktorHofer 9be2b6d
Add missing json ref
ViktorHofer 7c64e58
Fix M.E.C.UserSecretes.Tests references
ViktorHofer 6eff600
Rename libraries tests subset to distinguish
ViktorHofer 2450615
Use entrypoint Build.proj file
ViktorHofer b53bfac
Fixes to make this build
ViktorHofer fff169e
Fix mono build
ViktorHofer 3f3c38e
Fix mono restore by sequencing correctly
ViktorHofer 7eb7c9b
Fix ordering of subsets
ViktorHofer b6e8d46
Remove outdated package doc section
ViktorHofer 3bb72d9
Build fixes and other nits
ViktorHofer 1467d42
Fix overlapping libraries test subset name
ViktorHofer a69fe7c
Fix enterprise build
ViktorHofer bb070c1
Generate RuntimeOSPropsFile correctly via sdk task
ViktorHofer 4e2a5f2
React to Extensions proj and harvesting fix
ViktorHofer c827bd7
Update .gitignore
ViktorHofer 2a4fca8
PR feedback
ViktorHofer 071c2ad
Erics PR feedback and delete nit
ViktorHofer a2fd1f8
Revert deletion and rename file
ViktorHofer 3ce089d
Fix ApiCompat invocation
ViktorHofer 7f810fb
Cleanup prop for shims
ViktorHofer 3c6c300
Move ILLink PackageRef into illink.targets and condition
ViktorHofer 65aa3e2
Revert packageref conditions
ViktorHofer 015f000
Remove implicit packageref
ViktorHofer a5712c5
Generate runtimeprops only once
ViktorHofer cbdd24d
Avoid binclashes of external projects
ViktorHofer f3508fa
Replace manual pretest invocation with subset
ViktorHofer c50661c
Fix run-test-job yml
ViktorHofer 2e071df
PR feedback and fix
ViktorHofer c7f8492
Disable netstandard.depproj in installer
ViktorHofer 352a8c3
Sequence runtime.depproj into pretest
ViktorHofer 384bc8d
Sequence depprojs correctly
ViktorHofer 7012d4c
Fix pretest build sequencing
ViktorHofer 45cb54e
Avoid binclashes with netstandard.*proj
ViktorHofer 6a8bc91
Disable netstandard ref pack for real
ViktorHofer 51a64f3
Add pretest subset to build-test-job
ViktorHofer cdb4e84
Fix parallel settings for installer projects
ViktorHofer ba0aabd
Finally found the installer bug
ViktorHofer 08cdc91
Fix packaging UsingTask element
ViktorHofer a4bdf5a
Add Json Package dependency
ViktorHofer 4a4b12a
Fix ordering of pack vs test targets for libs
ViktorHofer 6dd172e
Include pretest always
ViktorHofer ecc4135
Revert GenerateDependencyFile change in DependencyModel
ViktorHofer 321e181
Remove unused launchsettings target
ViktorHofer c14fb29
Remove json dependency
ViktorHofer 4c0c75e
Upgrade Newtonsoft.Json's version in DependencyModel
ViktorHofer 3acad7e
Upgrade SDK version to latest
ViktorHofer 2793329
Downgrade sdk version for UseDotnet@2 to work
ViktorHofer 97fd77a
Pin sdk for internal tools restore
ViktorHofer f98eb05
Upgrade sdk to a recognized version
ViktorHofer ffbd49d
Downgrade sdk again
ViktorHofer 49c2a31
Only copy packages dir if exists
ViktorHofer ed4d997
Avoid binclash for netcoreapp.depproj
ViktorHofer d225556
Use non static graph restore for depprojs
ViktorHofer 12466f2
Exlude depproj and pkgproj installer static graph restore
ViktorHofer 8350cbb
Fix packaging reports
ViktorHofer 16f2663
Avoid races in restore
ViktorHofer 48c6696
Move installer bundle to non static graph restore
ViktorHofer 7e01783
Disable static graph restore in installer pkgs
ViktorHofer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,7 @@ bld/ | |
| msbuild.log | ||
| msbuild.err | ||
| msbuild.wrn | ||
| msbuild.binlog | ||
| *.binlog | ||
| .deps/ | ||
| .dirstamp | ||
| .libs/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| <Project Sdk="Microsoft.Build.Traversal"> | ||
|
|
||
| <!-- | ||
| Subsets are already imported by Directory.Build.props. | ||
| Reference the projects for traversal build. Ordering matters here. | ||
| --> | ||
| <ItemGroup> | ||
| <ProjectReference Include="@(CoreClrProject)" /> | ||
| <ProjectReference Include="@(MonoProject)" /> | ||
| <ProjectReference Include="@(LibrariesProject)" /> | ||
| <ProjectReference Include="@(InstallerProject)" /> | ||
| </ItemGroup> | ||
|
|
||
| <!-- | ||
| Exclude installer depproj and pkgproj from static graph restore. We restore them below. | ||
| Remove when https://github.com/NuGet/Home/issues/9398 is fixed. | ||
| --> | ||
| <ItemGroup Condition="'$(MSBuildRestoreSessionId)' != ''"> | ||
| <ProjectReference Remove="@(DepprojProjectToBuild)" /> | ||
| <ProjectReference Remove="@(PkgprojProjectToBuild)" /> | ||
| <ProjectReference Remove="@(BundleProjectToBuild)" /> | ||
| </ItemGroup> | ||
|
|
||
| <!-- Custom arcade target which isn't available in Microsoft.Build.Traversal. --> | ||
| <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> | ||
|
|
||
| <Import Project="$(RepositoryEngineeringDir)SubsetValidation.targets" /> | ||
|
|
||
| <!-- Upfront restore hooks --> | ||
| <Import Project="$(RepositoryEngineeringDir)restore\docs.targets" Condition="'$(DotNetBuildFromSource)' != 'true'" /> | ||
| <Import Project="$(RepositoryEngineeringDir)restore\optimizationData.targets" Condition="'$(DotNetBuildFromSource)' != 'true' and '$(EnableNgenOptimization)' == 'true'" /> | ||
| <Import Project="$(RepositoryEngineeringDir)restore\runtimeprops.targets" /> | ||
|
|
||
| <!-- | ||
| Use synthetic inputs/outputs to avoid building it all the time. This should let devs build with | ||
| MSBuild node reuse enabled (the Arcade default). If it were built every time, it would hit file | ||
| locking issues vs. the persistent nodes that loaded the task DLL for the previous build. It | ||
| isn't particularly accurate, but better than nothing. | ||
| --> | ||
| <Target Name="BuildRepoTasks" | ||
| DependsOnTargets="GetRepoTasksSrc" | ||
| BeforeTargets="Restore" | ||
| Inputs="@(RepoTasksSrc)" | ||
| Outputs="$(RepoTasksOutputFile)"> | ||
| <ItemGroup> | ||
| <RepoTaskProjects Include="$(RepoTasksDir)**\*.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| <MSBuild Projects="@(RepoTaskProjects)" | ||
| Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());Configuration=Debug;Platform=AnyCPU" | ||
| Targets="Restore"/> | ||
|
|
||
| <MSBuild Projects="@(RepoTaskProjects)" | ||
| Properties="Configuration=Debug;Platform=AnyCPU" | ||
| Targets="Build"/> | ||
|
|
||
| <WriteLinesToFile File="$(RepoTasksOutputFile)" | ||
| Lines="$(RepoTasksOutputFile)" | ||
| Overwrite="true" /> | ||
| </Target> | ||
|
|
||
| <Target Name="GetRepoTasksSrc"> | ||
| <PropertyGroup> | ||
| <RepoTasksDir>$(RepoTasksDir)</RepoTasksDir> | ||
| <RepoTasksOutputFile>$(ArtifactsObjDir)runtime.tasks\Debug\build-semaphore.txt</RepoTasksOutputFile> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <RepoTasksSrc Include="$(RepoTasksDir)**\*.cs*" /> | ||
| </ItemGroup> | ||
| </Target> | ||
|
|
||
| <Target Name="RestoreWithoutStaticGraph" | ||
| BeforeTargets="Restore"> | ||
| <MSBuild Projects="@(LibrariesRestoreProject);@(DepprojProjectToBuild);@(PkgprojProjectToBuild);@(BundleProjectToBuild)" | ||
| Properties="MSBuildRestoreSessionId=$([System.Guid]::NewGuid());RestoreUseStaticGraphEvaluation=false" | ||
| Targets="Restore" /> | ||
| </Target> | ||
|
|
||
| </Project> | ||
ViktorHofer marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.