C#C
C#2y ago
Anton

MSBuild make it NOT copy a dependency to the output path

    <!-- Make sure the CLI has been built before calling into it -->
    <ItemGroup Condition="'$(IsTools)' != 'True'">
        <ProjectReference Include="$(RootDirectory)tools\Cli\Cli.csproj">
            <IncludeAssets>none</IncludeAssets>
            <ExcludeAssets>all</ExcludeAssets>
            <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
        </ProjectReference>
    </ItemGroup>

How in the world does this still end up copying everything but the dll? It copies the exe and runtimeconfig and deps jsons, whatever those are. I'm not going to be calling it at runtime.
Was this page helpful?