Browse Source

[Blazor][Desktop] Mark packages as shipping (#31035)

* Make packages shipping
* Update RepoTasks to msbuild 16.9
* Update global.json
* Update Nuget
Javier Calvarro Nelson 5 years ago
parent
commit
30e468e1b5

+ 4 - 4
eng/tools/RepoTasks/RepoTasks.csproj

@@ -15,14 +15,14 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="NuGet.Packaging" Version="5.6.0" />
+    <PackageReference Include="NuGet.Packaging" Version="5.8.0" />
     <PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
   </ItemGroup>
 
   <ItemGroup Condition="'$(TargetFramework)' == '$(DefaultNetCoreTargetFramework)'">
-    <PackageReference Include="Microsoft.Build.Framework" Version="16.3.0" />
-    <PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.3.0" />
-    <PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.3.0" />
+    <PackageReference Include="Microsoft.Build.Framework" Version="16.9.0" />
+    <PackageReference Include="Microsoft.Build.Tasks.Core" Version="16.9.0" />
+    <PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.9.0" />
   </ItemGroup>
 
   <ItemGroup Condition="'$(TargetFramework)' == 'net472'">

+ 1 - 1
global.json

@@ -19,7 +19,7 @@
     "Git": "2.22.0",
     "jdk": "11.0.3",
     "vs": {
-      "version": "16.5",
+      "version": "16.8",
       "components": [
         "Microsoft.VisualStudio.Component.VC.ATL",
         "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",

+ 1 - 3
src/Components/WebView/Platforms/WebView2/src/Microsoft.AspNetCore.Components.WebView.WebView2.csproj

@@ -6,9 +6,7 @@
       https://github.com/MicrosoftEdge/WebView2Feedback/issues/710 -->
     <TargetFrameworks>$(DefaultNetCoreTargetFramework)-windows</TargetFrameworks>
     <Description>WebView2 wrappers for BlazorWebView components on Windows.</Description>
-    <IsShippingPackage>false</IsShippingPackage>
-    <!-- TODO: REMOVE -->
-    <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
+    <IsShippingPackage>true</IsShippingPackage>
   </PropertyGroup>
 
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/WebView2/src/PublicAPI.Shipped.txt

@@ -0,0 +1 @@
+

+ 10 - 0
src/Components/WebView/Platforms/WebView2/src/PublicAPI.Unshipped.txt

@@ -0,0 +1,10 @@
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.AcceleratorKeyPressed -> System.EventHandler<Microsoft.Web.WebView2.Core.CoreWebView2AcceleratorKeyPressedEventArgs>
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.CoreWebView2.get -> Microsoft.Web.WebView2.Core.CoreWebView2
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.EnsureCoreWebView2Async(Microsoft.Web.WebView2.Core.CoreWebView2Environment environment = null) -> System.Threading.Tasks.Task
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.get -> System.Uri
+Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper.Source.set -> void
+Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager
+Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.WebView2WebViewManager(Microsoft.AspNetCore.Components.WebView.WebView2.IWebView2Wrapper webview, System.IServiceProvider services, Microsoft.AspNetCore.Components.Dispatcher dispatcher, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string hostPageRelativePath) -> void
+override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.NavigateCore(System.Uri absoluteUri) -> void
+override Microsoft.AspNetCore.Components.WebView.WebView2.WebView2WebViewManager.SendMessage(string message) -> void

+ 1 - 3
src/Components/WebView/Platforms/WindowsForms/src/Microsoft.AspNetCore.Components.WebView.WindowsForms.csproj

@@ -3,10 +3,8 @@
   <PropertyGroup>
     <TargetFramework>$(DefaultNetCoreTargetFramework)-windows</TargetFramework>
     <Description>Build Windows Forms applications with Blazor and WebView2.</Description>
-    <IsShippingPackage>false</IsShippingPackage>
     <UseWindowsForms>true</UseWindowsForms>
-    <!-- TODO: REMOVE -->
-    <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
+    <IsShippingPackage>true</IsShippingPackage>
   </PropertyGroup>
 
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/WindowsForms/src/PublicAPI.Shipped.txt

@@ -0,0 +1 @@
+

+ 16 - 0
src/Components/WebView/Platforms/WindowsForms/src/PublicAPI.Unshipped.txt

@@ -0,0 +1,16 @@
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.BlazorWebView() -> void
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.get -> string
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.HostPage.set -> void
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent>
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.get -> System.IServiceProvider
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.Services.set -> void
+Microsoft.AspNetCore.Components.WebView.WindowsForms.BlazorWebView.WebView.get -> Microsoft.Web.WebView2.WinForms.WebView2
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.ComponentType.get -> System.Type
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.RootComponent(string selector, System.Type componentType, System.Collections.Generic.IDictionary<string, object> parameters) -> void
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent.Selector.get -> string
+Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions
+static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Add<TComponent>(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector, System.Collections.Generic.IDictionary<string, object> parameters = null) -> void
+static Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponentCollectionExtensions.Remove(this System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.WindowsForms.RootComponent> components, string selector) -> void

+ 1 - 3
src/Components/WebView/Platforms/Wpf/src/Microsoft.AspNetCore.Components.WebView.Wpf.csproj

@@ -3,10 +3,8 @@
   <PropertyGroup>
     <TargetFramework>$(DefaultNetCoreTargetFramework)-windows</TargetFramework>
     <Description>Build WPF applications with Blazor and WebView2.</Description>
-    <IsShippingPackage>false</IsShippingPackage>
     <UseWPF>true</UseWPF>
-    <!-- TODO: REMOVE -->
-    <AddPublicApiAnalyzers>false</AddPublicApiAnalyzers>
+    <IsShippingPackage>true</IsShippingPackage>
   </PropertyGroup>
 
   <ItemGroup>

+ 1 - 0
src/Components/WebView/Platforms/Wpf/src/PublicAPI.Shipped.txt

@@ -0,0 +1 @@
+

+ 20 - 0
src/Components/WebView/Platforms/Wpf/src/PublicAPI.Unshipped.txt

@@ -0,0 +1,20 @@
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.BlazorWebView() -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Dispose() -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.get -> string
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPage.set -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponents.get -> System.Collections.ObjectModel.ObservableCollection<Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent>
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.get -> System.IServiceProvider
+Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.Services.set -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.get -> System.Type
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.ComponentType.set -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.get -> System.Collections.Generic.IDictionary<string, object>
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Parameters.set -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.RootComponent() -> void
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.get -> string
+Microsoft.AspNetCore.Components.WebView.Wpf.RootComponent.Selector.set -> void
+override Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.OnApplyTemplate() -> void
+static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.HostPageProperty -> System.Windows.DependencyProperty
+static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.RootComponentsProperty -> System.Windows.DependencyProperty
+static readonly Microsoft.AspNetCore.Components.WebView.Wpf.BlazorWebView.ServicesProperty -> System.Windows.DependencyProperty