Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
407801c
Remove unused references in FDO and FdoUi
andrew-polk Nov 21, 2013
724d402
Move some LexEntry domain logic from FdoUi into FDO
andrew-polk Nov 22, 2013
f85f7ff
Remove ProgressBar and ProgressBarStyle from FDO
andrew-polk Nov 26, 2013
03f428c
Remove all dialogs from FDO
andrew-polk Nov 27, 2013
62e45d7
Remove all dialogs from FDO
andrew-polk Nov 28, 2013
5c2b716
Remove all dialogs from FDO
andrew-polk Nov 29, 2013
df732e9
moved some WinForms references out of FDO
ddaspit Nov 27, 2013
874b2cf
Move more UI elements out of FDO and its references
andrew-polk Dec 2, 2013
e8e0a4b
Move more UI elements out of FDO and its references
andrew-polk Dec 3, 2013
4d994c8
Remove all dialogs from FDO
andrew-polk Dec 3, 2013
2af8389
removed WinForms references from UnitOfWorkService
ddaspit Dec 3, 2013
0573cf8
Merge branch 'develop' into feature/RelatedWords
ddaspit Dec 3, 2013
625eb90
removed message boxes from ProjectRestoreService/ProjectBackupService
ddaspit Dec 4, 2013
6778fd9
Move more UI elements out of FDO
andrew-polk Dec 4, 2013
6b915ca
Move more UI elements out of FDO
andrew-polk Dec 4, 2013
4f93816
removed WinForms references from some classes in FDO
ddaspit Dec 4, 2013
11ce067
removed WinForms references from some FDO classes
ddaspit Dec 4, 2013
d05584d
Move more UI elements out of FDO
andrew-polk Dec 4, 2013
befe36e
Remove WinForms references from some FDO classes
andrew-polk Dec 4, 2013
0982cf9
removed message boxes from some FDO classes
ddaspit Dec 6, 2013
068b691
suppress Gendarme errors caused by previous revision
ddaspit Dec 6, 2013
398f278
Move more message boxes out of FDO
andrew-polk Dec 6, 2013
8866119
Remove some references to FwResources from FDO
andrew-polk Dec 6, 2013
6349825
Move some FwUtil code into FDO
andrew-polk Dec 6, 2013
3f4be61
Move some FwUtil code into BasicUtil
andrew-polk Dec 6, 2013
6cb3651
Move some FwUtil code into BasicUtil
andrew-polk Dec 6, 2013
5a4f365
Remove some dependencies of FDO upon FwUtil
andrew-polk Dec 6, 2013
fcd292c
Fix previous build by modifying using directive for FdoGenerate
andrew-polk Dec 6, 2013
06a9008
removed references to ResourceHelper from FDO
ddaspit Dec 6, 2013
fca70d4
Move toward removing FwUtils reference from FDO
andrew-polk Dec 9, 2013
d725104
Move FDO code out of DirectoryFinder into FdoFileHelper
andrew-polk Dec 9, 2013
93ee1d0
Remove more FDO references to FwUtils
andrew-polk Dec 9, 2013
6768298
Move some classes from FwUtils to BasicUtils and CoreImpl
andrew-polk Dec 9, 2013
9e237da
Move some classes from FwUtils to BasicUtils and CoreImpl
andrew-polk Dec 9, 2013
e3b1c1e
Remove more FwUtils dependencies from FDO
andrew-polk Dec 9, 2013
2c1d777
Remove xCoreInterfaces reference from FDO
andrew-polk Dec 10, 2013
3f72e49
Remove more FwUtils dependencies from FDO
andrew-polk Dec 10, 2013
2695e40
Removed references to FwUtils from FDO
ddaspit Dec 10, 2013
777bbac
Remove temporary duplicate code from FWFileExtensions
andrew-polk Dec 10, 2013
1c14889
Fix some unit tests from previous commit
andrew-polk Dec 10, 2013
cf885ff
properly catch UnauthorizedAccessException during project creation
ddaspit Dec 10, 2013
c1f00e9
fixed broken unit tests caused by previous changes
ddaspit Dec 11, 2013
afc4b33
Merge branch 'develop' into feature/RelatedWords
ddaspit Dec 11, 2013
060c1d6
Remove Form property from IProgress
andrew-polk Dec 11, 2013
432f004
added SxS manifest generation to build
ddaspit Dec 18, 2013
a4d03ed
Combined FwKernel and Language COM DLLs
ddaspit Dec 19, 2013
34d7daa
fixed Makefile that broke from changes in previous revision
ddaspit Dec 19, 2013
7283349
fixed building of FwXml.cpp in Kernel Makefile
ddaspit Dec 19, 2013
529bb19
fixed build for FwKernel on Linux
ddaspit Dec 20, 2013
4471c27
updated ManifestHelper so that a manifest file can be specified
ddaspit Jan 7, 2014
adf042a
fixed bug where segments were not updated when analyses were removed
ddaspit Jan 13, 2014
5bf7952
Remove obsolete LexicalProvider code
andrew-polk Jan 17, 2014
c554ba5
made PartOfSpeechForWsTSS method in MoMorphSynAnalysis public
ddaspit Jan 15, 2014
3b6f92e
refactored StringSearcher to be more generic and moved it to CoreImpl
ddaspit Jan 17, 2014
0e2828a
added Compare method to IcuWrappers
ddaspit Jan 20, 2014
a53c263
Remove FwUtils reference from ParserCore
andrew-polk Jan 20, 2014
0b6e3cb
Set up new IParser interface
andrew-polk Jan 20, 2014
b67b32c
added XAmpleParser and refactored FW parsing to use IParser interface
ddaspit Jan 21, 2014
40d1600
Add HCParser
andrew-polk Jan 21, 2014
b8221be
Fix MONO build bug in FdoIFwMetaDataCache
andrew-polk Jan 21, 2014
ed79ce3
fixed ParseFiler tests
ddaspit Jan 21, 2014
051baa4
Pass the data directory rather than the root directory
andrew-polk Jan 22, 2014
e8de4d8
Merge branch 'origin/develop' into feature/RelatedWords
andrew-polk Jan 23, 2014
22a5b9c
Expose parser up-to-date property
andrew-polk Jan 29, 2014
f3826bc
Create FdoFileLockedException to extend StartupException
andrew-polk Jan 31, 2014
530c462
Find in Dictionary will only return entries from approved analyses
ddaspit Feb 5, 2014
da33e17
Merge branch 'origin/develop' into feature/RelatedWords
andrew-polk Feb 5, 2014
602eb8d
Add unit test to UpdateParserDataTests for empty lexicon
andrew-polk Feb 5, 2014
cd7b693
Add ability to forbid data migration when creating FDO cache
andrew-polk Feb 6, 2014
10d1def
UOWs now only invoke on the UI thread when necessary
ddaspit Feb 6, 2014
b5fa299
Add ability to forbid data migration when creating FDO cache
andrew-polk Feb 6, 2014
83651d5
updated to latest version of Machine
ddaspit Feb 10, 2014
da21f3f
Move shared XML generation code into ParserCore
andrew-polk Feb 11, 2014
e5685a6
moved XML generation code from XAmpleTrace to XAmpleParser
ddaspit Feb 12, 2014
3e0bb41
Create writer methods as duplicates in ParserXMLGenerator
andrew-polk Feb 12, 2014
fdfb58d
converted WordGrammarDebugger to use XmlWriter
ddaspit Feb 12, 2014
7fd528d
updated ConvertMorphs to use XmlWriter
ddaspit Feb 12, 2014
7c1db23
Refactor HCParser to do all XML creation at the same time
andrew-polk Feb 12, 2014
26bd052
Refactor WordGrammarDebugger to use XDocument rather than XmlDocument
andrew-polk Feb 13, 2014
259082b
updated XAmpleParser to generate XDocument
ddaspit Feb 13, 2014
126bc9d
Use XslCompiledTransform and remove some unnecessary IO
andrew-polk Feb 13, 2014
7069d08
Fix Gendarme issues
andrew-polk Feb 13, 2014
883a4f9
Changed parser trace result to be a XDocument
ddaspit Feb 13, 2014
7b4a83b
simplified WordGrammarDebugger
ddaspit Feb 14, 2014
d418a36
refactored parser trace classes
ddaspit Feb 14, 2014
9abb368
removed ParserEngine folder
ddaspit Feb 14, 2014
8445cf5
refactored parser loading to use XDocument
ddaspit Feb 17, 2014
87e9618
Precompile XSL files and merge into ParserUI assembly
andrew-polk Feb 18, 2014
9c62644
Precompile XSLs for ParserCore and ParserUI
andrew-polk Feb 19, 2014
bb40f3a
Fixing duplicate using directive for linux in previous commit
andrew-polk Feb 19, 2014
40511fb
Fix unit tests from previous commit
andrew-polk Feb 19, 2014
fe4e46b
Merge branch 'origin/develop' into feature/RelatedWords
andrew-polk Feb 20, 2014
0d020ca
Fixing export of XLing Paper
andrew-polk Feb 20, 2014
59aaa08
Remove LibXslt.cs
andrew-polk Feb 20, 2014
dcddadc
changed Linux to use XslCompiledTransform
ddaspit Feb 21, 2014
f88588e
fixed Gendarme error in XmlUtils
ddaspit Feb 21, 2014
340b48f
fixed failing Views unit tests
ddaspit Feb 21, 2014
5a0ddbd
fixed Kernel Test makefile
ddaspit Feb 21, 2014
b52f98e
updated FwBuildTasks.dll
ddaspit Feb 24, 2014
7311e46
Update ParatextShared.dll
andrew-polk Mar 4, 2014
a6d19b7
Merge branch 'develop' into feature/RelatedWords
andrew-polk Mar 4, 2014
5e17f91
added FwParatextLexiconPlugin project
ddaspit Mar 21, 2014
811ad93
fixed build issues
ddaspit Mar 24, 2014
67a6072
Initialize FwLexiconPlugin to allow DB4O
andrew-polk Mar 24, 2014
75f0a20
fixed build on Linux
ddaspit Mar 24, 2014
41b31de
removed ParatextShared.dll dependency from FDO
ddaspit Apr 21, 2014
7809f29
added shared XML backend
ddaspit Apr 23, 2014
3bf4c0b
added more unit testing for shared XML backend
ddaspit Apr 24, 2014
ecf8a4b
restrict changing project properties with shared XML backend
ddaspit Apr 25, 2014
6d21246
restrict S/R when using shared XML backend
ddaspit Apr 25, 2014
1ddb4c3
fixed shutdown of shared XML backend when file already locked
ddaspit Apr 29, 2014
f3cd42a
implemented remaining FdoUI methods in Paratext plugin
ddaspit May 2, 2014
be43655
restricted changing custom fields when using shared XML backend
ddaspit May 2, 2014
0df66aa
updated Paratext lexical contracts
ddaspit May 5, 2014
d0ed05f
updated Paratext plugin for new contracts
ddaspit May 12, 2014
5dc411b
added alternate forms to lexeme interface in Paratext plugin
ddaspit May 13, 2014
aef6b60
Paratext plugin now saves when idle
ddaspit May 13, 2014
19a5eeb
Merge branch 'develop' into feature/RelatedWords
ddaspit May 13, 2014
ab3b437
Fixed SharedXMLBackendProvider on Linux
ddaspit May 15, 2014
2926d81
updated SharedXMLBackendProvider to handle failures more gracefully
ddaspit May 16, 2014
9104d56
added more information to XAmple exceptions
ddaspit May 16, 2014
e325b11
added AssemblyInfoForTests to FwParatextLexiconPluginTests
ddaspit May 16, 2014
e404397
fixed bug when removing senses from FdoLexEntryLexeme
ddaspit May 16, 2014
8c72edf
Merge branch 'develop' into feature/RelatedWords
ddaspit May 26, 2014
5b93ab4
updated registration-free COM to use assembly manifests
ddaspit May 29, 2014
40181c2
added comments to clarify targets that build XSL assemblies
ddaspit May 29, 2014
5f66a63
refactored DirectoryFinderTests
ddaspit May 30, 2014
a047614
refactored dipose of ThreadHelper in ProgressDlgTests
ddaspit May 30, 2014
1892dbe
refactored error handling in IcuWrappers
ddaspit May 30, 2014
a016783
added a method to check if a shared XML backend is needed
ddaspit May 30, 2014
f16baa1
refactored EnsureValidLinkedFileFolderCore test
ddaspit May 30, 2014
deabe19
removed obsolete comments
ddaspit May 30, 2014
c27b6e0
renamed some properties on ICmPossibility to be more clear
ddaspit May 30, 2014
3b667bd
removed empty region from ScrImportSet
ddaspit May 30, 2014
33a00fb
redundant comment removed from ClientServerServices
ddaspit May 30, 2014
e3dff89
encapsulated some frequently used code into methods in FDOTests
ddaspit May 30, 2014
99ec1ab
fixed platform-dependent slashes in FDOTests
ddaspit Jun 2, 2014
9edbf64
check for user prompt for conflicting changes in shared XML tests
ddaspit Jun 2, 2014
177daba
check for WinForms reference in FDO
ddaspit Jun 2, 2014
8397cb9
removed protobuf-net.dll
ddaspit Jun 3, 2014
13e235c
cleaned up and commented shared XML backend provider code
ddaspit Jun 3, 2014
12a7947
display error message when project cannot be migrated
ddaspit Jun 4, 2014
a213f5f
added test circular buffer test for shared XML backend
ddaspit Jun 6, 2014
d0b7e5a
removed Paratext DLLs from repo
ddaspit Jun 19, 2014
927c6d2
Merge branch 'develop' into feature/RelatedWords
ddaspit Jun 20, 2014
a7bb1fa
fixed build problems on Linux
ddaspit Jun 20, 2014
3b2a463
added LexiconUnavailableException to PT lexicon plugin
ddaspit Jun 20, 2014
e4151dd
fixed bug backing up a shared XML backend project
ddaspit Jun 23, 2014
2f3d771
clean up project restore in Paratext lexicon plugin
ddaspit Jun 23, 2014
9e8e8ba
get code dir in PT lexicon plugin from current plugin location
ddaspit Jun 23, 2014
1c70a4d
fixed ParatextHelperTests compile error caused by new PT DLLs
ddaspit Jun 23, 2014
ecb169b
fixed shared XML backend unit test on Linux
ddaspit Jun 24, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 0 additions & 4 deletions Bld/_init.mak.lnx
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,20 @@ include $(BUILD_ROOT)/Bld/_rule.mak.lnx
DEBUGPROCS_OBJ = $(OBJ_DIR)/$(BUILD_CONFIG)/$(DEBUGPROCS_NAME)
GENERIC_OBJ = $(OBJ_DIR)/$(BUILD_CONFIG)/$(GENERIC_NAME)
KERNEL_OBJ = $(OBJ_DIR)/$(BUILD_CONFIG)/$(KERNEL_NAME)
LANGUAGE_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(LANGUAGE_NAME)
APPCORE_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(APPCORE_NAME)
TEXT_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(TEXT_NAME)
CELLAR_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(CELLAR_NAME)
GRENGINE_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(GRENGINE_NAME)
VIEWS_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(VIEWS_NAME)
DBACCESS_OBJ= $(OBJ_DIR)/$(BUILD_CONFIG)/$(DBACCESS_NAME)

