1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Commit graph

214 commits

Author SHA1 Message Date
Carlos Sánchez López
79043bb3aa
Update ApiCompatNetCoreAppBaselineVersion to 9.0.0 (#109789) 2024-11-14 13:00:03 -08:00
Carlos Sánchez López
824bdd214e
[release/9.0-staging] Switch to non-incremental servicing (#109316)
* Change pre-release version label to servicing. Bump patch version to 1.
* Switch to non-incremental servicing.
- Remove incremental servicing docs.
- Update APICompat baseline.
- Remove some mentions of package servicing process.
- Remove redundant source build setting of GeneratePackageOnBuild.
* Change the S.D.DS. ProjectReference to `src` instead of `ref` in M.E.L.C.
* Update the template message
* Update backport.yml message
* Update library-servicing.md

---------

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2024-11-13 11:59:51 -06:00
Eric StJohn
9305d7f71d
Port NuGet Audit back to 9.0 (#108854)
* Enable NuGet Audit and fix issues (#107639)

* Enable NuGet Audit and fix issues

Microsoft.NET.HostModel can reference the live builds of the packages
it depends on.  These will be deployed by the SDK.
Most other audit alerts were due to tasks pulling in old dependencies
that aren't even used by the task. Avoid these by cherry-picking
just the assemblies needed by the tasks and provided by MSBuild / SDK.
This prevents NuGet from downloading the package closure with the
vulnerable packages.  We don't need those packages since the tasks
aren't responsible for deploying them.  A better solution in the future
would be a targeting pack for MSBuild and the .NET SDK - so that
components that contribute to these hosts have a surface area they can
target without taking on responsibility for servicing.

There is once case where we have a test that references NuGet.* packages
which also bring in stale dependencies that overlap with framework
assemblies.  Avoid these by cherry-picking the NuGet packages in the
same way.

* Fix package path on linux

* Only use live JSON from HostModel

SDK pins S.R.M and a few others, so don't make them upgrade yet.

* Add a couple missing assembly references

* Refactor tasks dependencies

Consolidate representation of msbuild-provided task dependencies

* Fix audit warnings in tests

* Remove MetadataLoadContext from WasmAppBuilder package

* Update Analyzer.Testing packages

* Reduce exposure of Microsoft.Build.Tasks.Core

* Fix audit warnings that only occur on browser

* Update Asn1 used by linker analyzer tests

* React to breaking change in analyzer test SDK

* Enable working DryIoc tests

* Fix double-write when LibrariesConfiguration differs from Configuration

* Fix LibrariesConfiguration update target

* Clean up references and add comments.

* Make HostModel references private

This ensures projects referenced will not be rebuilt by tests.

This also means the HostModel package will not list these as references,
but that's OK since the SDK provides them and this is not a shipping
package.

* Use ProjectReferenceExclusion to avoid framework project references

On .NETCore we want to use the targeting pack and avoid rebuilding libs.

* Update src/libraries/System.Runtime.InteropServices.JavaScript/tests/JSImportGenerator.UnitTest/JSImportGenerator.Unit.Tests.csproj

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>

---------

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>

* Remove live System.Text.Json reference from HostModel (#108263)

* Reduce changes to src/installer

Since we're no longer trying to reference live S.T.J we don't need these.

* Update JSON toolset version

* Don't error for NuGet audit on non-official builds (#108718)

* Reference live S.T.JSON from DI.ExternalContainers.Tests

* Update STJ in Wasm.Build.Tests

* Make SystemTextJsonToolsetVersion 8.0.4

We cannot count on VS and MSBuild updating by the time 9.0 ships GA.

Fix WASM projects which only target .NET by referencing the LKG and dropping all assets.

For Microsoft.NET.HostModel and other build tasks, keep them on the version we can garuntee is present in VS.  NoWarn the Audit warnings here.  This is safe because we can ensure one of two things.
1. The package is non-shipping and customers won't see the warning and the referencing repo in the product will ensure an update or exclusion of the dependency. (HostModel)
2. The project excludes the reference entirely as making it PrivateAssets (not in package) and ExcludeAssets=runtime  (no possibility of using runtime).

* Fix STJ audit warning in installer tests

---------

Co-authored-by: Jeremy Koritzinsky <jkoritzinsky@gmail.com>
2024-10-16 08:16:02 -07:00
Adam Sitnik
34b0d9df32
[release/9.0] BinaryFormatter tests improvements (#107540)
* Remove package references from library tests (#106737)

* Remove package references from library tests

These tests should be referencing the product assemblies so that they
test latest and not old bits.

* Reference the OOB version of SRSF and make sure it's copied

* BinaryFormatter tests should be skipped only on AOT, WASM and Mobile (#106858)

* respect AppContext switch (which is currently enabled for all projects in the root Directory.Build.props file)

* add project reference to all test projects that need working BF (and were being skipped for a while)

* adjust to changes from #104202: EqualityComparer<string>.Default is mapped to StringEqualityComparer, but serialized as GenericEqualityComparer<string>

* Don't use WeakReferences in the round trip test, as the target may get freed in the meantime, fixes #104905 (#106967)

* Enable more BinaryFormatter tests (#107408)

* enable the BinaryFormatter tests in System.Runtime.Serialization.Formatters.Tests

* add new test project, where the flag is disabled and it runs only 3 tests in total that ensure that

* The SerializationGuard is no longer activated since BF was moved to the OOB package, the tests need to reflect that.

* Disable binary formatter tests when DotNetBuildSourceOnly. (#107549)

* [mono][tvos] Do not treat assembly.pdb/xml files as native files to bundle when AOTing on Helix (#107079)

* Do not treat assembly.pdb/xml files as native files to bundle

* Bundle satellite assemblies as well

* [mono][ci] Include PDBs from runtime pack when building on Helix if required (#107348)

---------

Co-authored-by: Eric StJohn <ericstj@microsoft.com>
Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com>
Co-authored-by: Ivan Povazan <55002338+ivanpovazan@users.noreply.github.com>
2024-09-17 10:56:23 -06:00
Viktor Hofer
fa33eddf35
Fix UseCompilerGeneratedDocXmlFile default value (#106179)
* Fix wrong default for UseCompilerGeneratedDocXmlFile property

* Suppress undocumented public APIs that went in since the switch got a wrong default

* PR feedback (add warning)

* React to System.Speech not having an intellisense xml file

* Update Directory.Build.props

* Update intellisense.targets

* Remove property from private assembly

* Suppress PNSE doc error for System.Speech
2024-08-10 16:24:29 +02:00
Stephen Toub
19f03850ca
Replace most corelib uses of Unsafe.SizeOf<T> with sizeof(T) (#104923)
Also suppress CS8500 globally rather than in hundreds of files individually and fix NoWarns that weren't inheriting global NoWarns.
2024-07-17 06:44:53 -04:00
Carlos Sánchez López
cf08d43a93
Migrate to zlib-ng, part 2: consume it in runtime (second attempt) (#104454)
* Reapply "Migrate to zlib-ng, part 2: consume it in runtime (#102403)" (#104414)
* Apply jkotas comment suggestion in configureplatform.cmake
* Delete unnecessary comment in zlib-ng.cmake
* Fix windows nativeaot failure happening when executing:

build.cmd -ci -arch x64 -os windows  -s clr.nativeaotlibs+clr.nativeaotruntime+libs+packs -c Release /p:BuildNativeAOTRuntimePack=true /p:SkipLibrariesNativeRuntimePackages=true
2024-07-08 23:11:47 +00:00
Andy Gocke
5b86dca8e7
Revert "Migrate to zlib-ng, part 2: consume it in runtime (#102403)" (#104414)
This reverts commit f5c9a5e8f5.
2024-07-04 15:47:50 +02:00
Carlos Sánchez López
f5c9a5e8f5
Migrate to zlib-ng, part 2: consume it in runtime (#102403)
This replaces our dependency of madler/zlib and zlib-intel with a dependency to an in-tree copy of zlib-ng, which will be used across coreclr, mono and nativeaot.

Mobile platforms (android, tvos, ios, maccatalyst) and armv6 are excluded from using the in-tree zlib-ng copy, and they will find and use the system-installed zlib instead.

---------

Co-authored-by: Jeremy Koritzinsky <jekoritz@microsoft.com>
2024-07-02 23:25:58 -07:00
Alexander Köplinger
7107ff64f3
Update references to dotnet/installer repo (#103077)
The installer repo was merged into the sdk repo.
2024-06-06 00:11:49 +02:00
Jan Kotas
153a94b88d
Delete DebugSymbols=true setting for the repo build (#102392)
* Delete DebugSymbols

This property does not do what its name says. The symbols are generated regardless of whether this property is true or false. What this property actually does is that it disables C# peephole IL optimizations.

This change results in ~0.5% IL binary size improvement thanks to the Roslyn IL peephole optimizations that it enables.

* Update eng/illink.targets

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>

---------

Co-authored-by: Michal Strehovský <MichalStrehovsky@users.noreply.github.com>
2024-05-21 08:15:28 -07:00
Jeremy Koritzinsky
44d919ddef
Provide MSBuild properties to use the new libc++ configuration we plan on using in our builds (#101773)
Co-authored-by: Sven Boemer <sbomer@gmail.com>
2024-05-15 11:40:14 -07:00
Pavel Savara
d0dffe1dcf
[WASI] update WASI SDK to 22 and wasmtime to 19.0.2 (#101392) 2024-04-25 14:59:01 +02:00
Alexander Köplinger
0a220d534b
Bump minimum Apple OS versions (#101342)
As defined in the ".NET 9 - Supported OS versions" document: https://github.com/dotnet/core/blob/main/release-notes/9.0/supported-os.md

- macOS 12.0
- iOS/iOSSimulator 12.2
- tvOS/tvOSSimulator 12.2
- MacCatalyst 15.0 (== macOS 12.0)

Fixes https://github.com/dotnet/runtime/issues/91736
2024-04-23 15:23:13 +02:00
Michal Strehovský
d8eecb714f
Run trimming tests as AOT tests (#101229)
Not everything is passing, so I baselined this. Some we'll probably exclude permanently, others are more concerning and we need to determine if it's test issues or product issues.
2024-04-22 11:44:17 +02:00
Vitek Karas
578e82967c
Allow using VS to run host tests when libraries use different config (#91873)
* Allow using VS to run host tests when libraries use different config

When building the host tests from VS, there are dependencies on projects from the libraries subset. If the libraries are prebuilt with different configuration (typically `Release`) the build in VS breaks because it can't find the project's output.

This change modifies the import of generators (which are the problematic projects) to let them override the configuration of the referenced projects.

It then adds the ability to set environment based on the `-lc` parameter to the build script when starting VS.

Also updates the doc to describe how to use this.

* Update eng/build.ps1

Co-authored-by: Elinor Fung <elfung@microsoft.com>

* Update eng/generators.targets

* Move ShouldUnsetParentConfigurationAndPlatform to repo's Directory.Build.props

---------

Co-authored-by: Elinor Fung <elfung@microsoft.com>
2024-03-13 12:48:33 +01:00
Viktor Hofer
8538e722e1
Stop overbuilding runtime-prereqs (#98980)
* Stop overbuilding runtime-prereqs

runtime-preqreqs is built twice with different global properties. Here's the global property diff: https://www.diffchecker.com/EN5CN7vm/

* Update runtime.proj

* Update Subsets.props

* Update runtime.proj

* Update Directory.Build.props

* Update Directory.Build.props

* Update Directory.Build.props

* Update Subsets.props
2024-02-27 16:28:37 +01:00
Matt Mitchell
96159b2e5e
Update unified build controls (#98330)
Generally a straight port. Removed ArcadeBuildFromSource and ArcadeBuildVertical and replaced with DotNetBuild.
2024-02-15 18:48:18 +01:00
Viktor Hofer
bdd5d32572
Use NetTool* TFM properties for msbuild tasks (#98098)
... and remove the custom defined ones.
2024-02-07 17:21:30 +01:00
Alexander Köplinger
c3032e05cc Merge branch 'main' into 9.0-sdk 2023-12-21 10:49:00 +01:00
Ankit Jain
a36a860f74
[wasm] Extract src/mono/browser from src/mono/wasm (#95940)
* [wasm] Extract src/mono/browser from src/mono/wasm, and update to track changes

* [wasm] Makefile - update to remove some unrelated targets

* [wasm] Rename wasm.proj to browser.proj - feedback from @ maraf

* Add the renamed browser.proj

* address review feedback from @ maraf

* review feedback from @ pavelsavara

* address review feedback from @ maraf
2023-12-19 10:03:41 -05:00
Jeremy Koritzinsky
caf570e591
Move to building with the 9.0 SDK and move our ToolCurrent TFM to 9.0 2023-12-13 14:16:14 -08:00
Ankit Jain
a128c1503a
[wasm/wasi] Consolidate build targets (#95775)
* [wasm/wasi] Consolidate build targets

Current state of build files:
```
    wasm: WasmApp.props, WasmApp.targets, WasmApp.Native.targets
    wasi: WasiApp.props, WasiApp.targets, WasiApp.Native.targets
``

The wasm, and wasi build have lot of shared code but that is not
representative in the actual files, since the wasi targets started life
as a quick-copy-comment-out-bits of the wasm targets.

This commit consolidates these into:
```
    common: WasmApp.Common.props, WasmApp.Common.targets
    wasm : WasmApp.props, WasmApp.targets
    wasi : WasiApp.props, WasiApp.targets
```

 ## `WasmApp.Common.{props,targets}`

This has all the common parts of the build for browser-wasm, and wasi,
and includes bits from `WasmApp.{props,targets}`, and
`WasmApp.Native.{props,targets}`.

- The top level target remains the same - `WasmBuildApp`.
- There are a few "public" targets that can be hooked into:
    - `PrepareInputsForWasmBuild`
    - `WasmGenerateAppBundle`
    - `PrepareForWasmBuildNative`
    - `WasmLinkDotNet`

- all these public targets have corresponding `*DependsOn` properties
  which can be used for extending the build

note: this commit does not add a public target for AOT, but it might be
added in future.

 ## WasmApp.{props,targets}

This is for `browser-wasm` projects. The file might be renamed in
future.

 ## WasiApp.{props,targets}

This is for `wasi-wasm` projects. `ILStrip` becomes usable as a feature
for `wasi-wasm` because of this consolidation.

* [wasi] WBT: Use TestOutputWrapper

* [wasm] WBT: Track target name changes

* [wasi] WBT: Add new tests

* cleanup

* cleanup

* address feedback

* address feedback
2023-12-11 14:45:58 -06:00
Carlos Sánchez López
35b866ce6a
Add XUnitLogChecker to log libraries dumps, do not enable for NativeAOT tests (#94868)
* Add XUnitLogChecker to log libraries dumps (#93906)

Libraries CI failures that generate dumps will now show the dump output in the console log itself.

* Change NativeAOT condition

* Pass the global property set to false in the post build step.

* Address suggestion:
- Avoid using yml extraHelixArguments.
- Add the new embedded SetCommands optional section in runner scripts.
- Set __IsXUnitLogCheckerSupported in tests.targets as SetScriptCommand items instead of directly in sendtohelixhelp.proj.

* Only add XUnitLogChecker as HelixPayload if its directory is found. Whether it was built or not has already been decided before, and the runner scripts know when to execute it.
2023-11-29 09:59:14 -08:00
Carlos Sánchez López
e58f897a14
Revert "Add XUnitLogChecker to log libraries dumps (#93906)" (#94807)
This reverts commit d561f390b8.
2023-11-15 13:08:41 -08:00
Carlos Sánchez López
d561f390b8
Add XUnitLogChecker to log libraries dumps (#93906)
Libraries CI failures that generate dumps will now show the dump output in the console log itself.
2023-11-14 20:09:31 -08:00
Viktor Hofer
7292b7104e
Update APICompat baseline version to 8.0.0 (#94712)
* Update APICompat baseline version to 8.0.0

* Update packaging.targets

* Update packaging.targets

* Update ApiCompatBaseline.NetCoreAppLatestStable.xml

* Update Versions.props

* Update ApiCompat.proj
2023-11-14 20:11:51 +01:00
Alexander Köplinger
f0208617e3
Update comment with min OS version locations to update (#93180) 2023-10-08 11:07:06 +02:00
Viktor Hofer
bdceab9718
Condition the use of NetCoreAppPrevious TFM (#92941)
* Condition the use of NetCoreAppPrevious TFM

NuGet doesn't support duplicate TFMs in the TargetFrameworks string.
Condition the use of NetCoreAppPrevious TFMs until NuGet supports that
(which is planned afaik).

* Fix ODBC project TFM
2023-10-03 19:24:43 +02:00
Viktor Hofer
3b9b4fd5fc
Move portable RID graph into runtime and clean-up (#92211)
* Move portable RID graph into runtime and clean-up

1. Move portable RID graph into runtime
2. Allow updates to both the non-portable and portable RID graphs under
   source build.
3. Clean-up project and remove hacks

* Update README and delete test

* Fix RID graph update when the key already exists

* Update src/libraries/Microsoft.NETCore.Platforms/readme.md

Co-authored-by: Jan Kotas <jkotas@microsoft.com>

* Update src/libraries/Microsoft.NETCore.Platforms/readme.md

Co-authored-by: Andy Gocke <angocke@microsoft.com>

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
Co-authored-by: Andy Gocke <angocke@microsoft.com>
2023-09-19 23:29:29 +02:00
Sven Boemer
faf883db18
Use live illink to trim framework (#91233)
* Use live illink

* Include ILLink.Tasks for subsets that depend on it

Also prevent build-native.proj from importing illink.targets.

* Address feedback

- Don't reference ILLink.Tasks from subsets
- Use PackageReference from illink.tasks
- Import props from source directory

  Add extensibility to shipping targets to make this possible.
- Set IsSourceProject false for .proj files

* Fix TFM, Configuration, PrivateAssets

* Address feedback

Avoid needing to reorganize SDK imports

* Fix typo

* Fix configuration in ToolsILLinkDir

* Don't change IsSourceProject

* Update eng/illink.targets

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>

* Fix tools configuration

* Normalize directory separator chars

We agreed on (at least under src/libraries) to use the Windows directory separator char `\` instead of a forward slash. This helps when looking at binlogs as those then correctly display a path.

---------

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2023-08-31 19:10:25 +02:00
Fan Yang
02bcb36e8d
Update TFM to net9.0 2023-08-23 12:10:17 -07:00
Steve Pfister
39f4921c4a
[iOS] Remove cmake build dependency for library mode (#89869)
This change removes cmake as a build dependency and instead uses clang directly when building for iOS/tvOS/Macatalyst library mode.
2023-08-07 23:02:08 -04:00
Viktor Hofer
f70a7dc409
Flow TasksConfiguration in build & specify generator config (#84931)
* Propagate TasksConfiguration when building tests

* Mark tasks projects as non-source projects and default to Release for CI/official builds(#84488)

* Update paths when copying to CORE_ROOT

* Flow TasksConfiguration in build & specify generator config

1. Flow the TasksConfiguration in the root build (Subsets.props)
2. Specify the LibrariesConfiguration explicitly when building the
   LibraryImport source generators.
3. Set tasks configuration to debug by default.

* Include the Subsets.props change

* Update tasks.proj

---------

Co-authored-by: Elinor Fung <elfung@microsoft.com>
2023-08-01 17:49:03 +02:00
Viktor Hofer
b9c9964878
Enable the option to invoke APICompat in strict mode for ref-pack servicing (#88707)
* Fixes https://github.com/dotnet/runtime/issues/42961

Enable strict mode comparison during servicing when
`ApiCompatNetCoreAppBaselineVersion` is the current .NET version. When
the GA targeting pack is released, that property should be updated which
will turn on strict mode comparison and prohibits the addition of new
API.

Suppressing one error in the baseline file that showed-up because
out-of-band assemblies now being passed in as assembly references.

While at it I also cleaned-up how private assemblies are handled during
the build.

* PR feedback
2023-07-13 09:10:54 +02:00
Steve Pfister
b3d2503a06
[Android] Add NdkToolFinder task & Fix up AOT app build (#88210)
Since we bumped to NDK 23, having the aot compiler itself generate shared libraries stopped working. This is due to NDK 23 moving most of the toolchain into a common bin directory. AS was left over in each of these directories as an alias to bin/<triple>-as.

This change adds a task to collect all of the important NDK toolchain paths. It also fixes up the aot build when AOTWithLibraryFiles is set to true and we want the aot compiler to produce shared libraries.
2023-07-06 07:22:37 -04:00
Viktor Hofer
8b25fd3822
Make sure that intellisense files are copied (#87603)
Fixes https://github.com/dotnet/runtime/issues/87585

When looking at the 8.0 Preview 5 SDK, xml files are missing for certain
assemblies. This is likely because of the TargetFramework condition in
intellisense.targets. Instead of conditioning on the rid-less net8.0
TFM, use the sfx.proj which already assemblies the shared framework and
targeting pack layout to copy the documentation files.

Additionally, remove the XmlDocDir and copy the files into the targeting
pack folder which was a difference between the "real" targeting pack and
the "fake" one that libraries generates.
2023-06-19 19:31:33 +02:00
Michal Strehovský
a7f46777f3
Build integration support for Bionic in NativeAOT (#87595)
Doesn't actually work E2E because the inline threadstatics work broke our Android support (the one added in https://github.com/dotnet/corert/pull/8323).

```
  C:\Users\michals\.nuget\packages\microsoft.netcore.app.runtime.nativeaot.linux-bionic-arm64\8.0.0-preview.6.23307.4/r
  untimes/linux-bionic-arm64/\native\libRuntime.WorkstationGC.a(MiscStubs.S.o): In function `RhpGetInlinedThreadStaticB
  ase':
  /__w/1/s/src/coreclr/nativeaot/Runtime/arm64/MiscStubs.S:12: undefined reference to `tls_InlinedThreadStatics'
  /__w/1/s/src/coreclr/nativeaot/Runtime/arm64/MiscStubs.S:12: undefined reference to `tls_InlinedThreadStatics'
  /__w/1/s/src/coreclr/nativeaot/Runtime/arm64/MiscStubs.S:12: undefined reference to `tls_InlinedThreadStatics'
  /__w/1/s/src/coreclr/nativeaot/Runtime/arm64/MiscStubs.S:12: undefined reference to `tls_InlinedThreadStatics'
```
2023-06-16 14:25:31 +09:00
Sven Boemer
56c427bb4d
Don't enable ILLink analyzers for unsupported TFMs (#87071)
* Don't enable ILLink analyzers for unsupported TFMs

This adds a condition to EnableSingleFileAnalyzer to prevent it from requiring
the ILLink pack that is only supported on netcoreapp3.0 and above.

Adding a condition on the TFM requires moving the setting into a targets file.

Also consolidates more of the analyzer logic into this file.

---------

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2023-06-08 10:10:58 -07:00
Trung Nguyen
445dac9e8e
Initial build configuration for Haiku (#86303)
* Haiku: Initial configuration support

Initially recognize Haiku as a supported platform in
Directory.Build.props and all scripts in eng/**.

* Drop some unused configure values

Drop some unused configure values from tryrun.cmake,
configure.cmake and config.h.in.

* Simplify error message in build.sh

Simplified an error message for the `--os` option to avoid maintaining a duplicate list of OSes.

Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
2023-05-17 08:10:39 -07:00
Tom Deseyn
6a5a704c35
Directory.Build.props: restore previous behavior when targetting 'other' TargetOSes from Windows. (#85246) 2023-05-03 11:13:51 -06:00
Tom Deseyn
2802c972f7
Directory.Build.props: don't overwrite PackageOS from source-build. (#85350) 2023-04-25 17:44:39 -06:00
Tom Deseyn
21fb96b6ee
Try to untangle the rid calculation. (#82832)
* Try to untangle the rid calculation.

* Ignore __portableOS.

* Add back musl detection.

* Try fix AnyOS tests.

* Try fix coreclr linux_musl_arm64 job.

* src/tests/build.proj: use PackageRID for restore.

* Use RuntimeOS as an override for _packageOS.

* Remove (probably) out-dated override for non-portable ToolsRID.

* CI cross-builds for linux-musl use linux.

* Add missing arch to rid.

* Try simplified ToolsRID.

* Update comments.

* Rename OutputRid to OutputRID.

* Tweak comment.

* Move TargetsLinux{Bionic,Musl} with the other Targets properties.

* Don't use RuntimeOS for PackageRID for CrossBuilds.

* Move RuntimeOS condition to ToolsRID assignment.

* Clean up a few things.

* Fix broken Condition.

* Try fix the linux-bionic build.

* Try fix the linux-bionic build, part II.

* Try fix the linux-bionic build, part III.

* Fix PackageRID.

* Use RuntimeOS as _packageOS override.

* Remove RuntimeOS.

* Fix '-os linux-musl' mapping.

* Clean up .

* Rename __PortableOS to __PortableTargetOS.

* Extend comments.

* Extend OutputRID comment too.

* build.sh: include linux-bionic, linux-musl in usage.

* SourceBuild.props: no need to pass RuntimeOS. Only set ToolsOS, PackageOS when RuntimeOS is not empty.

* Fix comment.

* linux-bionic doesn't get built on linux-bionic.

* Unconditionally assign TargetsLinuxBionic/TargetsLinuxMusl.

* Remove SkipInferTargetOSName.
2023-04-21 10:02:07 +02:00
Nikola Milosavljevic
87ba6ea5c0
Opt-out of default target framework filtering in source-build infra (#84811)
* Opt-out of default target framework filtering in source-build infra

* Move the property to cover all scenarios
2023-04-14 13:05:22 -07:00
Tom Deseyn
e3c370086d
Clear .NET Framework target while building tests with DotNetBuildFromSource. (#84682)
* Clear .NET Framework target while building tests with DotNetBuildFromSource.

* Conditionalize on TargetFrameworkIdentifier.
2023-04-12 14:37:33 +02:00
Larry Ewing
99fc17567d
Revert "Mark tasks projects as non-source projects and default to Release for CI/official builds(#84488)" (#84671)
This reverts commit b68f669087.
2023-04-11 20:47:11 -05:00
Elinor Fung
b68f669087
Mark tasks projects as non-source projects and default to Release for CI/official builds(#84488) 2023-04-11 13:32:51 -07:00
Levi Broderick
1487522704
Obsolete most of the remaining legacy serialization APIs (#84383)
- Move BinaryFormatter obsoletions to type-level
- Introduce SYSLIB0050 and SYSLIB0051 obsoletion waves
- Remove some dead code

Ref: https://github.com/dotnet/designs/pull/293
2023-04-10 22:52:15 -07:00
Levi Broderick
0b226133bc
Unit tests should re-enable BinaryFormatter for compat testing (#84437) 2023-04-06 14:09:21 -07:00
Nikola Milosavljevic
eb044f1633
Trim away netframework targets in source-build (#83899)
* Trim away netframework targets in source-build

* Move property unsetting to Directory.Build.props so it works in repo source-build
2023-03-27 11:33:58 +02:00