C
C#8mo ago
MrScautHD

Inlcude content after run a command (.csproj)

Hey i wanna ask if it would possible to place this after the cmake building command?
<ItemGroup>
<Content Include="$(IntermediateOutputPath)native/raylib/$(Configuration)/$(RlName)" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="$(IntermediateOutputPath)native/raylib/$(Configuration)/$(RlName)" >
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>%(Filename)%(Extension)</Link>
</Content>
</ItemGroup>
I saw Target but that does not work for this thing i guys because it get not copyed.
No description
2 Replies
MrScautHD
MrScautHDOP8mo ago
because right now CopyToOutputDirectory get called before the .dll is build
leowest
leowest8mo ago
can't you add a
<Copy SourceFiles="dll" DestinationFolder="target dir"/>
<Copy SourceFiles="dll" DestinationFolder="target dir"/>
To your beforetargets https://learn.microsoft.com/en-us/visualstudio/msbuild/move-task?view=vs-2022 some other examples here might be helpful
Want results from more Discord servers?
Add your server