I have 9 DTD files example
xhtml dtd1
xhtml dtd2
I want to create a DLL file which includes all the 9 dtd's.
So any of you can help me in creating it or tell me from where to start?
If you publish your web app or compile your site it will transform these into a dll if they reside in a class library.
Related
I want to parse pdf document to be indexed by Lucene using pdfbox package. The required class LucenePDFDocument which is in org.apache.pdfbox.examples.lucene.LucenePDFDocument package. But in the jar file I have not found it. So, my java program is not getting compiled.
Kindly help!!!
The answer of the question goes as follows...
Previously before pdfbox version 1.7.1, org.apache.pdfbox.examples package was included but there is no package as examples.lucene.LucenePDFDocument.
From 1.7.1 there is no org.apache.pdfbox.examples package.
So, in order to use LucenePDFDocument class in your application, one has to compile the source and make a jar and use it in the application. In the source there is a example package directory. So, example package will be included once compiled from source.
I have exported the source code of Assembly C Sharp.dll that unity uses using reflector. it gave me various cs files. Now i want to compile them all back into a single dll file. So how do i do it and what program shall i use??
Thanks
In visual studio, create a new class library project. Add your .cs files to the project. Build.
I have a VS2010 SL4 project which uses an external Silverlight DLL. The project is localized with multiple RESX files, and the DLL is, too. I usually include external DLLs in my solutions as follows:
1) create a set of virtual folders in my solution like (say the imported DLL is named Sample.dll):
/Lib/Sample/Debug
/Lib/Sample/Release
2) create the same folders structure in the file system and copy under Debug and Release the respective versions of the DLL, so that now I find the following files:
/Lib/Sample/Debug/Sample.dll
/Lib/Sample/Release/Sample.dll
3) add to all the client projects in the solution a reference to /Lib/Sample/Debug/Sample.dll.
4) open the .csproj file of each project with the added reference, and change the Debug part of the path with $(Configuration), so that the right Debug/Release version is picked during build.
Now the question is: in my SL4 solution I can follow the same procedure for importing the language-neutral DLL. But what about its satellite resources? For instance, the French version of the imported DLL is built under subfolder fr-FR and named Sample.resources.dll. How should I include it correctly? Even If I try to manually add it in the compiled XAP under folder fr, it is ignored and the application falls back to its neutral culture...
I think I found it, here's a recap for whom may be interested:
open the .csproj file and ensure you add all your desired languages (separated by semicolons) in . For instance, if you support fr-Fr add <SupportedCultures>fr-Fr</SupportedCultures>.
(had to do this manually, I supposed 1. should be enough): once compiled, open your xap (rename it to .zip and open) and add if not present an element like <AssemblyPart Source="fr-FR/Sample.resources.dll" /> for each imported satellite with resources.
Thanks anyway!
I have a website solution that contains three different Silverlight 4 projects, and they all make use of the same Silverlight class library.
I have done this by creating a class library project within the solution, and referencing it from the other Silverlight projects.
BUT the class library is included in every one of the XAPs. The user could end up downloading the same class library multiple times.
How do I canvert the class library into a XAP that can be downloaded once, in the same way that an assembly is?
(And why isn't there a Silverlight Assembly project type in Visual Studio?)
You should use Assembly Caching - it's a way to leave dependent assemblies out of your xap file. Instead you need to deploy them with your xap file by placing them in a seperate zip file in the same folder.
In the properties window of your Silverlight application you can choose to enable Assembly Library Caching. That will automaticly generate a zip file for each cacheably assembly.
In the project References folder in Visual Studio, select the referenced dll that you don't want to be loaded again, and in the Properties window set its Copy Local property to false.
How to find the Struts version being used in a Web Application project in Eclipse?
My struts-config.xml says
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
Thanks.
Open struts jar and read version in MANIFEST file, inside META-INF folder.
We can find out the struts version by observing the doctype of the Struts-config file.
For Example if your struts config file contains the below DTD then we can say that it is Struts 1.1 version.
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/**struts-config_1_1.dtd**">
On a Windows system:
Open file explorer, search for struts*.jar
Open struts-core.jar with a unzip tool (e.g. IZArc2Go)
Open META-INF folder and open MANIFEST.MF file with a text editor
There you will find Specification-Version: with the version number
Some additional release info:
Latest Struts 2 version is 2.5.2
Struts 1 is EOL with version 1.3.10 in December 2008
and the property to look at in manifest.mf is 'Specification-Version'
Dont refer to the Manifest-version. instead you refer to the "Specification-Version"
Eg:
Specification-Version: 1.2.4
That means the struts verison is 1.2.4