Skip to content

Instantly share code, notes, and snippets.

@dfkeenan
Last active May 21, 2020 21:41
Show Gist options
  • Select an option

  • Save dfkeenan/38e3a6fbc98929569392842908c98fab to your computer and use it in GitHub Desktop.

Select an option

Save dfkeenan/38e3a6fbc98929569392842908c98fab to your computer and use it in GitHub Desktop.
Xenko Move to Lib
<Project>
<UsingTask TaskName="TransformXml" AssemblyFile="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Web\Microsoft.Web.Publishing.Tasks.dll" />
<Target Name="MoveLib" AfterTargets="AfterBuild">
<ItemGroup>
<LibFiles Include="$(OutDir)*.*" Exclude="$(OutDir)$(AssemblyName).*" />
</ItemGroup>
<Move SourceFiles="@(LibFiles)" DestinationFolder="$(OutDir)lib" />
<TransformXml Source="$(OutDir)$(AssemblyName).exe.config" Transform="$(MSBuildThisFileDirectory)\LibTransform.xml" Destination="$(OutDir)$(AssemblyName).exe.config" />
</Target>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing xdt:Transform="InsertIfMissing" privatePath="lib"/>
</assemblyBinding>
</runtime>
</configuration>
@herocrab
Copy link

Thanks dfkeenan, so much cleaner now!

@herocrab
Copy link

I was really enjoying this, though for some reason it's not working for me with Stride. Everything moves but the games won't run correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment