Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Apr 20, 2024
1 parent f79affd commit c74f329
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 33 deletions.
24 changes: 0 additions & 24 deletions AddInManager.sln
Original file line number Diff line number Diff line change
Expand Up @@ -122,30 +122,6 @@ Global
{21460D85-C4AD-49D5-963F-CF13C4AE99EB}.Release R25|Any CPU.Build.0 = Release R25|Any CPU
{21460D85-C4AD-49D5-963F-CF13C4AE99EB}.Debug R25|Any CPU.ActiveCfg = Release R25|Any CPU
{21460D85-C4AD-49D5-963F-CF13C4AE99EB}.Debug R25|Any CPU.Build.0 = Release R25|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R22|Any CPU.ActiveCfg = Debug R22|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R22|Any CPU.Build.0 = Debug R22|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R23|Any CPU.ActiveCfg = Debug R23|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R23|Any CPU.Build.0 = Debug R23|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R24|Any CPU.ActiveCfg = Debug R24|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R24|Any CPU.Build.0 = Debug R24|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R25|Any CPU.ActiveCfg = Debug R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Debug R25|Any CPU.Build.0 = Debug R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Installer|Any CPU.ActiveCfg = Debug R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Installer|Any CPU.Build.0 = Debug R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R19|Any CPU.ActiveCfg = Release R19|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R19|Any CPU.Build.0 = Release R19|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R20|Any CPU.ActiveCfg = Release R20|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R20|Any CPU.Build.0 = Release R20|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R21|Any CPU.ActiveCfg = Release R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R21|Any CPU.Build.0 = Release R21|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R22|Any CPU.ActiveCfg = Release R22|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R22|Any CPU.Build.0 = Release R22|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R23|Any CPU.ActiveCfg = Release R23|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R23|Any CPU.Build.0 = Release R23|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R24|Any CPU.ActiveCfg = Release R24|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R24|Any CPU.Build.0 = Release R24|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R25|Any CPU.ActiveCfg = Release R25|Any CPU
{DA609427-F086-4C79-A5FA-202DBB5DE48D}.Release R25|Any CPU.Build.0 = Release R25|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 0 additions & 4 deletions AddInManager/Command/AddinManagerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ public Result RunActiveCommand(ExternalCommandData data, ref string message, Ele
_activeEc = externalCommand;
result = _activeEc.Execute(data, ref message, elements);
alc.Unload();
// foreach (AssemblyLoadContext subAlc in subAlcs)
// {
// subAlc.Unload();
// }
}
int counter = 0;
for (counter = 0; alcWeakRef.IsAlive && (counter < 10); counter++)
Expand Down
4 changes: 0 additions & 4 deletions AddInManager/Model/AssemblyLoadContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ protected override Assembly Load(AssemblyName assemblyName)
{
return null;
}
if(assemblyPath.Contains("RevitAPIUI"))
{
return null;
}
var stream = new FileStream(assemblyPath, FileMode.Open, FileAccess.Read);
return LoadFromStream(stream);
}
Expand Down
2 changes: 1 addition & 1 deletion Test/Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<IsPackable>false</IsPackable>
<PlatformTarget>x64</PlatformTarget>
<UseWpf>true</UseWpf>
<Configurations>Debug R21;Debug R22;Debug R23;Debug R24;</Configurations>
<Configurations>Debug R21;Debug R22;Debug R23;Debug R24;Debug R25;</Configurations>
<Configurations>$(Configurations)Release R25;Release R19;Release R20;Release R21;Release R22;Release R23;Release R24</Configurations>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('R19'))">
Expand Down

0 comments on commit c74f329

Please sign in to comment.