Fix build problem
Fix trying to access field in a string. Changed Toolbox references to automatically build dependencies (Toolbox_Library, File_Format_Library) to resepective output folder
This commit is contained in:
parent
317c18a570
commit
dce06db362
@ -91,8 +91,15 @@ namespace Toolbox.Library
|
||||
ICollection<IPlugin> plugins = new List<IPlugin>(pluginTypes.Count);
|
||||
foreach (Type type in pluginTypes)
|
||||
{
|
||||
IPlugin plugin = (IPlugin)Activator.CreateInstance(type);
|
||||
plugins.Add(plugin);
|
||||
try
|
||||
{
|
||||
IPlugin plugin = (IPlugin)Activator.CreateInstance(type);
|
||||
plugins.Add(plugin);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.Error.WriteLine("Couldn't Load {0} Reason:{1}", type, ex.Message);
|
||||
}
|
||||
}
|
||||
assemblies.Clear();
|
||||
pluginTypes.Clear();
|
||||
|
@ -1401,7 +1401,7 @@ namespace Toolbox
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
failedFiles.Add($"{file.Filename} \n Error:\n {ex} \n");
|
||||
failedFiles.Add($"{file} \n Error:\n {ex} \n");
|
||||
}
|
||||
|
||||
SearchFileFormat(form.BatchSettings, fileFormat, extension, outputFolder, ExportMode.Models);
|
||||
@ -1448,7 +1448,7 @@ namespace Toolbox
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
failedFiles.Add($"{file.Filename} \n Error:\n {ex} \n");
|
||||
failedFiles.Add($"{file} \n Error:\n {ex} \n");
|
||||
}
|
||||
|
||||
SearchFileFormat(form.BatchSettings, fileFormat, extension, outputFolder, ExportMode.Textures);
|
||||
|
@ -367,9 +367,9 @@
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\BrawlboxHelper\BrawlboxHelper.csproj">
|
||||
<Project>{fa690685-3370-44d5-b138-f538c8d4c2a3}</Project>
|
||||
<Name>BrawlboxHelper</Name>
|
||||
<ProjectReference Include="..\File_Format_Library\File_Format_Library.csproj">
|
||||
<Project>{a11705cf-a6a3-41c3-875a-e1cfd8080f09}</Project>
|
||||
<Name>File_Format_Library</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Switch_Toolbox_Library\Toolbox_Library.csproj">
|
||||
<Project>{96820047-2a39-4e5a-bfa4-e84fff5c66cf}</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user