Skip to content
代码片段 群组 项目
  1. 10月 21, 2021
  2. 8月 05, 2021
  3. 8月 01, 2021
  4. 7月 30, 2021
    • Safia Abdalla's avatar
      Disable analyzers only when building in VS (#34848) · 08c8b419
      Safia Abdalla 创作于
      
      * Disable analyzers only when building in VS
      
      * Add API annotation for ToString
      
      * fixups
      
      * Fix up some more warnings
      
      * Update condition for EnforceCodeStyleInBuild
      
      * Remove duplicate entry in PublicAPI files
      
      * Update namespace for JSComponentConfigurationExtensions
      
      * Remove duplicate Microsoft.AspNetCore.Components.Web.JSComponentConfigurationExtensions
      
      * Fix license header in test file
      
      Co-authored-by: default avatarBrennanConroy <brecon@microsoft.com>
      08c8b419
  5. 7月 24, 2021
  6. 7月 23, 2021
  7. 7月 15, 2021
  8. 6月 04, 2021
  9. 5月 14, 2021
    • Doug Bunting's avatar
      Clean up `$(RepoRoot)` consistently (#32664) · c53700bf
      Doug Bunting 创作于
      - don't override correct values but fix incorrect ones
      - fix #32615
      - also get SignalR pipeline working again
      
      nits:
      - don't use `$(MSBuildProjectDirectory)` in project files
        - inconsistent w/ `$(MSBuildThisFileDirectory)` and harder to grok
      - don't add unnecessary slashes after `$(MSBuildThisFileDirectory)`
      - clean up Microsoft.AspNetCore.Testing.props
        - used only from eng/targets/CSharp.Common.props but fallback settings may help
      c53700bf
  10. 5月 11, 2021
    • Doug Bunting's avatar
      Correct direct builds e.g. `msbuild` (#32552) · 9521fd36
      Doug Bunting 创作于
      - correct `$(RepoRoot)` fallback in Directory.Build.props
        - need trailing slash almost everywhere
      - pass `$(RepoRoot)` and `$(Configuration)` properties into helix.proj
        - properties aren't always global and were missing when invoked from RunHelix.ps1
      9521fd36
  11. 3月 12, 2021
  12. 3月 04, 2021
    • John Luo's avatar
      Enable ARM64 installers build. (#25579) (#30463) · 69108cee
      John Luo 创作于
      * Enable ARM64 installers build. (#25579)
      
      Changes WiX toolset used to 3.14 to support ARM64
      Generates targeting pack from the x86/x64 leg, as it gets produced using a zip that gets generated there.
      The ARM64 leg now produces all the necessary msi's, exe, and wixlib needed for the installer to generate a bundle.
      
      * Build tageting pack installers
      
      * Set TP version to 3.1.10
      69108cee
  13. 2月 20, 2021
  14. 12月 18, 2020
    • Safia Abdalla's avatar
      Add support for generating app manifest files for tests (#28575) · f7e1712d
      Safia Abdalla 创作于
      * Add initial support for reading content paths from file
      * Add task for generating app manifest file
      * Completed support for generating AppManifest.json
      * Fix deserializing JSON and getting path by assembly name
      * Address feedback from peer review
      * Fix up target definition and formatting
      * Undo typo fix
      * Fix target name and JSON parsing
      * Update test scenario when using app manifest
      * Add new project to ProjectReferences
      * Generate file before PrepareResources
      * Address feedback from peer review
      f7e1712d
  15. 12月 08, 2020
  16. 12月 03, 2020
    • Doug Bunting's avatar
      Further centralize shared Fx and TFM transition workarounds (#27473) · 5fd1db26
      Doug Bunting 创作于
      * Further centralize shared Fx and TFM transition workarounds
        - make generated `Directory.Build.*` files more widely applicable
          - warn if requested Microsoft.AspNetCore.App version does not exist in `$(DOTNET_ROOT)`
          - add `$(UpdateAspNetCoreKnownFramework)` for Microsoft.AspNetCore.App `@(KnownFrameworkReference)` update
          - remove central `$(BuildingTestAppsIndependently)` special case
            - not needed because compiler toolset version is always available
          - correct `$(KnownAppHostPackOrFrameworkReferenceTfm)` when not targeting the default TFM
            - use MSBuild intrinsic functions for this and in framework projects; future-proofing
          - correct `@(KnownFrameworkReference)` metadata when in servicing
             - should not override default runtime and targeting pack versions
        - use generated `Directory.Build.*` files in regular build
          - remove now-duplicate property and item settings outside generated `Directory.Build.*` files
        - use generated `Directory.Build.*` files for local Razor tests
          - set `$(TargetLatestRuntimePatch)` instead of `$(RuntimeFrameworkVersion)`; simpler
          - do not restore Razor SDK test asset projects until just before tests run
          - depend on Microsoft.AspNetCore.App projects
          - disable `$(TreatWarningsAsErrors)` for a few Razor SDK tests
            - tests expect projects to build successfully despite a few warnings
        - improve (widen) Microsoft.AspNetCore.App `Condition` in Blazor SDK tests
      
      nit: do not pass `$(MicrosoftNetCompilersToolsetVersion)` into Razor test asset projects
        - not needed because generated files already contain the right information
        - even without that, the Directory.Build.props file imports eng/Versions.props
      
      * Use generated `Directory.Build.*` files for local template tests
        - move Infrastructure/ files to TestInfrastructure/
          - Infrastructure/ sub-directories were functionally identical
        - move shared parts of template test project files to PrepareForTest.targets
      
      * Describe errors with missing generated files and the new warning in BuildFromSource.md
        - address numerous Markdown lint warnings, typos, and spelling mistakes in this file
      
      * Apply suggestions from code review
        - thanks @captainsafia
      
      * Move all troubleshooting information into BuildErrors.md
        - some was already duplicated
        - fix Markdown lint issues in BuildErrors.md too
      
      * Reorder App.Runtime build slightly
        - move `_InstallFrameworkIntoLocalDotNet` earlier because other builds depend on this part
          - this target sometimes executes after dependent projects continue
        - add `DependsOnTargets` attributes to further constrain ordering
      
      nit: `IncludeFrameworkListFile` should run before `_ResolveSharedFrameworkContent`
      
      * Add temporary workaround for `[AssemblyVersion]` changes
      
      * Address @wtgodbe's nit from #27653
        - https://github.com/dotnet/aspnetcore/pull/27653#pullrequestreview-529368502
      
      
      
      Co-authored-by: default avatarSafia Abdalla <safia@microsoft.com>
      5fd1db26
  17. 11月 24, 2020
  18. 11月 13, 2020
    • Doug Bunting's avatar
      [release/5.0] Update API baseline files (#27653) · 41587562
      Doug Bunting 创作于
      * Move all PublicAPI.Unshipped.txt files to PublicAPI.Shipped.txt
      - we have now shipped this API surface
      
      * Add eng/PublicAPI.empty.txt file
      - make it easier to add new implementation projects
      
      * Add missing public API baseline files
      - #26784 part 1/2
      - a few unexpected files turned up missing beyond the #26784 list&hellip;
      
      * Reference Microsoft.CodeAnalysis.PublicApiAnalyzers more often
      - #27484 part 2/2
      - emit errors when API baseline files are missing
      - update categorization of some projects
        - specification tests are not implementation projects
          - but _were_ project reference providers (keep that)
        - correct `$(IsTestAssetProject)` setting for Razor shims et cetera
        - correct `$(IsSampleProject)` setting for casing of some Sample directories
        - Microsoft.AspNetCore.Analyzer.Testing should be treated as test asset
      - add `$(AddPublicApiAnalyzers)` property to support overrides
        - e.g. for `msbuild` task projects and tools
      
      nit:
      - remove useless `$(IsTestProject)` setting in a specification test project
      - wrap some long `Condition`s
      
      * Do not run public API analyzer in `RazorCoreCompile` target
      
      * Remove old `$(EnableApiCheck)` settings
      - property does nothing
      - also remove a dangling ApiCheck comment
      41587562
  19. 11月 07, 2020
  20. 11月 06, 2020
  21. 10月 28, 2020
    • Steve MacLean's avatar
      Add initial support for Apple Silicon (#27264) · bb5efb76
      Steve MacLean 创作于
      * Add initial support for Apple Silicon
      
      - Add osx-arm64 runtime dependency
      - Add osx-arm64 to supported rid identifiers
      - Update vmImage to macOS-10.15
      - Use XCode 12.2 for all macOS builds
      - Add build and sign macos arm64 to CI scripts
      
      This should build aspnetcore for osx-arm64, however
      the native dependencies libuv and libe_sqlite3 will
      need to be updated to have full functionality.  These
      are provided by separate repos.
      
      Enabling at this point unblocks effort to create the initial
      osx-arm64 SDK.
      
      * PR Feedback
      bb5efb76
  22. 10月 14, 2020
  23. 10月 13, 2020
    • Doug Bunting's avatar
      Update branding to 6.0.0 Alpha1 (#24983) · da7fead4
      Doug Bunting 创作于
      * Update branding to 6.0.0 Alpha1
      - hold the TFM back at `net5.0`
      - correct `TargetFrameworkVersion` in FrameworkList.xml; don't use `$(AspNetCoreMajorMinorVersion)`
      - move `$(DefaultNetCoreTargetFramework)` to eng/Versions.props
        - avoid repeating value in AfterSolutionBuild.targets and Directory.Build.props files
      - add new versions to `TemplatePackageInstaller`
      - update project template test scripts
      
      * Update / add 6.0 package versions in test expectations
      - basically, remove test assumptions that branding == target TFM
      - `TestData` will need another update once 6.0.0.0 assembly versions arrive from dotnet/runtime
      
      * Update `Condition`s on `@(SuppressBaselineReference)` items to 6.0
      
      * Undo some of #24816
      - allow sharedFx assemblies in Microsoft.AspNetCore.Components.WebAssembly.DevServer package
      - see #26448 about reducing this baggage later in 6.0
      
      * Skip IndividualAuth tests on Helix
      - #26776
      da7fead4
  24. 9月 25, 2020
  25. 9月 14, 2020
    • Doug Bunting's avatar
      Fix Helix testing issues with stable versions and local builds (#25865) · e3b63289
      Doug Bunting 创作于
      - include all shipping packages in Helix payloads that need runtime
        - remove hard-coded `-ci` that broke Helix tests with stable versions or local builds
        - for local builds, do not assume `$(Configuration)` is Release
      - support `$(HelixTargetQueues)` property used in RunHelix.ps1
        - lost somewhere along the lines; script ran full matrix
      
      nits:
      - clean up redundant addition of runtime and ref/ packages
        - `@(HelixContent)` additions in `_CreateHelixWorkItem` target are ignored
      - mention '+' separation of `-HelixQueues` argument to RunHelix.ps1
      - allow `$(IsUnitTestProject)` override in case we need it in the future
      e3b63289
  26. 9月 09, 2020
  27. 9月 01, 2020
    • Doug Bunting's avatar
      Correct the site extensions builds (#25406) · 27582545
      Doug Bunting 创作于
      - handle differing SiteExtensions package versions
        - the arch-specific packages don't stabilize when final package does
      - update 3.1 packages in bundle to 3.1.7 version
      - remove useless empty folder from LoggingBranch (arch-specific) package
        - double slashes help nobody but add an empty-named level in the package
      
      nit: fix a binary log filename
      27582545
  28. 8月 28, 2020
    • William Godbe's avatar
      Add net461 TFM to netstandard2.0 projects (#25094) · ce058f63
      William Godbe 创作于
      * Add net461 TFM to netstandard2.0 projects
      
      * Fix a couple of errors
      
      * Fix some errors
      
      * Get rid of Sockets reference
      
      * Respond to feedback
      
      * net461 -> property
      
      * Fixup clientSample
      
      * Remove net461 from analyzers/razor
      
      * Remove net461 from test projects
      
      * Feedback
      
      * Add net461 test configs
      
      * Remove some incompatible test configs
      
      * Fix test
      ce058f63
  29. 8月 14, 2020
  30. 8月 13, 2020
  31. 8月 12, 2020
    • Doug Bunting's avatar
      Update branding to 3.1.8 · 9f03b0ac
      Doug Bunting 创作于
      - build targeting pack to pick up NuGet/Home#8599 fix
          - dotnet/extensions#2750 and #24200 2/2
          - requires follow-up after next official extensions build
      - fake the baseline update
          - remainder must be done after the 3.1.7 release
      9f03b0ac
  32. 8月 11, 2020
    • Pranav K's avatar
      Remove Internal.AspNetCore.Analyzers (#24693) · 059e2fdc
      Pranav K 创作于
      * Remove Internal.AspNetCore.Analyzers
      
      This resolves build flakiness caused by referencing the analyzer:
      
      ```
      2020-08-07T21:22:39.1149296Z ##[error].dotnet\sdk\5.0.100-rc.1.20379.10\Microsoft.Common.CurrentVersion.targets(4188,5): error MSB3026: (NETCORE_ENGINEERING_TELEMETRY=Build)
      Could not copy "F:\workspace\_work\1\s\artifacts\obj\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll"
      to "F:\workspace\_work\1\s\artifacts\bin\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll". Beginning retry 1 in 1000ms.
      The process cannot access the file 'F:\workspace\_work\1\s\artifacts\bin\Internal.AspNetCore.Analyzers\Release\netstandard1.3\Internal.AspNetCore.Analyzers.dll' because it is being used by another process.
      ```
      
      The analyzer checks if pubternal types are being exposed in public APIs. We no longer author pubternal types, so this is no longer a concern.
      
      * Remove DisablePubternalApiCheck
      059e2fdc
  33. 7月 22, 2020
    • Doug Bunting's avatar
      Simplify ref/ assembly generation (#24136) · fb28ce3e
      Doug Bunting 创作于
      * Simplify ref/ assembly generation
          - followup 1/2 for 5266918e
          - correct the Razor.Tools project
            - `%(Reference.Version)` metadata does not bleed through into `@(PackageReference)` items
            - much more work to do so than to add this special case
            - remove `$(Razor_NewtonsoftJsonPackageVersion)`
          - remove RTMVersions project and use RepoTasks instead
            - make it an error if RepoTasks is not restored before anything else builds
      - add items and properties for System.Security.AccessControl
      
      nits:
      - remove invalid (ignored) metadata in Directory.Build.props and AzureAppServices.SiteExtension project
      - improve / extend a couple of comments
      - move `@(Reference)` items together in Microsoft.AspNetCore.Razor.Tools
      fb28ce3e
  34. 7月 18, 2020
    • Doug Bunting's avatar
      Use Roslyn to create ref/ assemblies (#23403) · 5266918e
      Doug Bunting 创作于
      * Remove all ref/ projects
      
      * Remove GenAPI infrastructure
      
      * Remove notion of a reference assembly project
        - remove `$(IsReferenceAssemblyProject)`, `$(ReferenceReferenceAssemblies)` and `$(ReferenceImplementationAssemblies)`
          - remove unnecessary `$(NoWarn)` settings
      
      nits:
      - remove a few misleading comments
      - wrap some long lines
      
      * Move .0 package version workaround into Versions.props
        - touch up SharedFramework.External.props
      
      * Expose `%(LatestPackageReference.RTMVersion)` metadata
        - automate use of properties in the `@(LatestPackageReference)` item group to make this maintainable
          - add a couple of special cases at the bottom of eng/Dependencies.props
          - add one more `$(...PackageVersion)` property to avoid yet-another special case
      
      * Enable Roslyn reference assemblies
        - exclude ref/ assembly from packages other than targeting pack
        - update Microsoft.AspNetCore.App.Ref.csproj
          - `%(IsReferenceAssembly)` and `%(ReferenceGrouping)` metadata no longer relevant
          - only ref/ assemblies are in `@(ReferencePathWithRefAssemblies)` item group
      
      nits:
        - remove now-unnecessary workaround
          - issues with TFM transition are behind us
        - clean up Microsoft.AspNetCore.App.Runtime.csproj slightly
          - use `GeneratePathProperty="true"`
              - reorder item / property settings for meta-expansion
          - correct spelling errors and phrasing in comments
      
      * Update documentation to reflect recent changes
        - remove CrossRepoBreakingChanges.md; was tied to old TeamCity infrastructure
          - also much less relevant given repo merges
        - adjust details and examples in ReferenceResolution.md
          - reflect repo merges, Dependencies.props changes, and current Maestro++ channels
          - add a few more details e.g. specific files where Version.Details.xml versions are used
      
      * !fixup! Remove another irrelevant doc file
      
      * !fixup! Address PR review suggestions
        - convert a couple of warnings to errors
        - use consistent casing for Microsoft.NETCore.App.Runtime.* packages
        - reduce `%(LatestPackageReference.Version)` metadata special cases
        - add and improve comments e.g.
          - improve comments about `$(*V0PackageVersion)` properties
          - improve placement of comments about item removal in ResolveReferences.targets
          - confirmed `$(*V0PackageVersion)` property list is complete
      
      nits:
      - fix solution example in ReferenceResolution.md
      - remove item group definition for `@(LatestPackageReference)`
      - remove `%(LatestPackageReference.VersionName)` metadata after use; large item group
          - similarly, remove `%(LatestPackageReference.RTMVersion)` when not needed; just complicates `Condition`s
      
      When I squash, I must remember this fixes
      - #14801
      - dotnet/aspnetcore-internal#2693
      
      * Actually use `%(LatestPackageReference.RTMVersion)` metadata
        - gather RTM package references in a new project
          - a (very) separate project to work around package conflict resolution
          - empty `Test` target works around Arcade's testing approach
        - new target in ResolveReferences.targets updates relevant assembly paths to use the RTM packages
          - done as soon as possible after `ResolvePackageAssets` determines the paths
          - done for all compilation inputs, not just ref/ assemblies
      5266918e
    • Pranav K's avatar
      Ensure analyzer does not appear in build and publish outputs (#24072) · 59b94e4b
      Pranav K 创作于
      Also make the analyzer actually work
      59b94e4b
  35. 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
  36. 6月 03, 2020
    • Matt Mitchell's avatar
      Build time changes (#22362) · d8733c2a
      Matt Mitchell 创作于
      
      * Build time changes
      A few changes for build time
      - Don't build tests with SkipTestBuild=true and use that for official
        build legs. This cuts 40%-50% off the msbuild invocations for build.
        The longest build leg drops by about 30 mins.
      - Skip logging of some task parameters and their metadata.
        This reduces overall binlog size, which is a major contributor to
        build time.
      
      Unfortunately, this does not mean we can yet turn binlogs back on. This
      change can actually increase the overall binlog size due to logging of
      more project started arguments. There is another optimization for this
      in progress.
      
      Co-authored-by: default avatarDoug Bunting <6431421+dougbu@users.noreply.github.com>
      d8733c2a
  37. 5月 30, 2020
    • Doug Bunting's avatar
      Build primarily with `dotnet msbuild` (#22017) · 14d6b6e2
      Doug Bunting 创作于
      * Make `dotnet msbuild` the default on Windows too
        - add step using desktop `msbuild` when native builds may be involved
          - `-All` (without `-NoBuildNative`), `-BuildNative` or `-BuildInstallers` run this step
          - but `-ForceCoreMsbuild` unconditionally skips this step
      
      nits:
      - add binary log for RepoTasks build if `$BinaryLog` (echoes the `dotnet msbuild` command)
      - add blank lines between build steps
      
      * Enable building managed projects depending on native assets
        - splitting native builds out confuses these projects
        - use `$(BuildNative)` less, only to control actual building (not bundling)
        - build both native platforms in one `msbuild` invocation
      
      * Adjust generation scripts to explicitly choose the MSBuild engine
        - ensure native assets are included in GenerateReferenceAssemblies.ps1 build
        - clean up the global state that tools.ps1 corrupts
      
      * Revert move to VS2019.Pre queues
      
      This reverts part of commit b67d161e
      - was "[release/5.0-preview5] Update dependencies from dotnet/aspnetcore-tooling (#21710)"
      
      * Revert "!temporary! Require `msbuild` from VS2019 16.6"
        - this reverts commit 58cf2304
      
      * Reduce build duplication in pipelines
        - build native assets and repo tasks once per CI job
        - only cleanup framework references after packing managed projects
      
      nits:
      - wrap a few long lines
      - remove extra `-forceCoreMsbuild` options in SiteExtensions' build.cmd
      
      * Fix Helix jobs
        - restore.cmd doesn't work well with `-projects`; script unconditionally adds `-all`
      
      * !fixup! Reduce duplications further
        - missed a couple of places `-noBuildRepoTasks` helps
      
      * Cleanup: Remove a few dangling binary logs
      
      * !fixup! Correct typos in generation scripts
      
      * !fixup! Another typo in the generation scripts
      14d6b6e2
  38. 5月 27, 2020
加载中