netoffice,
This commit is contained in:
@@ -167,6 +167,21 @@
|
||||
<Reference Include="Microsoft.Owin.StaticFiles, Version=4.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.Owin.StaticFiles.4.2.0\lib\net45\Microsoft.Owin.StaticFiles.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.DataVisualization, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.DataVisualization.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.Design, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.Design.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.ProcessingObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.ProcessingObjectModel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.ReportViewer.WinForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.ReportingServices.ReportViewerControl.Winforms.150.1586.0\lib\net40\Microsoft.ReportViewer.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.SqlServer.Types, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Microsoft.SqlServer.Types.14.0.314.76\lib\net40\Microsoft.SqlServer.Types.dll</HintPath>
|
||||
</Reference>
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
|
||||
// 지정되도록 할 수 있습니다.
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("23.11.27.0950")]
|
||||
[assembly: AssemblyFileVersion("23.11.27.0950")]
|
||||
[assembly: AssemblyVersion("23.12.06.1000")]
|
||||
[assembly: AssemblyFileVersion("23.12.06.1000")]
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
//using System;
|
||||
//using System.IO;
|
||||
//using System.Runtime.InteropServices;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
//namespace SqlServerTypes
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Utility methods related to CLR Types for SQL Server
|
||||
// /// </summary>
|
||||
// public class Utilities
|
||||
// {
|
||||
// [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
||||
// private static extern IntPtr LoadLibrary(string libname);
|
||||
namespace SqlServerTypes
|
||||
{
|
||||
/// <summary>
|
||||
/// Utility methods related to CLR Types for SQL Server
|
||||
/// </summary>
|
||||
public class Utilities
|
||||
{
|
||||
[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
|
||||
private static extern IntPtr LoadLibrary(string libname);
|
||||
|
||||
// /// <summary>
|
||||
// /// Loads the required native assemblies for the current architecture (x86 or x64)
|
||||
// /// </summary>
|
||||
// /// <param name="rootApplicationPath">
|
||||
// /// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
|
||||
// /// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
|
||||
// /// </param>
|
||||
// public static void LoadNativeAssemblies(string rootApplicationPath)
|
||||
// {
|
||||
// var nativeBinaryPath = IntPtr.Size > 4
|
||||
// ? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
|
||||
// : Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
|
||||
/// <summary>
|
||||
/// Loads the required native assemblies for the current architecture (x86 or x64)
|
||||
/// </summary>
|
||||
/// <param name="rootApplicationPath">
|
||||
/// Root path of the current application. Use Server.MapPath(".") for ASP.NET applications
|
||||
/// and AppDomain.CurrentDomain.BaseDirectory for desktop applications.
|
||||
/// </param>
|
||||
public static void LoadNativeAssemblies(string rootApplicationPath)
|
||||
{
|
||||
var nativeBinaryPath = IntPtr.Size > 4
|
||||
? Path.Combine(rootApplicationPath, @"SqlServerTypes\x64\")
|
||||
: Path.Combine(rootApplicationPath, @"SqlServerTypes\x86\");
|
||||
|
||||
// LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
|
||||
// LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
|
||||
// }
|
||||
LoadNativeAssembly(nativeBinaryPath, "msvcr120.dll");
|
||||
LoadNativeAssembly(nativeBinaryPath, "SqlServerSpatial140.dll");
|
||||
}
|
||||
|
||||
// private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
|
||||
// {
|
||||
// var path = Path.Combine(nativeBinaryPath, assemblyName);
|
||||
// var ptr = LoadLibrary(path);
|
||||
// if (ptr == IntPtr.Zero)
|
||||
// {
|
||||
// throw new Exception(string.Format(
|
||||
// "Error loading {0} (ErrorCode: {1})",
|
||||
// assemblyName,
|
||||
// Marshal.GetLastWin32Error()));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
private static void LoadNativeAssembly(string nativeBinaryPath, string assemblyName)
|
||||
{
|
||||
var path = Path.Combine(nativeBinaryPath, assemblyName);
|
||||
var ptr = LoadLibrary(path);
|
||||
if (ptr == IntPtr.Zero)
|
||||
{
|
||||
throw new Exception(string.Format(
|
||||
"Error loading {0} (ErrorCode: {1})",
|
||||
assemblyName,
|
||||
Marshal.GetLastWin32Error()));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,8 +18,8 @@
|
||||
<package id="Microsoft.Owin.Hosting" version="4.1.1" targetFramework="net46" />
|
||||
<package id="Microsoft.Owin.StaticFiles" version="4.2.0" targetFramework="net46" />
|
||||
<package id="Microsoft.Owin.StaticFiles.ko" version="4.2.0" targetFramework="net46" />
|
||||
<package id="Microsoft.ReportingServices.ReportViewerControl.Winforms" version="150.1449.0" targetFramework="net452" />
|
||||
<package id="Microsoft.SqlServer.Types" version="14.0.314.76" targetFramework="net452" />
|
||||
<package id="Microsoft.ReportingServices.ReportViewerControl.Winforms" version="150.1586.0" targetFramework="net46" />
|
||||
<package id="Microsoft.SqlServer.Types" version="14.0.314.76" targetFramework="net46" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net46" />
|
||||
<package id="Owin" version="1.0" targetFramework="net452" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net46" />
|
||||
|
||||
Reference in New Issue
Block a user