diff --git a/Directory.Build.props b/Directory.Build.props index 1c93448fcf..e9b788e01d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -22,6 +22,8 @@ $(NoWarn);NU5125 $(NoWarn);NU5105 + + $(WarningsNotAsErrors);CS1591 nugetaspnet@microsoft.com @@ -34,6 +36,8 @@ false true + netcoreapp$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion) + $(Product) $(PackageVersion) Shared Framework Shared Framework for hosting of Microsoft ASP.NET Core applications. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub ($(RepositoryUrl)). We happily accept issues and PRs. @@ -134,6 +138,7 @@ true true true + true true diff --git a/Directory.Build.targets b/Directory.Build.targets index d70d4f423f..5cbafbe257 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -10,6 +10,9 @@ $(ArtifactsShippingPackagesDir) $(ArtifactsNonShippingPackagesDir) + + + true @@ -47,7 +50,7 @@ - true + true true @@ -56,12 +59,12 @@ false $(IsImplementationProject) - true + true false $(MicrosoftNETCoreAppPackageVersion) - - true + + true @@ -74,8 +77,8 @@ - - + + @@ -90,9 +93,9 @@ - @@ -126,9 +129,9 @@ - diff --git a/build/repo.props b/build/repo.props index 12aec16bcb..b8a6ec4e6e 100644 --- a/build/repo.props +++ b/build/repo.props @@ -142,6 +142,7 @@ the entire pattern will silently fail to evaluate correctly. --> - - diff --git a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj index b38c807057..c6ea32e93d 100644 --- a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj +++ b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj @@ -7,8 +7,6 @@ false Roslyn analyzers for ASP.NET Core Components. true - - false diff --git a/src/Components/Browser/src/Microsoft.AspNetCore.Components.Browser.csproj b/src/Components/Browser/src/Microsoft.AspNetCore.Components.Browser.csproj index 7cb8410704..b203e931a2 100644 --- a/src/Components/Browser/src/Microsoft.AspNetCore.Components.Browser.csproj +++ b/src/Components/Browser/src/Microsoft.AspNetCore.Components.Browser.csproj @@ -3,6 +3,7 @@ netstandard2.0 Support for rendering ASP.NET Core components for browsers. + true true diff --git a/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj b/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj index 41799dd9fb..497f023f73 100644 --- a/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj +++ b/src/Components/Components/src/Microsoft.AspNetCore.Components.csproj @@ -3,6 +3,7 @@ netstandard2.0 Components feature for ASP.NET Core. + true true diff --git a/src/Components/Components/src/Rendering/HtmlRenderer.cs b/src/Components/Components/src/Rendering/HtmlRenderer.cs index 14a6e7af2e..ca9cf99bf9 100644 --- a/src/Components/Components/src/Rendering/HtmlRenderer.cs +++ b/src/Components/Components/src/Rendering/HtmlRenderer.cs @@ -26,6 +26,7 @@ namespace Microsoft.AspNetCore.Components.Rendering /// /// The to use to instantiate components. /// A that will HTML encode the given string. + /// public HtmlRenderer(IServiceProvider serviceProvider, Func htmlEncoder, IDispatcher dispatcher) : base(serviceProvider, dispatcher) { diff --git a/src/Components/Components/src/Rendering/IDispatcher.cs b/src/Components/Components/src/Rendering/IDispatcher.cs index bd138ac22c..0ea1b27bf6 100644 --- a/src/Components/Components/src/Rendering/IDispatcher.cs +++ b/src/Components/Components/src/Rendering/IDispatcher.cs @@ -35,7 +35,7 @@ namespace Microsoft.AspNetCore.Components.Rendering /// /// Invokes the given in the context of the associated . /// - /// The asynchronous function to execute. + /// The asynchronous function to execute. /// A that will be completed when the function has finished executing. Task InvokeAsync(Func> asyncFunction); } diff --git a/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj b/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj new file mode 100644 index 0000000000..970727ba34 --- /dev/null +++ b/src/Framework/ref/Microsoft.AspNetCore.App.Ref.csproj @@ -0,0 +1,98 @@ + + + + true + + + + + + + $(DefaultNetCoreTargetFramework) + true + + Provides a default set of APIs for building an ASP.NET Core application. Contains reference assemblies, documentation, and other design-time assets. + +This package is an internal implementation of the .NET Core SDK and is not meant to be used as a normal PackageReference. + aspnetcore;targeting-pack + true + + + TargetingPack + ref/$(TargetFramework)/ + + + false + + + none + false + false + false + false + false + + + false + + + + + + + + + + + $(BuildDependsOn); + _ResolveTargetingPackContent; + _BatchCopyToOutputDirectory; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_PackageFiles Include="@(RefPackContent)" PackagePath="$(RefAssemblyPackagePath)" /> + + + + + + + + + + diff --git a/src/Framework/src/Microsoft.AspNetCore.App.shfxproj b/src/Framework/src/Microsoft.AspNetCore.App.shfxproj index 84ccd46700..02988ace39 100644 --- a/src/Framework/src/Microsoft.AspNetCore.App.shfxproj +++ b/src/Framework/src/Microsoft.AspNetCore.App.shfxproj @@ -8,7 +8,7 @@ $(TargetRuntimeIdentifier) - netcoreapp$(AspNetCoreMajorVersion).$(AspNetCoreMinorVersion) + $(DefaultNetCoreTargetFramework) Microsoft.NETCore.App $(MicrosoftNETCoreAppPackageVersion) diff --git a/src/Mvc/src/Microsoft.AspNetCore.Mvc.Analyzers/Microsoft.AspNetCore.Mvc.Analyzers.csproj b/src/Mvc/src/Microsoft.AspNetCore.Mvc.Analyzers/Microsoft.AspNetCore.Mvc.Analyzers.csproj index 4d9d6e4ea2..4426de887f 100644 --- a/src/Mvc/src/Microsoft.AspNetCore.Mvc.Analyzers/Microsoft.AspNetCore.Mvc.Analyzers.csproj +++ b/src/Mvc/src/Microsoft.AspNetCore.Mvc.Analyzers/Microsoft.AspNetCore.Mvc.Analyzers.csproj @@ -18,9 +18,6 @@ - - true - id=$(PackageId); version=$(PackageVersion); diff --git a/src/Mvc/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj b/src/Mvc/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj index f874b02d1e..0e279291fd 100644 --- a/src/Mvc/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj +++ b/src/Mvc/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/Microsoft.AspNetCore.Mvc.Api.Analyzers.csproj @@ -23,9 +23,6 @@ - - true - id=$(PackageId); version=$(PackageVersion); diff --git a/src/Mvc/src/Microsoft.AspNetCore.Mvc/Microsoft.AspNetCore.Mvc.csproj b/src/Mvc/src/Microsoft.AspNetCore.Mvc/Microsoft.AspNetCore.Mvc.csproj index 8dd6d2b434..74de1de6ea 100644 --- a/src/Mvc/src/Microsoft.AspNetCore.Mvc/Microsoft.AspNetCore.Mvc.csproj +++ b/src/Mvc/src/Microsoft.AspNetCore.Mvc/Microsoft.AspNetCore.Mvc.csproj @@ -9,7 +9,6 @@ - diff --git a/src/Mvc/test/Mvc.Analyzers.Test/Mvc.Analyzers.Test.csproj b/src/Mvc/test/Mvc.Analyzers.Test/Mvc.Analyzers.Test.csproj index 4f0353cd95..39effb2f18 100644 --- a/src/Mvc/test/Mvc.Analyzers.Test/Mvc.Analyzers.Test.csproj +++ b/src/Mvc/test/Mvc.Analyzers.Test/Mvc.Analyzers.Test.csproj @@ -13,9 +13,8 @@ + - - diff --git a/src/Mvc/test/Mvc.Api.Analyzers.Test/Mvc.Api.Analyzers.Test.csproj b/src/Mvc/test/Mvc.Api.Analyzers.Test/Mvc.Api.Analyzers.Test.csproj index e64d31125d..711bd72f74 100644 --- a/src/Mvc/test/Mvc.Api.Analyzers.Test/Mvc.Api.Analyzers.Test.csproj +++ b/src/Mvc/test/Mvc.Api.Analyzers.Test/Mvc.Api.Analyzers.Test.csproj @@ -13,9 +13,8 @@ + - - diff --git a/src/Razor/Razor.Runtime/src/Microsoft.AspNetCore.Razor.Runtime.csproj b/src/Razor/Razor.Runtime/src/Microsoft.AspNetCore.Razor.Runtime.csproj index 9839c62c97..ff40bb76ee 100644 --- a/src/Razor/Razor.Runtime/src/Microsoft.AspNetCore.Razor.Runtime.csproj +++ b/src/Razor/Razor.Runtime/src/Microsoft.AspNetCore.Razor.Runtime.csproj @@ -3,6 +3,7 @@ Runtime infrastructure for rendering Razor pages and tag helpers. netcoreapp3.0 + true $(PackageTags);taghelper;taghelpers diff --git a/src/Razor/Razor/src/Microsoft.AspNetCore.Razor.csproj b/src/Razor/Razor/src/Microsoft.AspNetCore.Razor.csproj index 0a80d84969..55907e7ecf 100644 --- a/src/Razor/Razor/src/Microsoft.AspNetCore.Razor.csproj +++ b/src/Razor/Razor/src/Microsoft.AspNetCore.Razor.csproj @@ -9,6 +9,7 @@ Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeNameAttribute Microsoft.AspNetCore.Razor.TagHelpers.HtmlTargetElementAttribute Microsoft.AspNetCore.Razor.TagHelpers.ITagHelper netcoreapp3.0 + true $(PackageTags);taghelper;taghelpers