DEBUGPROCS_SRC = $(SRC)/$(DEBUGPROCS_NAME)
GENERIC_SRC = $(SRC)/$(GENERIC_NAME)
KERNEL_SRC = $(SRC)/$(KERNEL_NAME)
LANGUAGE_SRC = $(SRC)/$(LANGUAGE_NAME)
APPCORE_SRC = $(SRC)/$(APPCORE_NAME)
TEXT_SRC = $(SRC)/$(TEXT_NAME)
CELLAR_SRC = $(SRC)/$(CELLAR_NAME)
GRENGINE_SRC = $(SRC)/Graphite/$(GRENGINE_NAME)
VIEWS_SRC = $(SRC)/$(VIEWS_NAME)
DBACCESS_SRC = $(SRC)/$(DBACCESS_NAME)

# Include user specific settings
-include $(BUILD_ROOT)/Bld/_user.mak.lnx
Expand Down
1 change: 0 additions & 1 deletion Bld/_names.mak
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ KERNEL_NAME =Kernel
GENERIC_NAME =Generic
GRENGINE_NAME =GrEngine
FDO_NAME =FDO
LANGUAGE_NAME =Language
FWRESOURCES_NAME =FwResources
TEXT_NAME =Text
VIEWS_NAME =views
Expand Down
Binary file modified Build/FwBuildTasks.dll
Binary file not shown.
20 changes: 15 additions & 5 deletions Build/Linux.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<!-- call preparatory Linux targets -->
<Target Name="initLinux" Condition="'$(OS)'=='Unix'" DependsOnTargets="Initialize;unitpp;tlbs-copy;teckit;iculibs;linuxLibs;ensureTLBsUpToDate;setupLinuxRegistry"
<Target Name="initLinux" Condition="'$(OS)'=='Unix'" DependsOnTargets="Initialize;unitpp;tlbs-copy;teckit;iculibs;linuxLibs;ensureTLBsUpToDate;setupLinuxRegistry;BuildLinuxXslAssemblies"
Inputs="$(dir-fwdistfiles)/strings-en.txt" Outputs="$(dir-outputBase)/strings-en.txt">
<Copy SourceFiles="$(dir-fwdistfiles)/strings-en.txt"
DestinationFolder="$(dir-outputBase)"
Expand Down Expand Up @@ -121,9 +121,8 @@
<IdhFiles Include="$(fwrt)/Src/Kernel/FwKernel.idh"/>
<IdhFiles Include="$(fwrt)/Src/Kernel/FwKernelTlb.idl"/>
<IdhFiles Include="$(fwrt)/Src/Kernel/TextServ.idh"/>
<IdhFiles Include="$(fwrt)/Src/Language/Language.idh"/>
<IdhFiles Include="$(fwrt)/Src/Language/LanguageTlb.idl"/>
<IdhFiles Include="$(fwrt)/Src/Language/Render.idh"/>
<IdhFiles Include="$(fwrt)/Src/Kernel/Language.idh"/>
<IdhFiles Include="$(fwrt)/Src/Kernel/Render.idh"/>
<IdhFiles Include="$(fwrt)/Src/SharpViews/FwComponents/FwComponents.idh"/>
<IdhFiles Include="$(fwrt)/Src/views/Views.idh"/>
<IdhFiles Include="$(fwrt)/Src/views/ViewsTlb.idl"/>
Expand Down Expand Up @@ -161,7 +160,6 @@
<!--We also need to extract the interface GUIDs for Linux -->
<Message Text="Extracting iids for use on Linux..."/>
<ExtractIIDs Input="$(dir-fwoutputCommon)/FwKernelTlb.h" Output="$(fwrt)/Src/Kernel/FwKernel_GUIDs.cpp"/>
<ExtractIIDs Input="$(dir-fwoutputCommon)/LanguageTlb.h" Output="$(fwrt)/Src/Language/Language_GUIDs.cpp"/>
<ExtractIIDs Input="$(dir-fwoutputCommon)/ViewsTlb.h" Output="$(fwrt)/Src/views/Views_GUIDs.cpp"
LinesToInsertAtTop='#include "FwKernelTlb.h"'/>
<Copy SourceFiles="$(dir-fwoutput)/idhfiles.MD5" DestinationFolder="$(fwrt)/Lib/linux/Common"/>
Expand Down Expand Up @@ -233,4 +231,16 @@
SecondLine="8856396c-63a9-4bc7-ad47-87ec8b6ef5a4 libManagedComBridge.so"/>
</Target>

