Commit graph

7 commits

Author SHA1 Message Date
Viktor Hofer
12eec080d5
Use Microsoft.Build.NoTargets in repo-projects (#19363) 2024-04-09 11:48:12 +02:00
Matt Thalman
ed324e09c7
Isolate package flow between repos (#18557)
As a prerequisite to enabling parallel builds of the repos in the VMR, it's necessary to isolate the package flow between repos. This ensures that repo dependencies are defined correctly. Prior to these changes, the packages outputted by repos went to the same directory (Shipping or NonShipping) and those two directories were used as the package feed inputs to dependent repos. This would be dangerous in the context of running builds in parallel across repos because any ill-defined dependencies could lead to race conditions. For example, consider the msbuild repo's dependency on System.Text.Json from the runtime repo. If runtime was not defined as a dependency of msbuild, then there's no guarantee that System.Text.Json will exist when it restores it. Based on timing, it may exist in one build and then not exist in another build.

To solve this problem, the packages output from a repos build are placed in a repo-specific package location as a sub-directory of the package location (Shipping or NonShipping). Previously, all repos would output their packages to `artifacts/packages/Release/[NonShipping|Shipping]`. With these changes, they output to `artifacts/packages/Release/[NonShipping|Shipping]/<repo-name>`. This isolates all packages on a per-repo basis. The next step is to provide access to these packages based on dependencies. Going back to msbuild's dependency on runtime, this is accomplished by modifying msbuild's nuget.config file to include feeds specific to runtime:

```xml
<add key="source-built-runtime" value="/vmr/artifacts/packages/Release/Shipping/runtime/" />
<add key="source-built-transport-runtime" value="/vmr/artifacts/packages/Release/NonShipping/runtime/" />
```
2024-02-22 10:25:55 -06:00
Viktor Hofer
3f980aa02a Update all repo-projects to new switches and clean-up 2024-01-11 20:12:51 +01:00
Michael Simons
3df53fc088
Change the PackageVersionPropsFlowType to DependenciesOnly (#17011) 2023-07-19 12:44:58 -05:00
Michael Simons
e9175418d6
Enable per repo pvp for format, fsharp, and test-templates (#16540) 2023-05-31 14:19:12 -05:00
Michael Simons
adbf0bfcbe
Remove obsolete source-build repoAPI (#15526) 2023-02-16 18:40:45 +00:00
Přemek Vysoký
5aac0db522
Move src/SourceBuild/tarball/* up one folder (#15166) 2022-12-21 21:47:54 +01:00
Renamed from src/SourceBuild/tarball/content/repo-projects/test-templates.proj (Browse further)