© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
1 reply
Ruttie

Files not copying to output directory - Linux

I have the following in my csproj:
        <PackageReference Include="MonoMod" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
        <PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
        <PackageReference Include="MonoMod.RuntimeDetour.HookGen" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
        <PackageReference Include="MonoMod" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
        <PackageReference Include="MonoMod.RuntimeDetour" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
        <PackageReference Include="MonoMod.RuntimeDetour.HookGen" Version="21.4.29.1">
            <IncludeAssets>all</IncludeAssets>
        </PackageReference>
however, when using
<Exec WorkingDirectory="@(BuildDir)" Command="$(Mono) MonoMod.exe TestDll.dll" />
<Exec WorkingDirectory="@(BuildDir)" Command="$(Mono) MonoMod.exe TestDll.dll" />
in one of my PostBuild targets, it fails saying that MonoMod.exe does not exist.
Why does this happen?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MSBuild ProjectReference not copying output to folder
C#CC# / help
2y ago
❔ Help copying dependencies to output folder
C#CC# / help
3y ago
Copying from files [Answered]
C#CC# / help
4y ago
Copy PackageReferences to output directory
C#CC# / help
4mo ago