<!-- Mono doesn't have an XSL compiler so we just put the XSLs in a resource assembly -->
<Target Name="BuildLinuxXslAssemblies" Condition="'$(OS)'=='Unix'">
<CreateItem Include="$(fwrt)/Src/Transforms/Presentation/*.xsl">
<Output TaskParameter="Include" ItemName="PresentationXslFiles"/>
</CreateItem>
<Csc TargetType="library" OutputAssembly="$(dir-outputBase)/PresentationTransforms.dll" Optimize="true" Platform="AnyCPU" Resources="@(PresentationXslFiles)" />

<CreateItem Include="$(fwrt)/Src/Transforms/Application/*.xsl">
<Output TaskParameter="Include" ItemName="ApplicationXslFiles"/>
</CreateItem>
<Csc TargetType="library" OutputAssembly="$(dir-outputBase)/ApplicationTransforms.dll" Optimize="true" Platform="AnyCPU" Resources="@(ApplicationXslFiles)" />
</Target>
</Project>
12 changes: 5 additions & 7 deletions Build/RegFree.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@
This allows our programs to run without registering our COM DLLs, which in turn allows different
versions of FieldWorks to coexist on the same computer. This is only relevant for Windows.-->
<ItemGroup>
<Dlls Include="$(OutDir)FwKernel.dll"/>
<Dlls Include="$(OutDir)Views.dll"/>
<Dlls Include="$(OutDir)Language.dll"/>
<Dlls Include="$(OutDir)Graphite.dll"/>
<DependentAssemblies Include="$(OutDir)FwKernel.manifest"/>
<DependentAssemblies Include="$(OutDir)Views.manifest"/>
<DependentAssemblies Include="$(OutDir)Graphite.manifest"/>
</ItemGroup>
<ItemGroup>
<Fragments Include="$(OutDir)/../../DistFiles/*.fragment.manifest"/>
</ItemGroup>
<Target Name="CreateManifest" Condition="'$(OS)'=='Windows_NT'" Inputs="@(Dlls)" Outputs="$(Executable).manifest">
<RegFree Executable="$(Executable)" Dlls="@(Dlls)" Fragments="@(Fragments)"
NoTypeLib="$(OutDir)Graphite.dll" />
<Target Name="CreateManifest" Condition="'$(OS)'=='Windows_NT'" Inputs="@(DependentAssemblies)" Outputs="$(Executable).manifest">
<RegFree Executable="$(Executable)" DependentAssemblies="@(DependentAssemblies)" Fragments="@(Fragments)" />
</Target>
<Target Name="AttachManifest" Condition="'$(OS)'=='Windows_NT'" DependsOnTargets="CreateManifest">
<Exec Command="mt.exe -outputresource:$(Executable) -manifest $(Executable).manifest"/>
Expand Down
43 changes: 39 additions & 4 deletions Build/Src/FwBuildTasks/RegFree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
// </remarks>
// ---------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Security.Principal;
Expand Down Expand Up @@ -103,6 +104,12 @@ public RegFree()
/// ------------------------------------------------------------------------------------
public ITaskItem[] AsIs { get; set; }

