Skip to content

Commit

Permalink
Set the TaskFactory to TaskHostFactory
Browse files Browse the repository at this point in the history
This avoids the issue of the dll being locked while rebuilding locally.
  • Loading branch information
ByronMayne committed Jan 21, 2024
1 parent 0890c8f commit 393c31f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from Directory.Build.[props|targets] as these files
won't exist.
==================================================-->
<UsingTask TaskName="FilterAssembliesTask" AssemblyFile="$(SGFMsBuildPath)"/>
<!-- TaskFactory is set to 'TaskHostFactory' so that we don't get the 'dll' is locked error -->
<UsingTask TaskName="FilterAssembliesTask" AssemblyFile="$(SGFMsBuildPath)" TaskFactory="TaskHostFactory"/>
<Target Name="SGF_EmbedDependencies" AfterTargets="ResolveAssemblyReferences">
<FilterAssembliesTask Assemblies="@(ReferencePath->'%(RootDir)%(Directory)%(Filename)%(Extension)')">
<Output TaskParameter="FilteredAssemblies" ItemName="SGF_FilteredAssembly" />
Expand Down

0 comments on commit 393c31f

Please sign in to comment.