1. 09 10月, 2020 1 次提交
  2. 24 9月, 2020 1 次提交
  3. 19 9月, 2020 1 次提交
  4. 18 9月, 2020 1 次提交
    • S
      Fix handling of repo analyzers and warnings-as-errors (#42272) · e0e1919a
      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: NDavid Mason <davmason@microsoft.com>
      e0e1919a
  5. 11 9月, 2020 1 次提交
    • T
      Enabling CA1416: Validate platform compatibility (#41760) · 23919a4b
      Tanner Gooding 提交于
      * Enabling CA1416
      
      * Resolving PR feedback
      
      * Updating the .NET analyzers to 5.0.0-rc2.20458.2
      
      * Resolving compilation errors on full framework
      
      * Fixing two more tfm issues with the platform compat checks
      
      * Adjusting various platform compat checks to work with netstandard and netfx
      23919a4b
  6. 15 8月, 2020 1 次提交
  7. 11 8月, 2020 1 次提交
  8. 09 8月, 2020 1 次提交
  9. 16 7月, 2020 1 次提交
    • C
      Apply CA2016: Forward CancellationToken to methods that can take it (#37607) · 7f34be53
      Carlos Sanchez Lopez 提交于
      * Forward CancellationToken to methods that can take it
      
      * Address suggestions
      
      * address suggestions
      
      * Revert using
      
      * Make rule 2016 a warning in runtime
      
      * Extra cases found
      
      * Revert changes that should not pass a token, change rule to info to verify build and test CI results
      
      * Pass CancellationToken.None to base.CreateContentReadStreamAsync, as in its default overload
      
      * Address stack overflow in MultipartContent
      
      * HostingAbstractionsHostExtensions address using
      
      * Update nuget package version to latest, Info->Warning again, fix one more case.
      
      * System.Diagnostics.ProcessWaitState.Unix token
      
      * Remove two unnecessary tokens
      7f34be53
  10. 30 6月, 2020 1 次提交
  11. 26 6月, 2020 1 次提交
  12. 14 5月, 2020 1 次提交
  13. 06 4月, 2020 1 次提交
    • V
      Enable restore for ref and src projects in libs (#33553) · 42183b1b
      Viktor Hofer 提交于
      - Use RestoreUseStaticGraphEvaluation which improves no-op restore by 10-15x down to 10-20 seconds.
      - .builds msbuild files renamed to .proj as RestoreUseStaticGraphEvaluation throws for non .proj files without an env var set.
      - Introducing subsets for libraries and mono and replacing -buildtests switch which was only working for libraries in favor of the subset switch -subset tests which works consistently.
      - Fixing the Microsoft.DotNet.CodeAnalysis analyzer which wasn't running and adding missing exclusions.
      - Separating restore and build phases in different parts in the repo (ie for installer.tasks) as generated props and targets need to be imported which requires a reevaluation in the build phase.
      - Fix eng/docker/build-docker-sdk.ps1 by using the official build entrypoints (cc @alnikola)
      - Remove a few depprojs in favor of project restore (faster restore :))
      - Fix root code coverage measurement not working correctly
      - Traversal support instead of dir.traversal.targets or manual build target defines.
      - Introduce a root Build.proj entrypoint which is responsible for building and restoring the repository. This is necessary to enable the new NuGet fast restore which works best and fastest with a single entrypoint.
      - Avoid binclashes in libraries and between libraries and installer (netstandard.depproj vs netstandard.csproj)
      - Upgrading the SDK to 5.0 latest
      - Code cleanup
      42183b1b
  14. 31 3月, 2020 1 次提交
  15. 25 3月, 2020 1 次提交
  16. 11 3月, 2020 1 次提交
  17. 10 3月, 2020 1 次提交
    • V
      Enable restore for ref and src projects in libraries (#33242) · 981cc64b
      Viktor Hofer 提交于
      * Enable restore for projects in libraries
      
      Enabling project restore for ref and src projects
      
      * Remove winrt.depproj
      
      * Remove tools.depproj
      
      * Enable upfront restore
      
      * Fix casing of PInvokeAnalyzerException file
      
      * Remove harvestPackages.depproj and refactoring
      
      Removing havestPackages.depproj in favor of a target that is hooked
      into Arcade's repo restore phase in Tools.props.
      
      Additionally moving common properties that are used both in Arcade and
      the repo inside Configurations.props. Before they were scattered around
      multiple places (Versions.props, Subsets.props).
      
      * Set ilasm/ildasm RID for restore
      
      * Sequence restore into steps out of upfront restore
      
      * Fix docker entrypoints by using build.cmd/sh
      981cc64b
  18. 09 2月, 2020 1 次提交
  19. 03 12月, 2019 1 次提交
    • V
      Re-enable CoreLib analyzers (#424) · f84d01bb
      Viktor Hofer 提交于
      * Re-enable CoreLib analyzers
      
      CoreLib analyzers were unintentionally disabled with
      6afe96cc. This re-enables the analyzers.
      
      * Remove Microsoft.CodeAnalysis.Common from common
      
      Microsoft.CodeAnalysis.Common shouldn't be referenced directly,
      therefore removing that package from the common location and only
      restoring and marking it as an analyzer in the libraries restore phase.
      f84d01bb
  20. 01 12月, 2019 1 次提交
    • V
      Converge common msbuild properties and targets (#338) · 6afe96cc
      Viktor Hofer 提交于
      * Converge common msbuild properties and targets
      
      Moving common msbuild properties and targets into the repo root.
      
      * Consolidate analyzers logic into the repo root
      
      Consolidating msbuild analyzers logic centrally in the repo root and
      adding a property switch `EnableAnalyzers` to enable analyzers. We
      still need to import the Analyzers.props file unconditionally as
      libraries currently doesn't use the PackageReference logic in ref and
      src projects and instead uses a depproj to create a props file
      dynamically.
      
      * More cleanup to fix CoreLib build
      6afe96cc
  21. 02 11月, 2019 1 次提交
  22. 31 10月, 2019 1 次提交
  23. 29 10月, 2019 1 次提交
  24. 04 9月, 2019 1 次提交
  25. 01 8月, 2019 1 次提交
  26. 30 7月, 2019 1 次提交
  27. 24 7月, 2019 1 次提交
  28. 16 6月, 2019 1 次提交
    • V
      Enable project restore for test projects (dotnet/corefx#38151) · 5f98ba6a
      Viktor Hofer 提交于
      * Factor out repo restore into seperate props/targets
      
      * Use configuration system msbuild sdk
      
      * Remove XUnit.Runtime.depproj
      
      * Remove TargetGroup usages in test projects
      
      * Fix ILLink configuration
      
      The ILLink package contains netcoreapp2.0 assets which are compatible
      with netstandard2.0. Removing the old TargetFramework to restore
      successfully.
      
      * Remove usages from TargetGroup in Directory.Build.props
      
      * Remove dead net4* configurations
      
      * Change tests.builds to tests.proj sdk proj
      
      * Make externals dir proj an sdk project
      
      * Consume Microsoft.DotNet.CoreFxTesting as an msbuild sdk
      
      * Use runtimeconfig.template.json
      
      * Remove SupplementalTestData
      
      * Map shared framework version to product version
      
      * Stop binplacing tests
      
      * Move some tool depprojs to targets during restore
      
      * Remove dead code
      
      * Use PackageReference instead of RefFromRuntime in test
      
      * Disable using an apphost
      
      * Copy compression testdata manually cause unicode bug
      
      * Remove target batching in optimizationData
      
      * Reference packaging tools from CoreFx.Private.TestUtilities
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/c4c1985531cc1f25c805bbc4801b85c98e0dfee0
      5f98ba6a