Added shared assembly info (PdfScribeSharedAssemblyInfo.cs)

This commit is contained in:
S T Chan 2013-12-20 00:45:13 -05:00
parent bebd81eefa
commit ddb14d6a25
7 changed files with 37 additions and 88 deletions

View File

@ -0,0 +1,23 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCompany("Black Telescope Workshop")]
[assembly: AssemblyProduct("PDF Scribe")]
[assembly: AssemblyCopyright("Copyright © S T Chan 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -89,6 +89,9 @@
<Reference Include="PresentationFramework" /> <Reference Include="PresentationFramework" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Common\PdfScribeSharedAssemblyInfo.cs">
<Link>PdfScribeSharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="ActivityNotification.xaml.cs"> <Compile Include="ActivityNotification.xaml.cs">
<DependentUpon>ActivityNotification.xaml</DependentUpon> <DependentUpon>ActivityNotification.xaml</DependentUpon>
</Compile> </Compile>

View File

@ -8,13 +8,8 @@ using System.Windows;
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("PdfScribe")] [assembly: AssemblyTitle("PdfScribe")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("Postscript output redirector")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PdfScribe")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
@ -51,5 +46,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -8,6 +8,7 @@ using System.Runtime.InteropServices;
namespace PdfScribeCore namespace PdfScribeCore
{ {
#region Native Method Structures
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
public struct MONITOR_INFO_2 public struct MONITOR_INFO_2
@ -97,6 +98,7 @@ namespace PdfScribeCore
public uint cJobs; public uint cJobs;
public uint AveragePPM; public uint AveragePPM;
} }
#endregion
internal static class NativeMethods internal static class NativeMethods
{ {

View File

@ -90,6 +90,9 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Common\PdfScribeSharedAssemblyInfo.cs">
<Link>PdfScribeSharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="PdfScribeInstaller.cs" /> <Compile Include="PdfScribeInstaller.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="NativeMethods.cs" /> <Compile Include="NativeMethods.cs" />

View File

@ -1,72 +0,0 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace PdfScribe
{
class Program
{
static void Main(string[] args)
{
//RemovePort();
//RemovePortMonitor();
//TestGetPorts();
//AddPort();
//TestGetPrinterDriverDir();
//TestInstallPrinterDriver();
DeletePdfScribePort();
}
public static void AddPort()
{
var installer = new PdfScribeInstaller();
installer.AddPdfScribePortMonitor("SOFTSCAN",
"redmon64.dll",
@"C:\Code\PdfScribe\Lib\");
}
public static void DeletePdfScribePort()
{
var installer = new PdfScribeInstaller();
installer.DeletePdfScribePort("SSCAN");
}
public static void RemovePortMonitor()
{
var installer = new PdfScribeInstaller();
installer.RemoveSoftscanPortMonitor("SOFTSCAN");
installer.RemoveSoftscanPortMonitor("OAISISSOFTSCAN");
}
public static void TestGetPorts()
{
var installer = new PdfScribeInstaller();
List<MONITOR_INFO_2> monList = installer.EnumerateMonitors();
foreach (MONITOR_INFO_2 currentMonitor in monList)
{
Console.WriteLine(currentMonitor.pName + " / " +
currentMonitor.pEnvironment + " / " +
currentMonitor.pDLLName);
}
}
public static void TestGetPrinterDriverDir()
{
var installer = new PdfScribeInstaller();
String driverDir = installer.RetrievePrinterDriverDirectory();
}
public static void TestInstallPrinterDriver()
{
var installer = new PdfScribeInstaller();
/*installer.AddSoftscanPortMonitor("OAISISSOFTSCAN",
"redmon64.dll",
@"C:\Code\OaisisRedmonInstaller\Lib\"); */
installer.InstallSoftscanPrinter_Test();
//installer.RemoveSoftscanPortMonitor("SOFTSCAN");
}
}
}

View File

@ -5,14 +5,9 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("PDF Scribe")] [assembly: AssemblyTitle("PdfScribeCore")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("S T Chan")]
[assembly: AssemblyProduct("PDF Scribe")]
[assembly: AssemblyCopyright("Copyright © 2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible // Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from // to COM components. If you need to access a type in this assembly from
@ -32,5 +27,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.*")]