Skip to content
代码片段 群组 项目
  1. 6月 19, 2020
    • Doug Bunting's avatar
      Enable `/warnAsError` (#23072) · ab7f3f20
      Doug Bunting 创作于
      * Enable `/warnAsError` in Windows builds
        - already enabled in non-Windows builds because override existed only in build.ps1
      * Allow some warnings related to closed issues
        - common `<NoWarn>$(NoWarn);CS1591</NoWarn>` case unchanged
          - /Directory.Build.props ensures that warning remains a warning but doesn't hide it
      * !fixup! Root build.sh _does_ disable warnings as errors
        - variable eng/common/tools.sh uses named `warn_as_error`
      ab7f3f20
  2. 5月 23, 2020
    • Doug Bunting's avatar
      Avoid changing global state in CI runs II (#21643) · 54e28200
      Doug Bunting 创作于
      * Avoid changing global state in CI runs II
        - move `dotnet` tools into `$PWD/.dotnet/tools/`
          - add `dotnet` tools to `$env:PATH`
        - install `jq` in `$PWD/.tools/`
        - install `nginx` in `$PWD/.tools/nginx/`
      
      nits:
      - remove an extra (incorrect) `$env:JAVA_HOME` setting
        - build.ps1 finds a local JDK and sets this variable (and `$env:PATH`) properly
      - avoid `'$(SELENIUMPROCESSTRACKINGFOLDER)' == '\artifacts\tmp\selenium\'`
        - `$(BuildDirectory)` was normally the empty string (w/o fix)
        - use `$(BuildDirectory)` a bit more
      
      * Add files. disable artifact / test results publications to avoid warnings on CI
        - artifacts/log is often empty when binary logs are disabled
        - no tests create *.trx files
          - don't have Java test results either
        - only test jobs need test results published
      54e28200
  3. 5月 20, 2020
    • Doug Bunting's avatar
      Small fixes (#21982) · 4420a7d2
      Doug Bunting 创作于
      * Restore default "/bl" setting if `$BinaryLog`
      
      nits:
      - remove extra configure-toolset.ps1|sh imports
      - remove duplicate `/v:$verbosity` addition to `msbuild` command line from build.sh
      
      * Correct the feeds to match latest recommendations
      4420a7d2
  4. 5月 16, 2020
    • Doug Bunting's avatar
      Port `-nobl` and `net5.0` changes from 'master' · 0f80048f
      Doug Bunting 创作于
      * Update dependencies from https://github.com/dotnet/arcade
      
       build 20200511.9
        - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
        - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
        - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
      
      * Pre-emptively take -nobl change
      
      * Disable binlogs in CI
      
      * Fix build.sh to know about -nobl
      
      * Align build.ps1|sh with latest Arcade parameters
        - do not enable binary logs by default in CI builds
        - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh
          - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs
      
      nit: document `-excludeCIBinarylog` a bit more
      
      * Do not pass unknown options into CodeCheck.ps1
      
      * Pass `-ci -nobl` into remaining CI build jobs
      
      * Switch default TFM to `net5.0`
      
      * Update missing project templates tfms
      
      * Add more `-ci -nobl`
        - needed because _all_ builds in the pipeline are implicitly CI builds
          - default-build.yml adds `-ci` when script wasn't explicit
      
      * Default templates to net5.0
      
      * PR feedback
      
      * Update TFMs in explicit .nuspec files
      
      * Update TFMs in test projects
      
      * Update TFMs in test C# code
      
      * Update TFMs in infrastructure files
      
      * Future-proof a check for `net5.0` or later
        - avoid comparisons involving `$(TargetFramework)` in .targets files
          - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)`
      
      * !fixup! Undo a couple of earlier fixes
        - remove a duplicate `$()` setting
        - correct the one remaining versioned `#if` define
          - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs
      
      * Disable binary logs in CodeCheck.ps1
      
      * Specify `-ci -nobl` just once when using `parameters.buildArgs`
      
      * Restore `$binaryLog` default logic
      
      This cherry-picks most of d5849f35 into this branch
      - [master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630)
      - does not include dotnet/aspnetcore-tooling updates
      
      Co-authored-by: default avatardotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com>
      Co-authored-by: default avatarWill Godbe <wigodbe@microsoft.com>
      Co-authored-by: default avatarViktor Hofer <viktor.hofer@microsoft.com>
      0f80048f
  5. 5月 15, 2020
    • dotnet-maestro[bot]'s avatar
      [master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630) · d5849f35
      dotnet-maestro[bot] 创作于
      * Update dependencies from https://github.com/dotnet/arcade build 20200511.9
      - Microsoft.DotNet.Arcade.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
      - Microsoft.DotNet.GenAPI: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
      - Microsoft.DotNet.Helix.Sdk: 5.0.0-beta.20228.4 => 5.0.0-beta.20261.9
      
      * Update dependencies from https://github.com/dotnet/aspnetcore-tooling
      
       build 20200514.6
      
      Microsoft.AspNetCore.Mvc.Razor.Extensions , Microsoft.AspNetCore.Razor.Language , Microsoft.CodeAnalysis.Razor , Microsoft.NET.Sdk.Razor
       From Version 5.0.0-preview.5.20261.4 -> To Version 5.0.0-preview.6.20264.6
      
      * Pre-emptively take -nobl change
      
      * Disable binlogs in CI
      
      * Fix build.sh to know about -nobl
      
      * Align build.ps1|sh with latest Arcade parameters
      - do not enable binary logs by default in CI builds
      - leave `-binaryLog` and `-excludeCIBinaryLog` handling to eng/common/tools.ps1|sh
        - was unnecessary since `-bl /bl:{some name}` worked fine, ignoring OOMs
      
      nit: document `-excludeCIBinarylog` a bit more
      
      * Do not pass unknown options into CodeCheck.ps1
      
      * Pass `-ci -nobl` into remaining CI build jobs
      
      * Switch default TFM to `net5.0`
      
      * Update missing project templates tfms
      
      * Add more `-ci -nobl`
      - needed because _all_ builds in the pipeline are implicitly CI builds
        - default-build.yml adds `-ci` when script wasn't explicit
      
      * Default templates to net5.0
      
      * PR feedback
      
      * Update TFMs in explicit .nuspec files
      
      * Update TFMs in test projects
      
      * Update TFMs in test C# code
      
      * Update TFMs in infrastructure files
      
      * Future-proof a check for `net5.0` or later
      - avoid comparisons involving `$(TargetFramework)` in .targets files
        - fine to compare it with `''` or `$(DefaultNetCoreTargetFramework)`
      
      * !fixup! Undo a couple of earlier fixes
      - remove a duplicate `$()` setting
      - correct the one remaining versioned `#if` define
        - did not make it `#if NETCOREAPP` because benchmarks test numerous .NET Core TFMs
      
      * Disable binary logs in CodeCheck.ps1
      
      * Specify `-ci -nobl` just once when using `parameters.buildArgs`
      
      * Restore `$binaryLog` default logic
      
      Co-authored-by: default avatarDoug Bunting <6431421+dougbu@users.noreply.github.com>
      Co-authored-by: default avatarWill Godbe <wigodbe@microsoft.com>
      Co-authored-by: default avatarViktor Hofer <viktor.hofer@microsoft.com>
      d5849f35
  6. 4月 26, 2020
    • Doug Bunting's avatar
      A quick collection of quick fixes (#20993) · 54722a52
      Doug Bunting 创作于
      * Quick fix: Simplify devBuilds.yml
        - remove an excess build step
      
      * Quick fix: Move `SetupNugetSources` script invocations above `parameters.beforeBuild`
        - ensure NuGet.config is ready for all internal builds
        - remove now-duplicate `SetupNugetSources` invocations wherever default-build.yml is used
      
      * Quick fix: Clean up SiteExtensions/build.cmd
        - quote all rooted paths
        - check `%ERRORLEVEL%` after every `CALL`
        - nits:
          - add a few more `ECHO` commands
          - wrap long lines
      
      * Quick fix: Ensure `$(BuildNative)` is always set correctly
        - fix problems using `-all` or `/p:BuildAllProjects=true` without `-buildNative`
          - ensure `$(BuildNative)` is `false` where it's not supported
        - move some duplicated settings into eng/Common.props and `<Import />` the new file
        - remove now-duplicated parts of conditions using `$(BuildNative)`
      
      * Quick fix: Consistently use `--build-*`
        - avoid `/p:Build*`  on the command line (except with eng/scripts/ci-source-build.sh)
        - nits:
          - remove now-useless `-buildNative` with `-all`
          - expand and correct a couple of related comments and messages
      
      * Quick fix: Support `-all` together with `-projects`
        - remove need to specify `/p:BuildAllProjects=true`
        - nit: simplify some Boolean logic
      54722a52
  7. 2月 20, 2020
  8. 2月 06, 2020
  9. 1月 24, 2020
  10. 12月 16, 2019
    • DotNet Bot's avatar
      Merged PR 4703: [internal/release/3.1] Update dependencies from 1 repositories · 13246741
      DotNet Bot 创作于
      This pull request updates the following dependencies
      
      [marker]: <> (Begin:48752c90-f78c-49ee-575f-08d76e1d56cb)
      ## From https://github.com/aspnet/EntityFrameworkCore
      - **Build**: 20191210.7
      - **Date Produced**: 12/10/2019 8:25 PM
      - **Commit**: 813358a5fb4e1f35e5d82463d2bad6616ca6f594
      - **Branch**: refs/heads/internal/release/3.1
      - **Updates**:
        - **Microsoft.EntityFrameworkCore.Tools** -> 3.1.1-servicing.19610.7
        - **Microsoft.EntityFrameworkCore.SqlServer** -> 3.1.1-servicing.19610.7
        - **dotnet-ef** -> 3.1.1-servicing.19610.7
        - **Microsoft.EntityFrameworkCore** -> 3.1.1-servicing.19610.7
        - **Microsoft.EntityFrameworkCore.InMemory** -> 3.1.1-servicing.19610.7
        - **Microsoft.EntityFrameworkCore.Relational** -> 3.1.1-servicing.19610.7
        - **Microsoft.EntityFrameworkCore.Sqlite** -> 3.1.1-servicing.19610.7
      
      [marker]: <> (End:48752c90-f78c-49ee-575f-08d76e1d56cb)
      13246741
  11. 9月 11, 2019
    • Doug Bunting's avatar
      Use stages pipeline (#13040) · 04705ee4
      Doug Bunting 创作于
      - #11924
      - change ci.yml to use stages and post-build.yml
        - add use of publish-build-assets.yml and post-build.yml
        - create manifests and push to artifacts in last build step of each job
          - pass more MSBuild properties into those builds
          - use Arcade to publish installers
        - use distinct `$(AssetManifestFileName)` values per job
          - set global property to override what's hard-coded in Publish.proj
      - change codesign-xplat.yml to use empty.proj and normal Arcade signing and publication process
        - remove XPlatPackageSigner.proj
      - change default-build.yml to use job.yml
        - remove unused parameters e.g. `matrix`, `poolName`, `variables`
        - use `enableMicrobuild` and `enablePublishTestResults` to eliminate duplicate build steps
      - add .dll's and .exe's as files to sign w/ Microsoft400
        - add signcheck exclusions
      - remove custom manifest generation i.e. the `GenerateBuildAssetManifest` target and related artifacts
      - update docker infrastructure to use same paths in and out of the container
        - avoids problems adding to artifacts from within the builds
      - correct typo in build.sh
      - use `$env:DOTNET_INSTALL_DIR` in `DotNetCommands`
        - relax expectations that an arch-specific folder exists under (say) `$env:DOTNET_HOME`
        - avoids need to define `$env:DOTNET_HOME` in all jobs on CI
      - update dependencies from dotnet/arcade build '20190908.2'
        - upgrade to eg. Arcade SDK '1.0.0-beta.19458.2' package version
        - pick up dotnet/arcade@dd593acc8b08 fix
          - enable use of `%(PublishFlatContainer)` metadata and correct signing validation issues
      - use `$(DotNetFinalVersionKind)` in preparation for servicing builds
        - set `$(IsStableBuild)` for use in Arcade infrastructure
      - disable signing validation for now (see #13864)
      
      nits:
      - upload logs in first artifact
      - remove attempts to package non-existent VSIX
        - follow-up to 29cf7ecb
      - respect verbosity setting in build.sh
      - add more information to Artifacts.md
      - enable test signing in internal PRs
      04705ee4
  12. 8月 06, 2019
  13. 7月 30, 2019
  14. 7月 27, 2019
    • John Luo's avatar
      Improve components infrastructure (#12145) · e149f9c0
      John Luo 创作于
      * Remove generated Web.JS javascript files files
      
      * Build NodeJS project referenced by managed projects by default
      
      * Build Web.JS before other CI jobs
      
      - We can't build Web.JS on Linux Musl for example
      
      * Make BuildAll not override explicit BuildJava/NodeJS/Native/Managed settings
      
      * Capture CodeCheck logs for debugging
      
      * Skip NodeJS projects when generation ref assemblies
      
      * Do not build dependent projects if NodeJS is not built
      
      * Make build fail immediately if BuildNodeJS is true but NodeJS is not installed
      
      * Do not build nodejs in installer builds
      e149f9c0
  15. 6月 20, 2019
    • Nate McMaster's avatar
      Replace KoreBuild with Arcade (#11122) · 4fde84a7
      Nate McMaster 创作于
      * Replace usages of $(CI) with $(ContinuousIntegrationBuild)
      
      * Move RepoTasks to eng/tools/
      
      * Remove dead code
      
      * Update build.sh/ps1 to invoke Arcade instead of KoreBuild
      
      * build/repo.props => eng/Build.props
      
      * build/CodeSign.{props,targets} => eng/Signing.props
      
      * build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets
      
      * Remove AddAllProjectRefsToSolution.ps1
      
      * Put selenium process tracking into artifacts/tmp/
      
      * build/docker => eng/docker
      
      * Move content from korebuild.json to global.json
      
      * Remove cibuild.{sh,cmd} and update ci.yml
      
      * Ensure vswhere detects BuildTools installations
      
      * Remove sign check exclusions (Arcade does not support)
      
      * list VS required components in global.json
      
      * Update CodeCheck.ps1
      
      * Update arcade (#11143)
      
      * Fixups to broken build
      
      * capture test results in xunit form
      * attempt to fix code check
      * restore before linux build
      * remove duplicate signinfos
      
      * More build fixes
      
      * exclude node_modules from unique project check
      * fixup signing props
      
      * More build fixes
      
      * Remove unused NoWarns
      * Skip building site extension
      * Suppress xunit color in console output
      * Install x86 runtime
      
      * Run KillProcesses.ps1 at end of build on CI
      
      * activate env vars in codecheck.ps1
      
      * Fix signing and generate build manifests
      
      * Fixup code check and linux installers build
      
      * Remove custom restore targets
      
      * Import flaky test props
      
      * Restore original manifest generation code and set warnAsErrors=false
      
      * Alwasy restore the toolset
      
      * More attempts at build fixes
      
      * run restore before building deb/rpm packages
      * pre-install Yarn.MSBuild
      * Remove WIX workaround
      
      * Attempt to fix RPM installers and x86 build
      
      * Fix helix tests, java auto-detection, and code gen steps
      
      * Globally disable MSBuild node resuse and capture MSbuild crash logs
      
      * Cleanup build invocation for installers
      
      * Set max time on xunit tests to 15 min
      
      * Update helix-test.yml
      
      * Fix Hosting tests
      
      * Fix TestHost
      
      * Fix Negotiate.Test
      
      * Fix Mvc tests
      
      * Capture results
      
      * Fix Hosting tests
      
      * Fix Kestrel tests
      
      * Fix ServerComparison tests
      
      * Fix DefaultBuilder functional tests
      
      * Skip template tests
      
      Need to run pack before running tests on mac/linux now
      
      * Fix Identity test
      
      * Fix ServerComparison tests
      
      * Verify nginx installation on ubuntu
      
      * Verify nginx installation?
      
      * Try adding to path
      
      * Try symlink
      
      * Sudo?
      
      * Woot it works
      
      * Disable timeout
      
      Template tests require more than 15 mins
      
      * list env vars
      
      * Use correct dotnet_home
      
      * Prepent path instead
      
      * Fix npmproj tests
      
      * Fix CORS tests
      
      * Debug signalr tests
      
      * Debug signalr
      
      * Capture bin
      
      * Try building templates sequentially
      
      * Debug signalr
      
      * Cleanup
      
      * Disable signalr npm tests
      
      * Debug template test
      
      * Try to fix templates again and make steps more reliable
      
      * Cleanup
      
      * Feedback
      4fde84a7
  16. 2月 21, 2019
    • Nate McMaster's avatar
      Make Visual Studio 2019 a prerequisite to building this repo (#7005) · 85ae18c7
      Nate McMaster 创作于
      Changes:
      
      * Make Visual Studio 2019 a prerequisite for building this repo
      * Update .sln files
      * Update Windows SDK to 17134
      * Update developer docs
      * Disable ANCM tests
      * Update to .NET Core SDK 3.0 Preview 2
      * Use Microsoft.NET.Sdk.Razor as a package consistently accross the repo
      * React to changes in metadata from Microsoft.NETCore.App
      * React to changes in .NET Core SDK
      * Attempt to workaround CodeCheck.ps1 failure which doesn't repro locally or on different agents. Possibly due to differences in the version of the PowerShell task?
      * Remove dead YML file
      * Rename usages of win7-{x64,x86} to win-{x64,x86}
      * Update KoreBuild to 3.0.0-build-20190219.1
      85ae18c7
  17. 2月 14, 2019
    • Nate McMaster's avatar
      Create new 'runtime pack' nuget packages for Microsoft.AspNetCore.App (#7475) · 0ec25d31
      Nate McMaster 创作于
      * Create a new package  - Microsoft.AspNetCore.App.Runtime.${rid} - which contains crossgen-ed versions of shared framework assemblies. This will be used by the SDK to replace rid-split packages
      * Add a task which can generate the .deps.json file for the shared framework. Unlike the existing task we have, this does not rely on consuming a .deps.json file generated by first running a restore on packages.
      * Move the reference to xunit.runner.console into the normal targets and files for managing dependencies
      * Produce binlogs during build
      0ec25d31
  18. 2月 07, 2019
    • Nate McMaster's avatar
      Install the .NET Core SDK into the repo root instead of UserProfile and... · 075612b9
      Nate McMaster 创作于
      Install the .NET Core SDK into the repo root instead of UserProfile and 'install' copy of AspNetCore shared framework (#7293)
      
      This is required to workaround several limitations in the way the .NET Core SDK finds shared frameworks and targeting packs. It allow tests to use shared frameworks and targeting packs.
      
      It also matches the patterns established in other aspnet and dotnet repos. This should reduce the friction required to adopt Arcade SDK.
      
      ## Changes
      
      * This moves the default location of the .NET Core SDK installation into `$repoRoot/.dotnet`. This location was already in use for CI builds. 
      * Update the build step for Microsoft.AspNetCore.App to install the shared framework into the local copy of the .NET Core SDK
      
      ## Recommendations
      
      * Use the "startvs.cmd" script to launch Visual Studio. This will set required environment variables to make VS happier than if you just double click the .sln file.
      * Use "activate.sh/ps1" if you want to run `dotnet build`, `dotnet test` and other dotnet commands. These will set required environment variables, including PATH.
      * I recommend removing %USERPROFILE%/.dotnet to your PATH variable if you had added it manually before. This will no longer match what build tools will install.
      * `git clean -xfd -e .dotnet/` preserves the folder so you don’t have to re-download the SDK again.
      075612b9
  19. 2月 01, 2019
    • Nate McMaster's avatar
      Add new build.cmd/sh options for suppressing restore, NodeJS, setting target... · 6081fec8
      Nate McMaster 创作于
      Add new build.cmd/sh options for suppressing restore, NodeJS, setting target arch and OS name, and more (#7137)
      
      Add new command line parameters for working with the project:
      
      * `-NoBuild`, `-NoRestore` - these already existed, but users found it hard to discover this powershell syntax: '-build:$false'
      * `-Arch`/`--arch` - set the target CPU architecture to build. Defaults to x64
      * `--os-name` - on non-Windows builds, manually specify if the build should target Alpine. generic Linux, or MacOS
      * Rename flags used to build specific project types. The pattern now is `--build-$(group)` or `--no-build-$(group)` (In PowerShell its `-Build$(Group)` or `-NoBuild$(Group). Example: -NoBuildJava
      
      Changes to build definitions:
      * Update the ci build definition to build all supported architectures
      * Support publishing multiple artifacts per job
      
      Other changes:
      * `-NoBuild` implies `-NoRestore`
      * Add new properties, `TargetArchitecture`, `TargetOsName`, and `TargetRuntimeIdentifier`
      * Replace usages of `SharedFxRid` with these new properties
      * To make `--no-build-nodejs` actually work, replaced Components.Browser.JS.csproj with Components.Browser.JS.npmproj
      * Fix errors when building for win-arm on a clean machine
      * Fix a few other project errors, like using the wrong syntax for DefaultItemExcludes, or using the wrong Platform value for x86
      6081fec8
  20. 1月 29, 2019
    • Nate McMaster's avatar
      Remove obsolete build infrastructure (#6995) · ac04019e
      Nate McMaster 创作于
      Changes:
      
      * Remove obsolete targets which are unnecessary now that this repo no longer builds git submodules in a separate build process
      * Remove the need for static analysis of 'ArtifactInfo' items
      * Simplify how the code signing task is configured
      * Remove unused repo tasks
      * Remove duplicate lists of external dependencies and packages to be produced
      * Remove obsolete build definition
      * Remove obsolete build script parameters
      * Add VisualStudioSetupOutputPath
      ac04019e
  21. 1月 19, 2019
  22. 12月 21, 2018
    • Nate McMaster's avatar
      build.cmd/sh changes (#5958) · c3beb1f9
      Nate McMaster 创作于
      Update the build scripts to support building subfolders or subgroups of projects
      
      * Add build scripts for ci
      * Remove obsolete scripts
      * Add flags like --test and --pack to control running just test or packaging
      * Add flags like --managed and --native to control building sub-types of projects
      * Remove KoreBuild bootstrapper flags
      * Update to extensions 3.0.0-preview.18619.1 (needed to get a fix for aspnet/Extensions#815 to make this change work on MSBuild.exe)
      c3beb1f9
  23. 12月 06, 2018
  24. 12月 05, 2018
  25. 12月 04, 2018
  26. 12月 01, 2018
  27. 11月 28, 2018
加载中