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

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-06Revive #48505 (#54914)Viktor Hofer
* Revive #48505 Revive https://github.com/dotnet/runtime/pull/48505 and try to find out why the change caused official builds to break. * Use OutputRid when creating .nupkgs, instead of PackageRID Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
2021-06-30Remove some redundant / unused binplace directories (#54890)Eric StJohn
* Remove some redundant / unused binplace directories * Fix runtime pack path * Use OuputRid instead of PackageRID On linux-musl, OutputRID differs from PackageRID. * Add RuntimeOS to installer leg for musl So that we have consistent values of $(PackageRID) for installer and libraries * Move LibrariesConfiguration definition earlier in src/tests This property was being defined after a number of places where it was consumed resulting in quite a few inconsistent derived properties.
2021-06-29Add NetCoreAppCurrent configuration to libs (Phase 1) (#54544)Viktor Hofer
* Use property to indicate NetCoreApp min version * Add NetCoreAppCurrent to S.Numerics.Tensors * Add NetCoreAppCurrent to S.T.AccessControl * Add NetCoreAppCurrent to System.Memory.Data * Add NetCoreAppCurrent to S.Composition.* projects * Add NetCoreAppCurrent to System.IO.Packaging * Add NetCoreAppCurrent config to System.IO.Ports Adding a NetCoreAppCurrent configuration to System.IO.Ports and reducing package size, build times and platform specific assets by using runtime checks on Unix derivates for the slightly diverging SerialPort implementation. Contributes to https://github.com/dotnet/runtime/issues/54012 * Add NetCoreAppCurrent to System.Data.OleDb * Add NetCoreAppCurrent to M.W32.Registry.AccessControl * Add NetCoreAppCurrent to S.Reflection.Context * Add NetCoreAppCurrent to S.C.Composition.Registration * Add NetCoreAppCurrent to S.Resources.Extensions * Add NetCoreAppCurrent to S.N.H.WinHttpHandler
2021-06-22ArPow stage 1: local source-build infrastructure (#53294)Michael Simons
* Initial arcade-powered source-build infra * Add patches, fixup from 5.0 * Rename patches to match 6.0-p1 work * Add source-build specific build script * Incorporate build-source-build.sh, into eng/ * Run inner build script, through coreclr * Initial source-build args based on live build (not props file) * Cleanup: add RID comments, rm empty/absolute args * Fix subsets * Disable sourcelink in env, not args * Fix CI NZEC * Revert "Use same code to DetectCiphersuiteConfiguration for portable and non-portable builds" This reverts commit 464010d9d0241bbdcbfbda25b32e78991ddf6093. * Fix portability * Fix AllJits build * Fix missing crossgen2 for non-portable RID * Create supplemental intermediate nupkgs * Tweak category names * Use centralized supplemental nupkg infra * Add additional 6.0 patches * Patch updates after merging in main * SourceBuild.props cleanup * Fix issue with incorrect patch merge * Patch updates * Edit clr.tools patch * patch updates * Revert patch integration * Patch updates * Edits per code review feedback * ILAsm workaround * patch updates * Move logic to set ILAsmToolPath for source-build * Update eng/SourceBuild.props Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> * Remove libraries specific patches * Patch updates necessary with latest main merge * Add back libraries-packages.proj harvesting patch * Refactor intermediate package split to be chunkier * Integrate patch 0017 * Subsets update per code review * Remove obsolete patch * Removed patches that were integrated into main * Remove two additional patches * Remove remaining patches Co-authored-by: Davis Goodin <dagood@microsoft.com> Co-authored-by: dseefeld <dseefeld@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2021-06-21Allow mono samples to build and run again (#54089)Aleksey Kliger (λgeek)
2021-06-11Update dotnet SDK to 6.0 Preview 4 (#53808)Viktor Hofer
* Update dotnet SDK to 6.0 Preview 4 Update the minimum and target version of the SDK to 6.0 Preview 4. Part of https://github.com/dotnet/runtime/issues/53411 * Switch to using eng/targetingpacks.targets for redirecting runtime pack location in src/mono/sample * Fix binder tracing tests * Set UseMonoRuntime property so the dotnet SDK can pull the mono runtime packs This is necessary after the changes from https://github.com/dotnet/sdk/pull/16909. * Move UseMonoRuntimeProperty and set it to false in coreclr Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com> Co-authored-by: Elinor Fung <elfung@microsoft.com>
2021-05-26Generate targets files that throws for unsupported netstandard applicable ↵Viktor Hofer
tfms (#53244) * Generate targets files that throw for unsupported NS tfm For S.D.Common, S.Speech and S.Sec.Crypto.Pkcs we manually added a targets file to mark the .NETStandard asset as not applicable. This was done to allow defining a minimum supported .NETCoreApp version, even though a compatible .NETStandard asset is available. This commit automatically generates that targets file based on items.
2021-05-26Disable workload resolver until we support it (#53226)Viktor Hofer
Unblock Preview 4 SDK usage in the repo.
2021-05-20React to MSBuild Traversal and NoTargets SDK updates (#52895)Viktor Hofer
* Remove custom rebuild entry point in Build.proj The rebuild target was added into the Traversal SDK here: https://github.com/microsoft/MSBuildSdks/commit/fd7660d62b139f282926d98212b7aeb3e6460daa#diff-ad560c0828c6bab536a01e43bb052bfce14a959b8df2c3f89cccfca0b399681c * Update global.json * Update global.json * Update native-binplace.proj * Update externals.csproj * Update native-binplace.proj * Update native-binplace.proj * Default tfm for NoTargets projects * Don't run GenFacades on ApiCompat.proj * ApiCompat fix and packaging cleanup * Fixes * Only set if not multi-targeting
2021-05-19Stop reading TargetFramework prop in props files (#52897)Viktor Hofer
* Stop reading TargetFramework prop in props files The TargetFramework property isn't expected to be set in props files before a project's body is evaluated. Don't let BuildTargetFramework property fallback to TargetFramework as BTF's sole intent is to convey the TargetFramework to filter to and not the current selected TargetFramework. Reduce usage of BTF so that it is only used in places where code is actually conditioned on filtering. In addition to that, specify BuildTargetFramework as a global property for all traversal builds so when invoking one of the traversal projects directly (src.proj, ref.proj, etc.), BuildTargetFramework doesn't need to specified manually to get the default behavior (filter on compatible to net6.0). Remove the inferred BuildingNetCoreAppVertical because of that and inline its meaning. Make sendtohelix a normal NoTargets proj so that it has access to the properties which were moved into the Directory.Build.targets file as otherwise it wouldn't import that file.
2021-05-14Move copy of Crossgen2 tasks/targets to runtime repo and build composite ↵David Wrighton
image for runtime repo in parallel path (#52579) * Move all crossgen2 tasks/targets used in Runtime repo to be local to the repo * Move ResolveReadyToRunCompilers task into the Crossgen2Tasks dll * Create composite bundle and package - Note that it doesn't build properly, but hopefully that's a crossgen2 task bug * Composite image production * Refactor how composite image creation works - Move it to allow mixed composite and non-composite r2r in the same build, controlled by the PublishReadyToRunCompositeExclusions list - Enhance the accuracy of how msbuild tracks which files are input vs reference for composite images - Implement the R2R exclusion list for composite images - Remove the always on usage of --inputbubble when compiling a composite image * - Add a scheme to perform public signing with a PublicKeyToken to a composite of the composite image if required - Required adding a new parameter to crossgen2
2021-04-30Add Infra for porting lib only packages to use dotnet pack instead of ↵Anirudh Agnihotry
pkgprojs (#51765) * add infra and move projects to use dotnet pack * adddress feedback * address feedback * donot include buildoutput from netfx during sourcebuild * some more feedback points * add SuppressDependenciesWhenPacking as well * Apply suggestions from code review Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> * Update src/libraries/Directory.Build.targets Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> * remove warn * Update src/libraries/Directory.Build.targets Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> * donot set includebuild output in outerbuild Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2021-04-19Fix ./build.sh --portableBuild falseOmair Majid
Non-portable builds are used by source-build and also use for testing/debugging things, like trying out upcoming versions of OpenSSL.
2021-04-15Create a nuget package for RuntimeConfigParser (#51240)Fan Yang
Fixes #51236
2021-04-14Simplify mibc usage in the build (#50536)David Wrighton
- Produce a merged mibc with all scenarios squished together - Properly attach the mibc data to the incremental build for System.Private.CoreLib - This can't be done for the framework here. It will require mibc integration in the SDK - Enable pgo optimization in checked builds - Enable pgo optimization in framework compile for outerloop runs
2021-04-12Use nuget standardized properties (#51014)Viktor Hofer
* Use nuget standardized properties Requires https://github.com/dotnet/arcade/pull/7212. Helps with the pkgproj to csproj conversion.
2021-04-03Make Microsoft.NETCore.Platforms pack from CSProj (#50468)Eric StJohn
* Use CSProj for packing Platforms package * Port GenerateRuntimeGraph task This ports the GenerateRuntimeGraph task from arcade as of https://github.com/dotnet/arcade/tree/d005a8ce6bb81129f9c3a4a907e1b7ccbf2504d5 * Refactor GenerateRuntimeGraph into separate files * Add test for GenerateRuntimeGraph * Fix up path to runtime.json * Don't filter inner builds when building Platforms task * Skip tests RuntimeGraph task tests on some platforms * Exclude browser from testing instead of wasm * Another try at suppressing testing on Browser
2021-03-19Introduce `iossimulator` RIDs, and convert as needed (#49305)Jo Shields
Previously, we have had four iOS RIDs: iOS-arm iOS-arm64 iOS-x86 iOS-x64 Apple has never shipped an iOS device with an x86 or x64 processor. Instead, the x86/x64 RIDs have meant "iOS simulator with these arches" as opposed to "iOS with these arches". Amongst other things, that means building against a DIFFERENT SDK, iPhoneSimulator.platform vs iPhoneOS.platform In the Apple Silicon future, the iOS simulator is now an ARM64 binary - so we need: iOS-arm iOS-arm64 iOS-arm64, but built against the simulator SDK not the device SDK iOS-x86 iOS-x64 Clearly, there's a problem. The solution is to move the simulators to a different RID, to avoid the overloading issue: iOS-arm iOS-arm64 iOSSimulator-arm64 iOSSimulator-x86 iOSSimulator-x64 This PR introduces the new entries in the RID graph, moves our existing iOS-x{86,64} to iOS-sim-x{86,64}, adds a new iOS-arm64. The above also applies for tvOS, with a smaller set of OSes: tvOS-arm64 tvOSSimulator-arm64 tvOSSimulator-x64 Ref: #48216
2021-03-19Enable the latest managed pgo data (#49793)David Wrighton
- Implementation is parallel to existing ibc handling, so that it can be toggled on/off by adjusting the `UsingToolIbcOptimization` property - Use the same data for all assemblies produced in current build - Apply data to release builds only - Disable mismatch assertions in jit for current state where il mismatches are common
2021-03-18Remove arcade packaging workaround (#49613)Viktor Hofer
2021-03-17Add msbuild task to generate binary runtimeconfig format (#49544)Fan Yang
* Add msbuild task to generate binary runtimeconfig format * Update property name due to naming conversion. * Fixed more formatting issue * Fixed one more naming convention * Update src/tasks/RuntimeConfigParser/RuntimeConfigParser.cs Co-authored-by: Ryan Lucia <ryan@luciaonline.net> * Update src/tasks/RuntimeConfigParser/RuntimeConfigParser.cs Co-authored-by: Ryan Lucia <ryan@luciaonline.net> * Update src/tasks/RuntimeConfigParser/RuntimeConfigParser.cs Co-authored-by: Ryan Lucia <ryan@luciaonline.net> * Fixed comments * Update src/tasks/RuntimeConfigParser/RuntimeConfigParser.cs Co-authored-by: Dan Moseley <danmose@microsoft.com> * Fix error handling Co-authored-by: Ryan Lucia <ryan@luciaonline.net> Co-authored-by: Dan Moseley <danmose@microsoft.com>
2021-03-03Remove Deterministic setting which is already the default (#49021)Viktor Hofer
The SDK already enables deterministic builds by default. No need to set this property again.
2021-03-02Fix Armel crossgen failing during pack (#45058)Thad House
Armel was not treated like arm or arm64, causing the wrong folders to be used during crossgen
2021-03-01Fix crossgen2 shared framework name and clean-up (#48917)Viktor Hofer
Fix crossgen2 RID specific package names and use more specific property names to avoid confusion about shared framework meanings.
2021-02-25Remove duplicated ILLink PackageReference and update target version of the ↵Viktor Hofer
SDK to 6.0 (#48462) * Remove duplicated ILLink PackageReference The Arcade.SDK already package refrences the ILLink package. The duplicate reference in illink.targets caused SDK errors as the Arcade reference has IsImplicitlyDefined set which doesn't allow an additional reference with the same identity. Also, as the ILLink package already exposes the path to the assembly via its props file, using that instead of manually constructing the path to the assembly. The SDK target version update is required as the sequencing of the ILLink.props file was wrong and is required for this change. This isn't considered a breaking change, as the SDK's minimum required version isn't changed. * Update arcade dependencies * Remove NuGet pack tasks pkgref * Add mega hack workaround * Remove KnownFrameworkReference items * Don't hardcode SDK value in helix submission... * Update runtimeConfiguration.targets * Fix double publishing error in mobile tests * Set DotNetCliVersion to right version for aspnetcoreruntime * Update sendtohelixhelp.proj * Update sendtohelixhelp.proj Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
2021-02-23Revert "Fix installer build on Alpine (#48505)" (#48651)Viktor Hofer
This reverts commit c9fe433ebb3e5a489083fda8582861926596a41e.
2021-02-23Fix installer build on Alpine (#48505)Adeel Mujahid
* Fix installer build on Alpine * Update src/tests/build.sh Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com> Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2021-02-23Set nuspec packaging properties correctly (#48625)Viktor Hofer
Define PackageProjectUrl which is the public facing property to specify a project url in a nuspec. Arcade defaults PackageProjectUrl to RepositoryUrl if it isn't set. RepositoryUrl was incorrectly set to git://github.com/dotnet/runtime instead of https://github.com/dotnet/runtime which cause PackageProjectUrl to use that incorrect value as well which ultimately results in nuget.org failing package validation and refusing to add the package. Also changing ProjectUrl to the previous https://dot.net value which is the expected url to the dotnet project. In addition to that, specifying Owners which aren't set anymore in 6.0. Adding the ProjectUrl property as well as the Microsoft.DotNet.Build.Tasks.Packaging package depends on it. That line can be removed after the fix to not override its value unconditionally is merged and consumed.
2021-02-22Delete publish-final.proj and clean-up installer.tasks unused files (#48598)Viktor Hofer
* Delete publish-final.proj and delete unused installer.tasks files * Avoid extra restore phase for tasks The repo local tasks don't participate in the repo restore anymore, hence avoiding the extra restore phase which should improve reliability and build times.
2021-02-17Update incremental servicing condition for pkgs (#48330)Viktor Hofer
* Update incremental servicing condition for pkgs
2021-02-13Move corehost under src/native (#48071)Adeel Mujahid
* Move corehost under src/native * Move content out of cli/ directory * Update configurations post-move * Update docs
2021-02-10Fix DisableSourceLink value (#47931)Viktor Hofer
2021-02-08Add Mac Catalyst (iOS API, Mac ABI) runtime (#47823)Jo Shields
Initial support for Mac Catalyst for mono subset. This enables building runtime packs and working jobs, but right now the `tests` subset needs some work to allow library test runs in CI
2021-02-05Remove the src/mono/netcore directory, move its contents to src/mono. (#47847)Zoltan Varga
* Remove the src/mono/netcore directory, move its contents to src/mono. * Fix docs and make targets. * Remove the netcore dir itself. * Fix samples.
2021-01-22Disable sourcelink locally consistently (#47297)Viktor Hofer
2021-01-15Remove all dependencies on the old sharedfx tooling. (#47015)Jeremy Koritzinsky
2021-01-06set BuildingInsideOfficialBuild (#46615)Anirudh Agnihotry
2021-01-05move netcore platforms and targets to csproj (#46474)Anirudh Agnihotry
2020-12-31Allow incremental servicing of packages and more packaging infra cleanup ↵Viktor Hofer
(#46447) * More packaging cleanup * Add incremental package servicing throughout the repo * Update dependencies to 6.0.0-beta.20630.3
2020-12-28Avoid deferred Arcade importing (#46397)Viktor Hofer
* General cleanup and mono import Arcade in root * More cleanup and coreclr import Arcade root * Import Arcade root from libraries * Set informationversion for corelib * BuildArchitecture cleanup * Fix property name * Fix default target invocation of runtime.proj * specify tfm correctly * Remove unnecessary TestStrongNameKeyId * Revert TestStrongNameKeyId removal * Fix entrypoint target by using M.B.NoTargets * Fix reference assembly paths * PR feedback * Set Platform correctly * PR feedback and more cleanup * Move BaselineMicrosoftNetCoreAppPackageVersion * Fix reference to CoreLib * Fix OS calculation * Fix targets importing * Remove *TargetOS * Add RuntimeConfiguration doc * Change conditions in root msbuild files * installer test fixes * Cleanup * More cleanup because of well defined entrypoint * Don't import D.B.* from installer tests at all * Rename fix * Include explicit reference to mscorlib in ilproj * Update eng/restore/docs.targets Co-authored-by: Jan Kotas <jkotas@microsoft.com> * Revert some installer test changes * Installer test fix again * Disable EOL tfm check for installer tests * Set platform later for installer Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2020-12-25Consolidate packaging properties (#46331)Viktor Hofer
* Consolidate packaging properties * Remove versions.txt file from packages The versions.txt file was added to packages to know which SHA a package was built against. As the nuspec now contains the SHA, the versions file isn't necessary anymore.
2020-12-23Set IsPackable and validate PackageDescription (#46329)Viktor Hofer
* Set IsPackable and validate PackageDescription
2020-12-09Remove hardcoded paths to *AppBuilder task dlls (#45838)Alexander Köplinger
Now that the msbuild properties for the paths to these dlls are in the root Directory.Build.props we can remove the hardcoded paths.
2020-12-08December infra rollout - remove duplicated 'src' from coreclr subrepo ↵Tomáš Rylek
(src/coreclr/src becomes src/coreclr) (#44973) * Move src/coreclr/src/Directory.Build.targets to src/coreclr Merge src/coreclr/src/CMakeLists.txt into src/coreclr/CMakeLists.txt * Mechanical move of src/coreclr/src to src/coreclr * Scripts adjustments to reflect the changed paths
2020-12-04Use NetCoreAppToolCurrent TFM for *AppBuilders (#45591)Alexander Köplinger
This ensures they're built against net5.0 right now instead of net6.0.
2020-11-19Consolidate RID and native file naming in MSBuild scripts (#43804)Adeel Mujahid
* Consolidate RID and native file naming in MSBuild scripts * Use short variable names for native files naming convention, that are used by `framework.sharedfx.targets` in arcade, and cleanup redefinitions from crossgen2 and installer. e.g. `ExeSuffix` instead of `ApplicationFileExtension`, `LibSuffix` instead of `LibraryFileExtension` and so on. * Calculate `TargetArchitecture`, `NonPortableRuntimeOS` (for `PortableBuild`) and `PackageRID` values once for the entire livebuild, inside `eng/Configurations.props`. This implementation is a union of three varied implementations that are being deleted. * Import `names.props` once in `eng/Configurations.props` based on calculated `PackageRID` and cleanup imports of this file from various places. * Combine OS targets definition in MSBuild scripts. * Delete legacy tooling properties * Delete legacy tooling properties
2020-10-08Add initial support for Apple Silicon (#40435)Steve MacLean
* Add CoreCLR compilation support for Apple Silicon * Use CMAKE_OSX_ARCH rework * Set clang -arch flag * Workaround uname arch reporting emulated arch * Fix native code compilation issues * Implement missing osx-arm64 functionality * Prototype fix for write no execute issues * Strip libunwind pointer authentication bits * Review feedback * Does not fix Arm64 ABI issues Co-authored-by: Jan Vorlicek <janvorli@microsoft.com>
2020-10-01Add an option to keep native debug symbols (#39203)Omair Majid
When packaging .NET for Linux distributions, the package builders generally use a different workflow for shipping symbols to users: 1. The package maintainer builds code with the debug flags (such as `-g`) to generate full native debug info and symbols. 2. Nothing is stripped from build by the package maintainer. 3. The build system (`rpmbuild`, `debuild`) removes the debug info (or debug symbols) from the code and creates separate `-debuginfo` or `-debug` packages that contain just the debug symbols. 4. These debug packages are then distributed along with the normal packages using the normal Linux distribution mechanisms. This lets users install the exact set of debug symbols matching their other package. To support this workflow in dotnet/runtime, we need to add optional support for not stripping debug symbols. I used it has follows: CFLAGS=-g CXXFLAGS=-g ./build.sh --keepnativesymbols true After this build, the built binaries include all debug symbols. I can then rely on the distro package build system to identify, strip, package and ship the debug info/symbols separately. See https://github.com/dotnet/runtime/issues/3781 and https://github.com/dotnet/source-build/issues/267 for more details on the background and motivation. For some related fixes, see: - https://github.com/dotnet/coreclr/pull/3445 - https://github.com/dotnet/corefx/pull/24979
2020-09-29[Android] Make AndroidAppBuilder "dotnet build" friendly (#42597)Egor Bogatov
2020-09-18Fix handling of repo analyzers and warnings-as-errors (#42272)Stephen Toub
* Fix handling of repo analyzers and warnings-as-errors When we brought in the new SDK, it enabled analyzers by default (which then used our custom ruleset), but a bunch of projects (in particular tests) weren't expecting that, such that we now have thousands of warnings in the repo. This opts-out those projects. It also enables warnings-as-errors at the root level of the repo, to hopefully avoid such warning storms in the future, and to also clean up the remaining that exist. This includes a bunch of new obsoletion and platform compat warnings that are firing in the runtime tests. We may choose to run analyzers on additional projects in the future where it's currently disabled, but this gets us back to a state at least as good if not better than we were previously. * Fix analyzer warnings on Microsoft.NET.HostModel Fixes the warnings that were triggered by our rule set applying to this project. All fixes were automated. * Fix analyzer warnings in additional projects * Remove several `<RunAnalyzers>false</RunAnalyzers>` * Try to opt-out remaining coreclr tests Co-authored-by: David Mason <davmason@microsoft.com>