aggiornato metodo per la visualizzazione della preview del PDF
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
</configSections>
|
||||
<entityFramework>
|
||||
<!--<defaultConnectionFactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.EntityFramework" />-->
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
|
||||
<providers>
|
||||
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.EntityFramework, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
|
||||
</provider>
|
||||
</providers>
|
||||
|
||||
</entityFramework>
|
||||
<connectionStrings>
|
||||
<add name="DefaultConnection" connectionString="server=localhost;port=3306;User Id=EgtUser;password=viacremasca;Persist Security Info=True;database=EgtBwDb;SslMode=none" providerName="MySql.Data.MySqlClient" />
|
||||
@@ -49,6 +46,10 @@
|
||||
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.IO.Pipelines" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<system.data>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.props" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@@ -138,12 +137,6 @@
|
||||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BouncyCastle.Crypto, Version=1.9.0.0, Culture=neutral, PublicKeyToken=0e99375e54769942, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Portable.BouncyCastle.1.9.0\lib\net40\BouncyCastle.Crypto.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="DotNetZip, Version=1.16.0.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\DotNetZip.1.16.0\lib\net40\DotNetZip.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EgtUILib, Version=2.4.3.1, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\ExtLibs\EgtUILib.dll</HintPath>
|
||||
@@ -152,55 +145,7 @@
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\ExtLibs\EgtWPFLib5.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\EntityFramework.6.4.4\lib\net45\EntityFramework.SqlServer.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Google.Protobuf, Version=3.21.9.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Google.Protobuf.3.21.9\lib\net45\Google.Protobuf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Compression.LZ4, Version=1.3.5.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Compression.LZ4.1.3.5\lib\net462\K4os.Compression.LZ4.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Compression.LZ4.Streams, Version=1.3.5.0, Culture=neutral, PublicKeyToken=2186fa9121ef231d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Compression.LZ4.Streams.1.3.5\lib\net462\K4os.Compression.LZ4.Streams.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="K4os.Hash.xxHash, Version=1.0.8.0, Culture=neutral, PublicKeyToken=32cd54395057cec3, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\K4os.Hash.xxHash.1.0.8\lib\net462\K4os.Hash.xxHash.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="MigraDoc.DocumentObjectModel-wpf, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp-MigraDoc-wpf.1.50.5147\lib\net30\MigraDoc.DocumentObjectModel-wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MigraDoc.Rendering-wpf, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp-MigraDoc-wpf.1.50.5147\lib\net30\MigraDoc.Rendering-wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MigraDoc.RtfRendering-wpf, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp-MigraDoc-wpf.1.50.5147\lib\net30\MigraDoc.RtfRendering-wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.8.0.21\lib\net452\MySql.Data.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data.EntityFramework, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.EntityFramework.8.0.21\lib\net452\MySql.Data.EntityFramework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\NLog.5.0.1\lib\net46\NLog.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp-wpf, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp-MigraDoc-wpf.1.50.5147\lib\net30\PdfSharp-wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PdfSharp.Charting-wpf, Version=1.50.5147.0, Culture=neutral, PublicKeyToken=f94615aa0424f9eb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\PDFsharp-MigraDoc-wpf.1.50.5147\lib\net30\PdfSharp.Charting-wpf.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Renci.SshNet, Version=2016.1.0.0, Culture=neutral, PublicKeyToken=1cee9f8bde3db106, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\SSH.NET.2016.1.0\lib\net40\Renci.SshNet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.ComponentModel" />
|
||||
<Reference Include="System.ComponentModel.DataAnnotations" />
|
||||
<Reference Include="System.Configuration" />
|
||||
@@ -209,24 +154,9 @@
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Drawing.Design" />
|
||||
<Reference Include="System.IO.Compression" />
|
||||
<Reference Include="System.IO.Pipelines, Version=5.0.0.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.IO.Pipelines.5.0.2\lib\net461\System.IO.Pipelines.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Management" />
|
||||
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Numerics" />
|
||||
<Reference Include="System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Security" />
|
||||
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System.Transactions" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
@@ -237,16 +167,10 @@
|
||||
<Reference Include="System.Xaml">
|
||||
<RequiredTargetFramework>4.0</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="Ubiety.Dns.Core, Version=2.2.1.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.8.0.21\lib\net452\Ubiety.Dns.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
<Reference Include="Zstandard.Net, Version=1.1.7.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.8.0.21\lib\net452\Zstandard.Net.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="Application.xaml">
|
||||
@@ -328,6 +252,9 @@
|
||||
</Compile>
|
||||
<Compile Include="NestingRunningWnd\NestingRunningWndVM.vb" />
|
||||
<Compile Include="NewOpenProjectFileDialog\NewOpenProjectFileDialogVM.vb" />
|
||||
<Compile Include="PdfViewer\PdfViewer.xaml.vb">
|
||||
<DependentUpon>PdfViewer.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ProjectTypeWnd\ProjectTypeWndV.xaml.vb">
|
||||
<DependentUpon>ProjectTypeWndV.xaml</DependentUpon>
|
||||
</Compile>
|
||||
@@ -540,6 +467,10 @@
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
<Page Include="PdfViewer\PdfViewer.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="ProjectTypeWnd\ProjectTypeWndV.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
@@ -786,7 +717,6 @@
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\EgtBEAMWALL.ico" />
|
||||
@@ -1020,6 +950,41 @@
|
||||
<ItemGroup>
|
||||
<Resource Include="Resources\OpenProjectFileDialog\Archived.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="BouncyCastle">
|
||||
<Version>1.8.5</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="DotNetZip">
|
||||
<Version>1.16.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="EntityFramework">
|
||||
<Version>6.4.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Google.Protobuf">
|
||||
<Version>3.21.9</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="K4os.Compression.LZ4.Streams">
|
||||
<Version>1.3.5</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Windows.SDK.Contracts">
|
||||
<Version>10.0.22621.2428</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="MySql.Data.EntityFramework">
|
||||
<Version>8.0.21</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="NLog">
|
||||
<Version>5.0.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="PDFsharp-MigraDoc-wpf">
|
||||
<Version>1.50.5147</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Portable.BouncyCastle">
|
||||
<Version>1.9.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.IO.Pipelines">
|
||||
<Version>6.0.0</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR32.exe
|
||||
@@ -1027,12 +992,4 @@ IF "$(PlatformName)"=="x86" IF "$(ConfigurationName)" == "Debug" copy $(TargetPa
|
||||
IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Release" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerR64.exe
|
||||
IF "$(PlatformName)"=="x64" IF "$(ConfigurationName)" == "Debug" copy $(TargetPath) c:\EgtProg\EgtBEAMWALL\EgtBEAMWALL.ViewerOptimizerD64.exe</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.props'))" />
|
||||
<Error Condition="!Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\EntityFramework.6.4.4\build\EntityFramework.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\EntityFramework.6.4.4\build\EntityFramework.targets" Condition="Exists('..\packages\EntityFramework.6.4.4\build\EntityFramework.targets')" />
|
||||
</Project>
|
||||
@@ -0,0 +1,102 @@
|
||||
Imports System.Threading.Tasks
|
||||
Imports EgtWPFLib5
|
||||
Imports Windows.Storage
|
||||
Imports System.IO
|
||||
Imports Windows.Data.Pdf
|
||||
Imports Windows.Storage.Streams
|
||||
|
||||
Public Class PDFViewerVM
|
||||
Inherits VMBase
|
||||
|
||||
#Region "FIELDS & PROPERTIES"
|
||||
|
||||
Private m_sPdfPath As String
|
||||
Public Property PdfPath As String
|
||||
Get
|
||||
Return m_sPdfPath
|
||||
End Get
|
||||
Set(value As String)
|
||||
m_sPdfPath = value
|
||||
If Not String.IsNullOrEmpty(m_sPdfPath) Then
|
||||
Dim path = System.IO.Path.GetFullPath(m_sPdfPath)
|
||||
StorageFile.GetFileFromPathAsync(path).AsTask().ContinueWith(Function(t) PdfDocument.LoadFromFileAsync(t.Result).AsTask()).Unwrap().ContinueWith(Function(t2) PdfToImages(t2.Result), TaskScheduler.FromCurrentSynchronizationContext())
|
||||
End If
|
||||
NotifyPropertyChanged(NameOf(PdfPath))
|
||||
End Set
|
||||
End Property
|
||||
|
||||
Private Shared m_Items As List(Of Image)
|
||||
Public Shared ReadOnly Property Items As List(Of Image)
|
||||
Get
|
||||
Return m_Items
|
||||
End Get
|
||||
End Property
|
||||
|
||||
'Public Shared ReadOnly PdfPathProperty As DependencyProperty = DependencyProperty.Register("PdfPath",
|
||||
' GetType(String),
|
||||
' GetType(PDFViewerVM))
|
||||
|
||||
'Private Shared Sub OnPdfPathChanged(d As DependencyObject, e As DependencyPropertyChangedEventArgs)
|
||||
' 'Dim pdfDrawer As PdfViewer = CType(d, PdfViewer)
|
||||
|
||||
' If Not String.IsNullOrEmpty(PdfPath) Then
|
||||
' Dim path = System.IO.Path.GetFullPath(PdfPath)
|
||||
' StorageFile.GetFileFromPathAsync(path).AsTask().ContinueWith(Function(t) PdfDocument.LoadFromFileAsync(t.Result).AsTask()).Unwrap().ContinueWith(Function(t2) PdfToImages(pdfDrawer, t2.Result), TaskScheduler.FromCurrentSynchronizationContext())
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
#End Region ' Field & Properties
|
||||
|
||||
Sub New()
|
||||
End Sub
|
||||
|
||||
#Region "METHODS"
|
||||
|
||||
''' <summary>
|
||||
''' Funzione che trasforma le pagine del pdf in immagine
|
||||
''' </summary>
|
||||
''' <param name="pdfViewer">PDF da trasformare</param>
|
||||
''' <param name="pdfDoc">Singola pagina del PDf</param>
|
||||
''' <returns></returns>
|
||||
Private Shared Async Function PdfToImages(pdfDoc As PdfDocument) As Task
|
||||
'Dim items As ItemCollection = pdfViewer.PagesContainer.Items
|
||||
Items.Clear()
|
||||
|
||||
If IsNothing(pdfDoc) Then Return
|
||||
|
||||
For i As Integer = 0 To pdfDoc.PageCount - 1
|
||||
Using page As PdfPage = pdfDoc.GetPage(i)
|
||||
Dim bitmap As BitmapImage = Await PageToBitmapAsync(page)
|
||||
Dim image As New Image With {
|
||||
.Source = bitmap,
|
||||
.HorizontalAlignment = HorizontalAlignment.Center,
|
||||
.Width = bitmap.Width,
|
||||
.Height = bitmap.Height
|
||||
}
|
||||
Items.Add(image)
|
||||
End Using
|
||||
Next
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Funzione che trasforma la singola pagina del PDF in bitmap
|
||||
''' </summary>
|
||||
''' <param name="page">Singola pagina del PDF che verrà trasformata in bitmap</param>
|
||||
''' <returns></returns>
|
||||
Private Shared Async Function PageToBitmapAsync(page As PdfPage) As Task(Of BitmapImage)
|
||||
Dim image As New BitmapImage()
|
||||
|
||||
Using stream = New InMemoryRandomAccessStream()
|
||||
Await page.RenderToStreamAsync(stream)
|
||||
image.BeginInit()
|
||||
image.CacheOption = BitmapCacheOption.OnLoad
|
||||
image.StreamSource = stream.AsStream()
|
||||
image.EndInit()
|
||||
End Using
|
||||
|
||||
Return image
|
||||
End Function
|
||||
|
||||
#End Region ' Methods
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,9 @@
|
||||
<UserControl x:Class="PdfViewer"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
<ScrollViewer PanningMode="Both"
|
||||
Background="DarkGray">
|
||||
<!--<ItemsControl ItemsSource="{Binding Items}"/>-->
|
||||
<ItemsControl x:Name="PagesContainer"/>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,136 @@
|
||||
Imports System.IO
|
||||
Imports System.Threading.Tasks
|
||||
Imports Windows.Data.Pdf
|
||||
Imports Windows.Storage
|
||||
Imports Windows.Storage.Streams
|
||||
|
||||
Partial Public Class PdfViewer
|
||||
Inherits UserControl
|
||||
|
||||
'Public Property PdfPath As String
|
||||
' Get
|
||||
' Return CStr(GetValue(PdfPathProperty))
|
||||
' End Get
|
||||
' Set(value As String)
|
||||
' SetValue(PdfPathProperty, value)
|
||||
' End Set
|
||||
'End Property
|
||||
|
||||
'Private Shared m_Items As New List(Of Image)
|
||||
'Public Shared ReadOnly Property Items As List(Of Image)
|
||||
' Get
|
||||
' Return m_Items
|
||||
' End Get
|
||||
'End Property
|
||||
|
||||
Public Property PdfPath As String
|
||||
Get
|
||||
Return CStr(GetValue(PdfPathProperty))
|
||||
End Get
|
||||
Set(value As String)
|
||||
SetValue(PdfPathProperty, value)
|
||||
End Set
|
||||
End Property
|
||||
|
||||
'Public Shared ReadOnly PdfPathProperty As DependencyProperty = DependencyProperty.Register("PdfPath",
|
||||
' GetType(String),
|
||||
' GetType(PdfViewer),
|
||||
' New FrameworkPropertyMetadata(String.Empty, New PropertyChangedCallback(AddressOf OnPdfPathChanged)))
|
||||
|
||||
Public Shared ReadOnly PdfPathProperty As DependencyProperty = DependencyProperty.Register("PdfPath",
|
||||
GetType(String),
|
||||
GetType(PdfViewer),
|
||||
New PropertyMetadata(Nothing, propertyChangedCallback:=AddressOf OnPdfPathChanged))
|
||||
|
||||
Private Shared Sub OnPdfPathChanged(d As DependencyObject, e As DependencyPropertyChangedEventArgs)
|
||||
Dim pdfDrawer As PdfViewer = CType(d, PdfViewer)
|
||||
|
||||
If Not String.IsNullOrEmpty(pdfDrawer.PdfPath) Then
|
||||
Dim path = System.IO.Path.GetFullPath(pdfDrawer.PdfPath)
|
||||
StorageFile.GetFileFromPathAsync(path).AsTask().ContinueWith(Function(t) PdfDocument.LoadFromFileAsync(t.Result).AsTask()).Unwrap().ContinueWith(Function(t2) PdfToImages(pdfDrawer, t2.Result), TaskScheduler.FromCurrentSynchronizationContext())
|
||||
End If
|
||||
End Sub
|
||||
|
||||
'Private Shared Sub OnPdfPathChanged(d As DependencyObject, e As DependencyPropertyChangedEventArgs)
|
||||
' Dim pdfDrawer As PdfViewer = CType(d, PdfViewer)
|
||||
' If Not String.IsNullOrEmpty(pdfDrawer.PdfPath) Then
|
||||
' Dim path = System.IO.Path.GetFullPath(pdfDrawer.PdfPath)
|
||||
' StorageFile.GetFileFromPathAsync(path).AsTask().ContinueWith(Function(t) PdfDocument.LoadFromFileAsync(t.Result).AsTask()).Unwrap().ContinueWith(Function(t2) PdfToImages(t2.Result), TaskScheduler.FromCurrentSynchronizationContext())
|
||||
' End If
|
||||
'End Sub
|
||||
|
||||
Sub New()
|
||||
InitializeComponent()
|
||||
End Sub
|
||||
|
||||
'''' <summary>
|
||||
'''' Funzione che trasforma le pagine del pdf in immagine
|
||||
'''' </summary>
|
||||
'''' <param name="pdfDoc">Singola pagina del PDf</param>
|
||||
'''' <returns></returns>
|
||||
'Private Shared Async Function PdfToImages(pdfDoc As PdfDocument) As Task
|
||||
' 'Dim items As ItemCollection = pdfViewer.PagesContainer.Items
|
||||
' Items.Clear()
|
||||
|
||||
' If IsNothing(pdfDoc) Then Return
|
||||
|
||||
' For i As Integer = 0 To pdfDoc.PageCount - 1
|
||||
' Using page As PdfPage = pdfDoc.GetPage(i)
|
||||
' Dim bitmap As BitmapImage = Await PageToBitmapAsync(page)
|
||||
' Dim image As New Image With {
|
||||
' .Source = bitmap,
|
||||
' .HorizontalAlignment = HorizontalAlignment.Center,
|
||||
' .Width = bitmap.Width,
|
||||
' .Height = bitmap.Height
|
||||
' }
|
||||
' Items.Add(image)
|
||||
' End Using
|
||||
' Next
|
||||
'End Function
|
||||
|
||||
''' <summary>
|
||||
''' Funzione che trasforma le pagine del pdf in immagine
|
||||
''' </summary>
|
||||
''' <param name="pdfViewer">PDF da trasformare</param>
|
||||
''' <param name="pdfDoc">Singola pagina del PDf</param>
|
||||
''' <returns></returns>
|
||||
Private Shared Async Function PdfToImages(pdfViewer As PdfViewer, pdfDoc As PdfDocument) As Task
|
||||
Dim items As ItemCollection = pdfViewer.PagesContainer.Items
|
||||
items.Clear()
|
||||
|
||||
If IsNothing(pdfDoc) Then Return
|
||||
|
||||
For i As Integer = 0 To pdfDoc.PageCount - 1
|
||||
Using page As PdfPage = pdfDoc.GetPage(i)
|
||||
Dim bitmap As BitmapImage = Await PageToBitmapAsync(page)
|
||||
Dim image As New Image With {
|
||||
.Source = bitmap,
|
||||
.HorizontalAlignment = HorizontalAlignment.Center,
|
||||
.Width = bitmap.Width,
|
||||
.Height = bitmap.Height,
|
||||
.Margin = New Thickness(5, 20, 5, 20)
|
||||
}
|
||||
items.Add(image)
|
||||
End Using
|
||||
Next
|
||||
End Function
|
||||
|
||||
''' <summary>
|
||||
''' Funzione che trasforma la singola pagina del PDF in bitmap
|
||||
''' </summary>
|
||||
''' <param name="page">Singola pagina del PDF che verrà trasformata in bitmap</param>
|
||||
''' <returns></returns>
|
||||
Private Shared Async Function PageToBitmapAsync(page As PdfPage) As Task(Of BitmapImage)
|
||||
Dim image As New BitmapImage()
|
||||
|
||||
Using stream = New InMemoryRandomAccessStream()
|
||||
Await page.RenderToStreamAsync(stream)
|
||||
image.BeginInit()
|
||||
image.CacheOption = BitmapCacheOption.OnLoad
|
||||
image.StreamSource = stream.AsStream()
|
||||
image.EndInit()
|
||||
End Using
|
||||
|
||||
Return image
|
||||
End Function
|
||||
End Class
|
||||
@@ -28,11 +28,11 @@
|
||||
Style="{StaticResource PDFPanel_Button}">
|
||||
<Image Source="/Resources/PDFEditor/PrintPDF.png" Stretch="Uniform"/>
|
||||
</Button>
|
||||
<Button ToolTip="Close PDF Viewer"
|
||||
<!--<Button ToolTip="Close PDF Viewer"
|
||||
Command="{Binding ClosePreview_Command}"
|
||||
Style="{StaticResource Close_Button}">
|
||||
<Image Source="/Resources/PDFEditor/Delete.png" Stretch="Uniform"/>
|
||||
</Button>
|
||||
</Button>-->
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
<ScrollViewer Grid.Row="1"
|
||||
@@ -131,7 +131,8 @@
|
||||
Grid.Column="1"
|
||||
Grid.RowSpan="2"
|
||||
Style="{StaticResource GroupBox_PDFPreview}">
|
||||
<WebBrowser EgtBEAMWALL:WebBrowserUtility.BindableSource="{Binding WebAddress}"/>
|
||||
<!--<WebBrowser EgtBEAMWALL:WebBrowserUtility.BindableSource="{Binding WebAddress}"/>-->
|
||||
<EgtBEAMWALL:PdfViewer PdfPath="{Binding WebAddress, Mode=TwoWay}"/>
|
||||
</GroupBox>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -50,7 +50,7 @@ Public Class PDFEditorVM
|
||||
m_ExpanderList.Add(New ExpanderPDF(ListTypes.RAWPART)) ' RawPart List
|
||||
m_ExpanderList.Add(New ExpanderPDF(ListTypes.PART_TOT)) ' Part Totals
|
||||
m_ExpanderList.Add(New ExpanderPDF(ListTypes.PART)) ' Part List
|
||||
m_WebAddress = "about:blank" ' Pagina vuota
|
||||
m_WebAddress = "" ' Pagina vuota
|
||||
Map.SetRefPDFEditorVM(Me)
|
||||
End Sub
|
||||
|
||||
@@ -74,7 +74,7 @@ Public Class PDFEditorVM
|
||||
''' </summary>
|
||||
Public Sub CreatePreviewVis()
|
||||
Map.refStatisticsVM.CreatePrintPDF(PDFPage.VIEW, True)
|
||||
m_WebAddress = Map.refMainWindowVM.MainWindowM.sTempDir & "\Statistics - Visualization.pdf"
|
||||
WebAddress = Map.refMainWindowVM.MainWindowM.sTempDir & "\Statistics - Visualization.pdf"
|
||||
NotifyPropertyChanged(NameOf(WebAddress))
|
||||
End Sub
|
||||
|
||||
@@ -96,32 +96,32 @@ Public Class PDFEditorVM
|
||||
''' </summary>
|
||||
Public Sub CreatePreviewOtt()
|
||||
Map.refStatisticsVM.CreatePrintPDF(PDFPage.MACHING, True)
|
||||
m_WebAddress = Map.refMainWindowVM.MainWindowM.sTempDir & "\Statistics - Optimizer.pdf"
|
||||
WebAddress = Map.refMainWindowVM.MainWindowM.sTempDir & "\Statistics - Optimizer.pdf"
|
||||
NotifyPropertyChanged(NameOf(WebAddress))
|
||||
End Sub
|
||||
|
||||
#End Region ' CreatePreviewVis
|
||||
|
||||
#Region "ClosePreview"
|
||||
'#Region "ClosePreview"
|
||||
|
||||
Public ReadOnly Property ClosePreview_Command As ICommand
|
||||
Get
|
||||
If m_cmdClosePreview Is Nothing Then
|
||||
m_cmdClosePreview = New Command(AddressOf ClosePreview)
|
||||
End If
|
||||
Return m_cmdClosePreview
|
||||
End Get
|
||||
End Property
|
||||
' Public ReadOnly Property ClosePreview_Command As ICommand
|
||||
' Get
|
||||
' If m_cmdClosePreview Is Nothing Then
|
||||
' m_cmdClosePreview = New Command(AddressOf ClosePreview)
|
||||
' End If
|
||||
' Return m_cmdClosePreview
|
||||
' End Get
|
||||
' End Property
|
||||
|
||||
''' <summary>
|
||||
''' Funzione per la chiusura della preview
|
||||
''' </summary>
|
||||
Public Sub ClosePreview()
|
||||
m_WebAddress = "about:blank"
|
||||
NotifyPropertyChanged(NameOf(WebAddress))
|
||||
End Sub
|
||||
' ''' <summary>
|
||||
' ''' Funzione per la chiusura della preview
|
||||
' ''' </summary>
|
||||
' Public Sub ClosePreview()
|
||||
' m_WebAddress = ""
|
||||
' NotifyPropertyChanged(NameOf(WebAddress))
|
||||
' End Sub
|
||||
|
||||
#End Region ' CreatePreviewVis
|
||||
'#End Region ' CreatePreviewVis
|
||||
|
||||
#End Region ' Commands
|
||||
|
||||
@@ -385,33 +385,33 @@ End Class
|
||||
|
||||
|
||||
' Classe gestione binding Web browser
|
||||
Public Class WebBrowserUtility
|
||||
'Public Class WebBrowserUtility
|
||||
|
||||
Public Shared ReadOnly BindableSourceProperty As DependencyProperty = DependencyProperty.RegisterAttached("BindableSource",
|
||||
GetType(String),
|
||||
GetType(WebBrowserUtility),
|
||||
New UIPropertyMetadata(Nothing, AddressOf BindableSourcePropertyChanged))
|
||||
' Public Shared ReadOnly BindableSourceProperty As DependencyProperty = DependencyProperty.RegisterAttached("BindableSource",
|
||||
' GetType(String),
|
||||
' GetType(WebBrowserUtility),
|
||||
' New UIPropertyMetadata(Nothing, AddressOf BindableSourcePropertyChanged))
|
||||
|
||||
Public Shared Function GetBindableSource(obj As DependencyObject) As String
|
||||
Return DirectCast(obj.GetValue(BindableSourceProperty), String)
|
||||
End Function
|
||||
' Public Shared Function GetBindableSource(obj As DependencyObject) As String
|
||||
' Return DirectCast(obj.GetValue(BindableSourceProperty), String)
|
||||
' End Function
|
||||
|
||||
Public Shared Sub SetBindableSource(obj As DependencyObject, value As String)
|
||||
obj.SetValue(BindableSourceProperty, value)
|
||||
End Sub
|
||||
' Public Shared Sub SetBindableSource(obj As DependencyObject, value As String)
|
||||
' obj.SetValue(BindableSourceProperty, value)
|
||||
' End Sub
|
||||
|
||||
Public Shared Sub BindableSourcePropertyChanged(o As DependencyObject, e As DependencyPropertyChangedEventArgs)
|
||||
Dim browser As WebBrowser = TryCast(o, WebBrowser)
|
||||
If Not IsNothing(browser) Then
|
||||
Dim uri As String = TryCast(e.NewValue, String)
|
||||
If Not IsNothing(uri) Then
|
||||
browser.Source = New Uri(uri)
|
||||
Else
|
||||
browser.Source = Nothing
|
||||
End If
|
||||
End If
|
||||
End Sub
|
||||
End Class
|
||||
' Public Shared Sub BindableSourcePropertyChanged(o As DependencyObject, e As DependencyPropertyChangedEventArgs)
|
||||
' Dim browser As WebBrowser = TryCast(o, WebBrowser)
|
||||
' If Not IsNothing(browser) Then
|
||||
' Dim uri As String = TryCast(e.NewValue, String)
|
||||
' If Not IsNothing(uri) Then
|
||||
' browser.Source = New Uri(uri)
|
||||
' Else
|
||||
' browser.Source = Nothing
|
||||
' End If
|
||||
' End If
|
||||
' End Sub
|
||||
'End Class
|
||||
|
||||
Class ColumnNameConverter
|
||||
Implements IValueConverter
|
||||
|
||||
+1046
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,182 @@
|
||||
<!DOCTYPE html>
|
||||
<!-- saved from url=(0014)about:internet -->
|
||||
|
||||
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt"><head><meta content="en-us" http-equiv="Content-Language" /><meta content="text/html; charset=utf-16" http-equiv="Content-Type" /><title _locID="NuGetUpgradeReportTitle">
|
||||
NuGetMigrationLog
|
||||
</title><style>
|
||||
|
||||
/* Body style, for the entire document */
|
||||
body
|
||||
{
|
||||
background: #F3F3F4;
|
||||
color: #1E1E1F;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
font-size: 12pt;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header1 style, used for the main title */
|
||||
h1
|
||||
{
|
||||
padding: 10px 0px 10px 10px;
|
||||
font-size: 21pt;
|
||||
background-color: #E2E2E2;
|
||||
border-bottom: 1px #C1C1C2 solid;
|
||||
color: #201F20;
|
||||
margin: 0;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/* Header2 style, used for "Overview" and other sections */
|
||||
h2
|
||||
{
|
||||
font-size: 18pt;
|
||||
font-weight: normal;
|
||||
padding: 15px 0 5px 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Header3 style, used for sub-sections, such as project name */
|
||||
h3
|
||||
{
|
||||
font-weight: normal;
|
||||
font-size: 15pt;
|
||||
margin: 0;
|
||||
padding: 15px 0 5px 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.info-text
|
||||
{
|
||||
margin: 0px 0 0.75em 0;
|
||||
}
|
||||
|
||||
/* Color all hyperlinks one color */
|
||||
a
|
||||
{
|
||||
color: #1382CE;
|
||||
}
|
||||
|
||||
/* Table styles */
|
||||
table
|
||||
{
|
||||
border-spacing: 0 0;
|
||||
border-collapse: collapse;
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
table th
|
||||
{
|
||||
background: #E7E7E8;
|
||||
text-align: left;
|
||||
text-decoration: none;
|
||||
font-weight: normal;
|
||||
padding: 3px 6px 3px 6px;
|
||||
}
|
||||
|
||||
table td
|
||||
{
|
||||
vertical-align: top;
|
||||
padding: 3px 6px 5px 5px;
|
||||
margin: 0px;
|
||||
border: 1px solid #E7E7E8;
|
||||
background: #F7F7F8;
|
||||
}
|
||||
|
||||
/* Local link is a style for hyperlinks that link to file:/// content, there are lots so color them as 'normal' text until the user mouse overs */
|
||||
.localLink
|
||||
{
|
||||
color: #1E1E1F;
|
||||
background: #EEEEED;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.localLink:hover
|
||||
{
|
||||
color: #1382CE;
|
||||
background: #FFFF99;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.issueCell
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.packageIssue
|
||||
{
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
/* Padding around the content after the h1 */
|
||||
#content
|
||||
{
|
||||
padding: 0px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.issues table
|
||||
{
|
||||
width: 97%;
|
||||
}
|
||||
|
||||
/* All Icons */
|
||||
.IconSuccessEncoded, .IconInfoEncoded, .IconWarningEncoded, .IconErrorEncoded
|
||||
{
|
||||
min-width:18px;
|
||||
min-height:18px;
|
||||
background-repeat:no-repeat;
|
||||
background-position:center;
|
||||
}
|
||||
|
||||
.IconSuccessEncoded
|
||||
{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABcElEQVR4Xq2TsUsCURzHv15g8ZJcBWlyiYYgCIWcb9DFRRwMW5TA2c0/QEFwFkxxUQdxVlBwCYWOi6IhWgQhBLHJUCkhLr/BW8S7gvrAg+N+v8/v+x68Z8MGy+XSCyABQAXgBgHGALoASkIIDWSLeLBetdHryMjd5IxQPWT4rn1c/P7+xxp72Cs9m5SZ0Bq2vPnbPFafK2zDvmNHypdC0BPkLlQhxJsCAhQoZwdZU5mwxh720qGo8MzTxTTKZDPCx2HoVzp6lz0Q9tKhyx0kGs8Ny+TkWRKk8lCROwEduhyg9l/6lunOPSfmH3NUH6uQ0KHLAe7JYvJjevm+DAMGJHToKtigE+vwvIidxLamb8IBY9e+C5LiXREkfho3TSd06HJA13/oh6T51MTsfQbHrsMynQ5dDihFjiK8JJAU9AKIWTp76dCVN7HWHrajmUEGvyF9nkbAE6gLIS7kTUyuf2gscLoJrElZo/Mvj+nPz/kLTmfnEwP3tB0AAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
.IconInfoEncoded
|
||||
{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHElEQVR4Xs2TsUoDQRRF7wwoziokjZUKadInhdhukR9YP8DMX1hYW+QvdsXa/QHBbcXC7W0CamWTQnclFutceIQJwwaWNLlwm5k5d94M76mmaeCrrmsLYOocY12FcxZFUeozCqKqqgYA8uevv1H6VuPxcwlfk5N92KHBxfFeCSAxxswlYAW/Xr989x/mv9gkhtyMDhcAxgzRsp7flj8B/HF1RsMXq+NZMkopaHe7lbKxQUEIGbKsYNoGn969060hZBkQex/W8oRQwsQaW2o3Ago2SVcJUzAgY3N0lTCZZm+zPS8HB51gMmS1DEYyOz9acKO1D8JWTlafKIMxdhvlfdyT94Vv5h7P8Ky7nQzACmhvKq3zk3PjW9asz9D/1oigecsioooAAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
.IconWarningEncoded
|
||||
{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAx0lEQVR4XpWSMQ7CMAxFf4xAyBMLCxMrO8dhaBcuwdCJS3RJBw7SA/QGTCxdWJgiQYWKXJWKIXHIlyw5lqr34tQgEOdcBsCOx5yZK3hCCKdYXneQkh4pEfqzLfu+wVDSyyzFoJjfz9NB+pAF+eizx2Vruts0k15mPgvS6GYvpVtQhB61IB/dk6AF6fS4Ben0uIX5odtFe8Q/eW1KvFeH4e8khT6+gm5B+t3juyDt7n0jpe+CANTd+oTUjN/U3yVaABnSUjFz/gFq44JaVSCXeQAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
.IconErrorEncoded
|
||||
{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABQElEQVR4XqWTvUoEQRCE6wYPZUA80AfwAQz23uCMjA7MDRQEIzPBVEyNTQUFIw00vcQTTMzuAh/AxEQQT8HF/3G/oGGnEUGuoNnd6qoZuqltyKEsyzVJq5I6rnUp6SjGeGhESikzzlc1eL7opfuVbrqbU1Zw9NCgtQMaZpY0eNnaaL2fHusvTK5vKu7sjSS1Y4y3QUA6K3e3Mau5UFDyMP7tYF9o8cAHZv68vipoIJg971PZIZ5HiwdvYGGvFVFHmGmZ2MxwmQYPXubPl9Up0tfoMQGetXd6mRbvhBw+boZ6WF7Mbv1+GsHRk0fQmPAH1GfmZirbCfDJ61tw3Px8/8pZsPAG4jlVhcPgZ7adwNWBB68lkRQWFiTgFlbnLY3DGGM7izIJIyT/jjIvEJw6fdJTc6krDzh6aMwMP9bvDH4ADSsa9uSWVJkAAAAASUVORK5CYII=);
|
||||
}
|
||||
|
||||
</style></head><body><h1>
|
||||
NuGet Migration Report - EgtBEAMWALL.ViewerOptimizer</h1><div id="content"><h2 _locID="OverviewTitle">Overview</h2><div class="info-text">Migration to PackageReference was completed successfully. Please build and run your solution to verify that all packages are available.</div><div class="info-text">
|
||||
If you run into any problems, have feedback, questions, or concerns, please
|
||||
<a href="https://github.com/NuGet/Home/issues/">file an issue on the NuGet GitHub repository.</a></div><div class="info-text">
|
||||
Changed files and this report have been backed up here:
|
||||
<a href="C:\EgtDev\egtbeamwall\MigrationBackup\814cbbc9\EgtBEAMWALL.ViewerOptimizer">C:\EgtDev\egtbeamwall\MigrationBackup\814cbbc9\EgtBEAMWALL.ViewerOptimizer</a></div><div class="info-text"><a href="https://aka.ms/nuget-pc2pr-migrator-rollback">Help me rollback to packages.config</a></div><h2 _locID="PackagesTitle">Packages processed</h2><h3 _locID="IncludePackagesTitle">Top-level dependencies:</h3><div class="issues"><table><tr><th class="issueCell">Package Id</th><th>Version</th></tr><tr><td class="issueCell"><span>BouncyCastle</span></td><td><span>
|
||||
v1.8.5</span></td></tr><tr><td class="issueCell"><span>DotNetZip</span></td><td><span>
|
||||
v1.16.0</span></td></tr><tr><td class="issueCell"><span>EntityFramework</span></td><td><span>
|
||||
v6.4.4</span></td></tr><tr><td class="issueCell"><span>Google.Protobuf</span></td><td><span>
|
||||
v3.21.9</span></td></tr><tr><td class="issueCell"><span>K4os.Compression.LZ4.Streams</span></td><td><span>
|
||||
v1.3.5</span></td></tr><tr><td class="issueCell"><span>Microsoft.Windows.SDK.Contracts</span></td><td><span>
|
||||
v10.0.22621.2428</span></td></tr><tr><td class="issueCell"><span>MySql.Data.EntityFramework</span></td><td><span>
|
||||
v8.0.21</span></td></tr><tr><td class="issueCell"><span>NLog</span></td><td><span>
|
||||
v5.0.1</span></td></tr><tr><td class="issueCell"><span>PDFsharp-MigraDoc-wpf</span></td><td><span>
|
||||
v1.50.5147</span></td></tr><tr><td class="issueCell"><span>Portable.BouncyCastle</span></td><td><span>
|
||||
v1.9.0</span></td></tr><tr><td class="issueCell"><span>System.IO.Pipelines</span></td><td><span>
|
||||
v6.0.0</span></td></tr></table></div><p /><h3 _locID="IncludePackagesTitle">Transitive dependencies:</h3><div class="issues"><table><tr><th class="issueCell">Package Id</th><th>Version</th></tr><tr><td class="issueCell"><span>K4os.Compression.LZ4</span></td><td><span>
|
||||
v1.3.5</span></td></tr><tr><td class="issueCell"><span>K4os.Hash.xxHash</span></td><td><span>
|
||||
v1.0.8</span></td></tr><tr><td class="issueCell"><span>MySql.Data</span></td><td><span>
|
||||
v8.0.21</span></td></tr><tr><td class="issueCell"><span>SSH.NET</span></td><td><span>
|
||||
v2016.1.0</span></td></tr><tr><td class="issueCell"><span>System.Buffers</span></td><td><span>
|
||||
v4.5.1</span></td></tr><tr><td class="issueCell"><span>System.Memory</span></td><td><span>
|
||||
v4.5.5</span></td></tr><tr><td class="issueCell"><span>System.Numerics.Vectors</span></td><td><span>
|
||||
v4.5.0</span></td></tr><tr><td class="issueCell"><span>System.Runtime.CompilerServices.Unsafe</span></td><td><span>
|
||||
v6.0.0</span></td></tr><tr><td class="issueCell"><span>System.Runtime.InteropServices.WindowsRuntime</span></td><td><span>
|
||||
v4.3.0</span></td></tr><tr><td class="issueCell"><span>System.Runtime.WindowsRuntime</span></td><td><span>
|
||||
v4.6.0</span></td></tr><tr><td class="issueCell"><span>System.Runtime.WindowsRuntime.UI.Xaml</span></td><td><span>
|
||||
v4.6.0</span></td></tr><tr><td class="issueCell"><span>System.Threading.Tasks.Extensions</span></td><td><span>
|
||||
v4.5.4</span></td></tr></table></div><h2 _locID="IssuesTitle">Package compatibility issues</h2><div class="issues"><table><tr><th /><th class="issueCell" _locID="DescriptionTableHeader">Description</th></tr><tr><td class="IconInfoEncoded" /><td class="issueCell">
|
||||
No issues were found.
|
||||
</td></tr></table></div></div></body></html>
|
||||
+5
-1
@@ -7,6 +7,7 @@
|
||||
<package id="K4os.Compression.LZ4" version="1.3.5" targetFramework="net472" />
|
||||
<package id="K4os.Compression.LZ4.Streams" version="1.3.5" targetFramework="net472" />
|
||||
<package id="K4os.Hash.xxHash" version="1.0.8" targetFramework="net472" />
|
||||
<package id="Microsoft.Windows.SDK.Contracts" version="10.0.22621.2428" targetFramework="net472" />
|
||||
<package id="MySql.Data" version="8.0.21" targetFramework="net472" />
|
||||
<package id="MySql.Data.EntityFramework" version="8.0.21" targetFramework="net472" />
|
||||
<package id="NLog" version="5.0.1" targetFramework="net472" />
|
||||
@@ -14,9 +15,12 @@
|
||||
<package id="Portable.BouncyCastle" version="1.9.0" targetFramework="net472" />
|
||||
<package id="SSH.NET" version="2016.1.0" targetFramework="net472" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||
<package id="System.IO.Pipelines" version="5.0.2" targetFramework="net472" />
|
||||
<package id="System.IO.Pipelines" version="6.0.0" targetFramework="net472" />
|
||||
<package id="System.Memory" version="4.5.5" targetFramework="net472" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.InteropServices.WindowsRuntime" version="4.3.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.WindowsRuntime" version="4.6.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.WindowsRuntime.UI.Xaml" version="4.6.0" targetFramework="net472" />
|
||||
<package id="System.Threading.Tasks.Extensions" version="4.5.4" targetFramework="net472" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user