Commit Graph

39 Commits

Author SHA1 Message Date
Doug Bunting 5266918ed2
Use Roslyn to create ref/ assemblies (#23403)
* 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
2020-07-17 13:35:17 -07:00
Pranav K 592dfe165b
Changes to build in master
* Cleanup bad merge
* Update to dotnet-serve that supports arbitrary ports
2020-05-28 15:43:55 -07:00
dotnet-maestro[bot] d5849f3534
[master] Update dependencies from dotnet/arcade dotnet/aspnetcore-tooling (#21630)
* 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: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Co-authored-by: Will Godbe <wigodbe@microsoft.com>
Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2020-05-15 00:17:02 +00:00
Doug Bunting 54722a52b6
A quick collection of quick fixes (#20993)
* 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
2020-04-25 18:39:19 -07:00
Stephen Halter 88073f86ff Merge branch 'release/3.1' into master 2020-02-18 13:46:51 -08:00
John Luo a47417090d Fix CodeCheck 2020-01-14 18:33:01 -08:00
Kevin Pilch 0517745c08 aspnet/AspNetCore -> dotnet/aspnet
Except aspnet/AspNetCore-Internal.
2020-01-08 16:40:11 -08:00
DotNet Bot 1324674163 Merged PR 4703: [internal/release/3.1] Update dependencies from 1 repositories
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)
2019-12-15 17:23:03 +00:00
Pranav K 334961ef25
Ignore template sln during CodeCheck 2019-12-05 13:27:56 -08:00
John Luo 3dee6782c3
Ignore whitespace differences during code check (#13660) 2019-09-04 14:36:26 -07:00
dotnet-maestro[bot] f676c249d2
[master] Update dependencies from 3 repositories (#12977)
* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20190807.3

- Microsoft.EntityFrameworkCore.Tools - 5.0.0-alpha1.19407.3
- Microsoft.EntityFrameworkCore.SqlServer - 5.0.0-alpha1.19407.3
- dotnet-ef - 5.0.0-alpha1.19407.3
- Microsoft.EntityFrameworkCore - 5.0.0-alpha1.19407.3
- Microsoft.EntityFrameworkCore.InMemory - 5.0.0-alpha1.19407.3
- Microsoft.EntityFrameworkCore.Relational - 5.0.0-alpha1.19407.3
- Microsoft.EntityFrameworkCore.Sqlite - 5.0.0-alpha1.19407.3

Dependency coherency updates

- Microsoft.AspNetCore.Analyzer.Testing - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ActivatorUtilities.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.Memory - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.SqlServer - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Caching.StackExchangeRedis - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.CommandLineUtils.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.AzureKeyVault - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Binder - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.CommandLine - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.EnvironmentVariables - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.FileExtensions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Ini - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Json - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.KeyPerFile - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.UserSecrets - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration.Xml - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Configuration - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DependencyInjection.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DependencyInjection - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.DiagnosticAdapter - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Diagnostics.HealthChecks - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Composite - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Embedded - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileProviders.Physical - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.FileSystemGlobbing - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HashCodeCombiner.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Hosting.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Hosting - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HostFactoryResolver.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Http - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Localization.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Localization - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Abstractions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.AzureAppServices - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Configuration - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Console - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Debug - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.EventSource - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.EventLog - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.TraceSource - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Testing - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ObjectPool - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options.ConfigurationExtensions - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options.DataAnnotations - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Options - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ParameterDefaultValue.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Primitives - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.TypeNameHelper.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ValueStopwatch.Sources - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.WebEncoders - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Internal.Extensions.Refs - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.JSInterop - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Mono.WebAssembly.Interop - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Bcl.AsyncInterfaces - 1.1.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19404.5 (parent: Microsoft.Extensions.Logging)
- Microsoft.Extensions.Logging - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.CSharp - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Win32.Registry - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Win32.SystemEvents - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Drawing.Common - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Net.Http.WinHttpHandler - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Net.WebSockets.WebSocketProtocol - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 1.8.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Pkcs - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Permissions - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Principal.Windows - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Threading.Channels - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Windows.Extensions - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.Extensions.DependencyModel - 5.0.0-alpha1.19404.5 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19404.5 (parent: Microsoft.Extensions.Logging)
- NETStandard.Library.Ref - 2.1.0-alpha1.19404.5 (parent: Microsoft.Extensions.Logging)
- Microsoft.NETCore.Platforms - 5.0.0-alpha1.19381.2 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Internal.AspNetCore.Analyzers - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.Testing - 5.0.0-alpha1.19406.3 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Net.Compilers.Toolset - 3.3.0-beta3-19406-05 (parent: Microsoft.Extensions.Logging)

* First pass at fixing netcoreapp5.0 errors

* Add NETCoreAppMaximumVersion, remove BundledNETCorePlatformsPackageVersion

* Apply KnownFrameworkReference Workaround

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190808.17

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19408.17
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19408.17
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19408.17
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19408.17

* Update TFMs to 5.0

* Retarget TFMs to netcoreapp5.0

* Change compile items from netcoreapp3.0.cs to netcoreapp5.0.cs

* Rename netcoreapp3.0.cs files to netcoreapp5.0.cs

* Update TargetFrameworks, Conditions

* Fix missed items

* Clean up remaining items in src

* Fix missed merge conflict

* Set TFMNetCoreMajor/MinorVersions to 5.0

* Rename missed .cs file, update ifdefs

* Rename missed .cs file, update ifdefs

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190809.3

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19409.3
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19409.3
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19409.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19409.3

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190810.1

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19410.1
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19410.1
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19410.1
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19410.1

* Use default value for 5.0 TFM

* NETCOREAPP5_0 -> NETCOREAPP

* attempt to fix npm build

* Update TFM reverted by merge

* Explictly reference netcoreapp5.0 in repotasks.tasks

* Regenerate ref assemblies

* Consolidate FrameworkReference workarounds

* Add workaround back to d.b.t

* Regen ref assemblies

* regen blazor.server.js

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190813.2

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19413.2
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19413.2
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19413.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19413.2

* Update dependencies from https://github.com/aspnet/Blazor build 20190813.1

- Microsoft.AspNetCore.Blazor.Mono - 5.0.0-alpha1.19413.1

* Exclude blazor.server.js from code check

* start fixing tests

* Bump test TFMs to 5.0

* Regen ref assemblies, hardcode TFM in dotnet-watch tests

* Regenerate SpaServices.Extensions.netcoreapp.5.0.cs

* Fix dotnet-watch csproj TFMs

* Fixup 3.0 -> 5.0 files from merge

* Fixup another set of 3.0 -> 5.0 misses

* More 3.0 -> 5,9

* More 3.0 -> 5.0 madness

* Set TargetFramework for test templates

* Disable warning in ApiAuth tests

* Put TFM in right place

* Hardcode TFM

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190814.4

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19414.4
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19414.4
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19414.4
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19414.4

* Regen ref assemblies

* Hardcode TFM for template tests

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190815.9

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19415.9
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19415.9
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19415.9
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19415.9

* Apply AppHostPack/FrameworkRef workaround to dotnet-watch tests

* Set KnownAppHost/KnownFramework after sdk.targets import

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190816.3

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19416.3
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19416.3
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19416.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19416.3

* Update dependencies from https://github.com/aspnet/Blazor build 20190816.2

- Microsoft.AspNetCore.Blazor.Mono - 5.0.0-alpha1.19416.2

* More workaround

* Try workaround for template tests

* Update to 5.0 SDK

* Remove AppHostPack workaround

* Remove more workarounds

* Try updating RazorLangVersion

* Try adding FrameworkReference workaround back

* Remove framework and revert RazorLang to 3.0

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190819.4

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19419.4
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19419.4
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19419.4
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19419.4

* Update dependencies from https://github.com/aspnet/Blazor build 20190819.1

- Microsoft.AspNetCore.Blazor.Mono - 5.0.0-alpha1.19419.1

* Set env var

* Add 1 workaround back for SourceBuild

* Remove workaround from Project Template tests

* Add back maxVersion workaround for sourcebuild

* One more source build workaround

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190821.3

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19421.3
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19421.3
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19421.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19421.3

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190822.9

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19422.9
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19422.9
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19422.9
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19422.9

* Remove workaround for Razor 3.0 SDK

* Fix Blazor SDK error in SourceBuild

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190822.15

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19422.15
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19422.15
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19422.15
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19422.15

* Update dependencies from https://github.com/aspnet/Blazor build 20190822.1

- Microsoft.AspNetCore.Blazor.Mono - 5.0.0-alpha1.19422.1

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190824.6

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19424.6
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19424.6
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19424.6
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19424.6

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190825.1

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19425.1
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19425.1
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19425.1
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19425.1

* Rename netcoreapp5.0.cs files to netcoreapp.cs

* Fix inverted condition for Razor projects

* Apply Razor logic consistently

* Catch netcoreapp2.0.cs file in codecheck

* Remove ref:suppressField

* Reenable workarounds for Razor projects

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190826.2

- Microsoft.NET.Sdk.Razor - 5.0.0-alpha1.19426.2
- Microsoft.CodeAnalysis.Razor - 5.0.0-alpha1.19426.2
- Microsoft.AspNetCore.Razor.Language - 5.0.0-alpha1.19426.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 5.0.0-alpha1.19426.2

* Update dependencies from https://github.com/aspnet/Blazor build 20190826.2

- Microsoft.AspNetCore.Blazor.Mono - 5.0.0-alpha1.19426.2

* React to ref:suppressField breaking changes

* Stop using custom version of SDK in source build

* Remove SourceBuild workarounds

* Skip template tests
2019-08-28 00:21:22 +00:00
John Luo ed360e171a fix npm flake (#13106) 2019-08-14 07:48:34 -07:00
John Luo 43350b57b9
Revert "Revert "Improve components infrastructure (#12145)" (#12679)" (#12744)
* Revert "Revert "Improve components infrastructure (#12145)" (#12679)"

This reverts commit e2d57e2806. The improvement to components infrastructure is now reinstated with the following changes:

* Check in release JS artifacts and use them as a fallback when it's not possible to build npmproj.
* Dont' build nodejs in source build.
2019-08-05 15:17:55 -07:00
John Luo e2d57e2806
Revert "Improve components infrastructure (#12145)" (#12679)
* Revert "Improve components infrastructure (#12145)"

This reverts commit e149f9c0aa.

* Update JS file
2019-07-29 09:03:57 -07:00
John Luo e149f9c0aa
Improve components infrastructure (#12145)
* 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
2019-07-26 13:31:01 -07:00
Isaac Levin ea63490c0f fix failed tests 2019-07-12 14:11:42 -04:00
Ryan Nowak 291ad25f5d Rename .Components.Browser -> Components.Web
This is part of API review for Blazor. We're renaming these projects to
reflect the fact that they are for Blazor using web technologies (html
+css).

The old naming of .Browser of whether it meant client-side (in the
browser).
2019-07-01 15:36:35 -07:00
Nate McMaster 4fde84a7ad Replace KoreBuild with Arcade (#11122)
* 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
2019-06-19 10:03:38 -07:00
Nate McMaster 41ce223c1c
Replace Internal.AspNetCore.Sdk with Microsoft.DotNet.Arcade.Sdk (#10674)
* Update build.cmd to install .NET Core into $repoRoot/.dotnet instead of $repoRoot/.dotnet/x64
* Move restore sources from build/sources.props into eng/Versions.props (following arcade conventions)
* Remove usages of RuntimeFrameworkVersion in tests and build
* Update Blazor VSIX to use Arcade VSIX tools
* Rename Common.Tests to IIS.Common.TestLib and make it a test asset
* Remove custom versions props for ANCM installer code
* Remove duplicate references to xunit and remove usages of IsTestProject
* Remove duplicate references to Internal.AspNetCore.Analyzers
* Import Arcade.Sdk props and targets and remove custom versioning props
* Remove references to Internal.AspNetCore.Sdk
* Rename PackageLicenseType => PackageLicenseExpression
* Remove dependency on tasks in Internal.AspNetCore.Sdk, add ref to Internal.AspNetCore.BuildTasks as a temporary workaround
* Use Arcade's nuspec support
* Rename SignalR.Client.FunctionalTests to SignalR.Client.FunctionalTestApp
* Fixes for changes to property evaluation order
* Update BaseLineGenerator to netcoreapp3.0
* React to changes in evaluation order in RPM files and quirks in using <Exec> instead of <Run>
* Update Microsoft.Extensions.ApiDescription.Server to react to changes in Arcade packaging
* Workaround aspnet/AspNetCore#11009
2019-06-07 17:19:41 -07:00
Nate McMaster dc90e11c7a
Move obj and bin directories into repo root (#10063)
The Arcade SDK requires that the obj/ and bin/ folders be placed in the top-level artifacts/ folder of the repo. Although this PR does not complete our Arcade convergence, this is a step towards updating our repo to build with the Arcade SDK.

Changes:
* Set output path for build to artifacts/bin/$(ProjectName)/ 
* Set intermediate output path for build to artifacts/obj/$(ProjectName)/
* Cleanup .gitignore files (remove duplication between repo-root and tested gitignore files)
* Add code check which looks for project files that share the same name (could cause issues)
* Rename project files to have unique names (avoid race condition of build output)
* Update all locations which were hard-coded to expect bin/ and obj/ in the project directory
* Add overrides for tests which still assert test binaries exist in a given location relative to the source code
2019-05-15 13:44:55 -07:00
Nate McMaster 0b7458cc98
Update Helix queues and enable dependency-update automation for the Helix SDK (#9867) 2019-04-30 15:28:01 -07:00
Nate McMaster f53d3cb87e
Cleanup unnecessary files added during 2.2 => master merge (#9690) 2019-04-23 14:46:09 -07:00
Pranav K 56e2080ef7
Always fully build Components.Server.csproj (#9421)
* Always fully build Components.Server.csproj

* Use pre-built js files instead of building on the fly
* Use a sourcemap file for Debug. .gitignore sourcemap files
* Install nodejs on CodeCheck agents

Fixes https://github.com/aspnet/AspNetCore/issues/9402
2019-04-17 09:17:42 -07:00
John Luo 67e08728ca
Remove client from gRPC templates (#9078) 2019-04-07 22:42:38 -07:00
Pavel Krymets 3b95ef0b95
Ignore error output from git diff in code check (#7923) 2019-02-25 12:55:54 -08:00
John Luo 2fd9e40b58 Merge branch 'release/3.0-preview3' 2019-02-21 16:01:22 -08:00
John Luo 4c0b114b12
Add gRPC templates (#7561) 2019-02-21 15:12:13 -08:00
Pavel Krymets 9355c7c1a5
Add reference assemblies support (#7764) 2019-02-21 14:33:35 -08:00
Nate McMaster 85ae18c723
Make Visual Studio 2019 a prerequisite to building this repo (#7005)
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
2019-02-20 09:53:53 -08:00
Nate McMaster 394ef0ab93
Add missing entry to Version.Details.xml (#7643)
Changes:
* add entry for Mono.WebAssembly.Interop to Version.Details.xml
* Update code check to ensure all veriables in the 'automated' section are accounted for in Version.Details.xml
2019-02-15 17:00:06 -08:00
Nate McMaster 68f7e3ad7c
Fix discrepancy between Version.Details.xml and Versions.props (#7314)
* Fix discrepancy between Version.Details.xml and Versions.props
* Add step to CodeCheck to ensure Version.Details.xml and Versions.props match
2019-02-06 12:07:59 -08:00
Nate McMaster 6081fec894
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
2019-01-31 15:47:47 -08:00
John Luo 17b6ce8bd6 Merge branch 'release/2.2' 2019-01-15 18:49:54 -08:00
John Luo 90a9fa7aac Merge branch 'release/2.1' into release/2.2 2019-01-14 12:57:34 -08:00
Nate McMaster 3cd5054eb5
Merge branch 'release/2.2' 2019-01-11 07:20:00 -08:00
Nate McMaster 4c8db32b1c
Don't restore npmproj files in parallel (#6560)
NPM does not handle this well, so only run one NPM command at a time
2019-01-10 08:21:26 -08:00
Nate McMaster 22f3166fa6
Merge branch 'release/2.1' into release/2.2 2019-01-10 01:22:10 -08:00
Nate McMaster d3838620d6
Convert SignalR projects to build with ProjectReference (#6457)
Part of #4246 

Changes:
* Update source code layout to follow the new conventions for this repo
* Update project files to use `<Reference>`
* Update targets to build NPM packages
* Update BuildTools to support custom 'restore' and 'test' targets
2019-01-09 13:12:35 -08:00
Nate McMaster 436076fd55
Fix broken tests and VS solutions caused by source code reorganization and other build infra cleanup
Changes:
* Fix broken tests and VS solutions caused by source code reorganization
* Add a check to validate generated code and solutions on PRs
* backport some source code reorg to src/Identity
* Fix startvs.cmd if you've already run build.ps1
* Add PR checks for tests on Linux/macOS
* Skip broken Nginx tests
* Add conditions to skip IIS tests on non-Windows platforms
2019-01-04 10:00:26 -08:00