Further centralize shared Fx and TFM transition workarounds (#27473)
* 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:Safia Abdalla <safia@microsoft.com>
显示
- Directory.Build.props 2 个添加, 3 个删除Directory.Build.props
- Directory.Build.targets 10 个添加, 23 个删除Directory.Build.targets
- docs/BuildErrors.md 75 个添加, 12 个删除docs/BuildErrors.md
- docs/BuildFromSource.md 65 个添加, 104 个删除docs/BuildFromSource.md
- eng/Workarounds.targets 0 个添加, 19 个删除eng/Workarounds.targets
- eng/tools/GenerateFiles/Directory.Build.props.in 0 个添加, 1 个删除eng/tools/GenerateFiles/Directory.Build.props.in
- eng/tools/GenerateFiles/Directory.Build.targets.in 67 个添加, 18 个删除eng/tools/GenerateFiles/Directory.Build.targets.in
- eng/tools/GenerateFiles/GenerateFiles.csproj 2 个添加, 1 个删除eng/tools/GenerateFiles/GenerateFiles.csproj
- src/Components/WebAssembly/Sdk/integrationtests/Microsoft.NET.Sdk.BlazorWebAssembly.IntegrationTests.csproj 4 个添加, 4 个删除...crosoft.NET.Sdk.BlazorWebAssembly.IntegrationTests.csproj
- src/Components/WebAssembly/Sdk/testassets/Directory.Build.props 0 个添加, 7 个删除...mponents/WebAssembly/Sdk/testassets/Directory.Build.props
- src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj 10 个添加, 7 个删除...k/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj
- src/Framework/Directory.Build.props 2 个添加, 1 个删除src/Framework/Directory.Build.props
- src/ProjectTemplates/BlazorTemplates.Tests/BlazorTemplates.Tests.csproj 1 个添加, 100 个删除...plates/BlazorTemplates.Tests/BlazorTemplates.Tests.csproj
- src/ProjectTemplates/BlazorTemplates.Tests/Directory.Build.targets 0 个添加, 4 个删除...ctTemplates/BlazorTemplates.Tests/Directory.Build.targets
- src/ProjectTemplates/BlazorTemplates.Tests/Infrastructure/Directory.Build.props.in 0 个添加, 8 个删除...orTemplates.Tests/Infrastructure/Directory.Build.props.in
- src/ProjectTemplates/BlazorTemplates.Tests/Infrastructure/Directory.Build.targets.in 0 个添加, 3 个删除...Templates.Tests/Infrastructure/Directory.Build.targets.in
- src/ProjectTemplates/BlazorTemplates.Tests/Infrastructure/GenerateTestProps.targets 0 个添加, 30 个删除...rTemplates.Tests/Infrastructure/GenerateTestProps.targets
- src/ProjectTemplates/BlazorTemplates.Tests/Infrastructure/TemplateTests.props.in 0 个添加, 58 个删除...azorTemplates.Tests/Infrastructure/TemplateTests.props.in
- src/ProjectTemplates/TestInfrastructure/Directory.Build.props.in 12 个添加, 0 个删除...jectTemplates/TestInfrastructure/Directory.Build.props.in
- src/ProjectTemplates/TestInfrastructure/Directory.Build.targets.in 22 个添加, 0 个删除...ctTemplates/TestInfrastructure/Directory.Build.targets.in
加载中
想要评论请 注册 或 登录