/// <summary>
/// Gets or sets the dependent assemblies. Currently, this only accepts paths to assembly
/// manifests.
/// </summary>
public ITaskItem[] DependentAssemblies { get; set; }

private bool? m_IsAdmin;
private bool UserIsAdmin
{
Expand All @@ -128,7 +135,14 @@ public override bool Execute()
Log.LogMessage(MessageImportance.Normal, "RegFree processing {0}",
Path.GetFileName(Executable));

var manifestFile = string.IsNullOrEmpty(Output) ? Executable + ".manifest" : Output;
StringCollection dllPaths = IdlImp.GetFilesFrom(Dlls);
if (dllPaths.Count == 0)
{
string ext = Path.GetExtension(Executable);
if (ext != null && ext.Equals(".dll", StringComparison.InvariantCultureIgnoreCase))
dllPaths.Add(Executable);
}
string manifestFile = string.IsNullOrEmpty(Output) ? Executable + ".manifest" : Output;

try
{
Expand All @@ -145,7 +159,6 @@ public override bool Execute()
{
regHelper.RedirectRegistry(!UserIsAdmin);
var creator = new RegFreeCreator(doc, Log);
var dllPaths = IdlImp.GetFilesFrom(Dlls);
var filesToRemove = dllPaths.Cast<string>().Where(fileName => !File.Exists(fileName)).ToList();
foreach (var file in filesToRemove)
dllPaths.Remove(file);
Expand All @@ -164,7 +177,23 @@ public override bool Execute()
}
}

XmlElement root = creator.CreateExeInfo(Executable);
string assemblyName = Path.GetFileNameWithoutExtension(manifestFile);
Debug.Assert(assemblyName != null);
// The C++ test programs won't run if an assemblyIdentity element exists.
//if (assemblyName.StartsWith("test"))
// assemblyName = null;
string assemblyVersion = null;
try
{
assemblyVersion = FileVersionInfo.GetVersionInfo(Executable).FileVersion;
}
catch
{
// just ignore
}
if (string.IsNullOrEmpty(assemblyVersion))
assemblyVersion = "1.0.0.0";
XmlElement root = creator.CreateExeInfo(assemblyName, assemblyVersion);
foreach (string fileName in dllPaths)
{
if (NoTypeLib.Count(f => f.ItemSpec == fileName) != 0)
Expand All @@ -187,6 +216,12 @@ public override bool Execute()
creator.AddAsIs(root, fragmentName);
}

foreach (string assemblyFileName in IdlImp.GetFilesFrom(DependentAssemblies))
{
Log.LogMessage(MessageImportance.Low, "\tAdding dependent assembly {0}", Path.GetFileName(assemblyFileName));
creator.AddDependentAssembly(root, assemblyFileName);
}

var settings = new XmlWriterSettings
{
OmitXmlDeclaration = false,
Expand Down
Loading