Added a postbuild move task to move managed dlls to to libs\managed folder
This commit is contained in:
1 parent
e66cb853c5
commit
73efe1e4b6
1 file changed
+32
-1
@@ -250,7 +250,9 @@
|
|||||||
<Compile Include="GameModes\IGameMode.cs" />
|
<Compile Include="GameModes\IGameMode.cs" />
|
||||||
<Compile Include="SongQueue\ISongQueue.cs" />
|
<Compile Include="SongQueue\ISongQueue.cs" />
|
||||||
<Compile Include="GlobalSuppressions.cs" />
|
<Compile Include="GlobalSuppressions.cs" />
|
||||||
<Compile Include="Lib\Draw\CDirect3D.cs" Condition=" ('$(Configuration)' == 'DebugWin' Or '$(Configuration)' == 'ReleaseWin' Or '$(Configuration)' == 'InstallerWin')" />
|
<Compile Include="Lib\Draw\CDirect3D.cs" Condition=" ('$(Configuration)' == 'DebugWin' Or '$(Configuration)' == 'ReleaseWin' Or '$(Configuration)' == 'InstallerWin')">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Lib\Draw\CDrawWinForm.cs">
|
<Compile Include="Lib\Draw\CDrawWinForm.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -503,6 +505,35 @@ powershell -command "(Get-Content -Encoding UTF8 '$(ProjectDir)Properties\Assemb
|
|||||||
PostBuildMacros;
|
PostBuildMacros;
|
||||||
</PostBuildEventDependsOn>
|
</PostBuildEventDependsOn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<Target Name="managedDepCopyAfterBuild" BeforeTargets="AfterBuild">
|
||||||
|
<Message Text="copy all libs to the managed dependencies folder" Importance="normal"/>
|
||||||
|
<ItemGroup>
|
||||||
|
<RootDLLFilesToMove Include="$(TargetDir)*.dll"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<x64FolderFilesToMove Include="$(TargetDir)x64\*.*"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<x86FolderFilesToMove Include="$(TargetDir)x86\*.*"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<OtherFilesToMove Include="$(TargetDir)System.Data.SQLite.xml;$(TargetDir)VocaluxeLib.pdb;"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<Move
|
||||||
|
SourceFiles="@(RootDLLFilesToMove)"
|
||||||
|
DestinationFiles="@(RootDLLFilesToMove->'$(TargetDir)libs\managed\%(Filename)%(Extension)')"/>
|
||||||
|
<Move
|
||||||
|
SourceFiles="@(x64FolderFilesToMove)"
|
||||||
|
DestinationFiles="@(x64FolderFilesToMove->'$(TargetDir)libs\managed\x64\%(Filename)%(Extension)')"/>
|
||||||
|
<Move
|
||||||
|
SourceFiles="@(x86FolderFilesToMove)"
|
||||||
|
DestinationFiles="@(x86FolderFilesToMove->'$(TargetDir)libs\managed\x86\%(Filename)%(Extension)')"/>
|
||||||
|
<Move
|
||||||
|
SourceFiles="@(OtherFilesToMove)"
|
||||||
|
DestinationFiles="@(OtherFilesToMove->'$(TargetDir)libs\managed\%(Filename)%(Extension)')"/>
|
||||||
|
<RemoveDir
|
||||||
|
Directories="$(TargetDir)\x64\;$(TargetDir)\x86\" />
|
||||||
|
</Target>
|
||||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Rebuild for automatic package restore. The missing file is {0}.</ErrorText>
|
<ErrorText>This project references NuGet package(s) that are missing on this computer. Rebuild for automatic package restore. The missing file is {0}.</ErrorText>
|
||||||
|
|||||||
Reference in new issue
Block a user