C++ references C# project, how to set copy local = No ?

57 views
Skip to first unread message

Tarmo Pikaro

unread,
Aug 24, 2017, 3:02:08 AM8/24/17
to Premake Development
Hi !

In same solution I have two projects, one C#, second C++. C++ references C# project using
links ("one")

This generates following xml snippet:

--
-- Managed C++ projects write out references a little differently.
--

function suite.referencesAreRelative_onDifferentProjectLocation()
links { "MyProject" }
clr "On"
prepare()
test.capture [[
<ItemGroup>
<ProjectReference Include="MyProject.vcxproj">
<Project>{00112233-4455-6677-8888-99AABBCCDDEE}</Project>
<Private>true</Private>
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
<LinkLibraryDependencies>true</LinkLibraryDependencies>
<UseLibraryDependencyInputs>false</UseLibraryDependencyInputs>
</ProjectReference>
</ItemGroup>
]]
end


Note that <Private> is set to true.

I have tried to use 
links ("one")
flags { "NoCopyLocal" }

but this does not have any effect, it works only between C# - C# projects, but not on C++ to C# projects.

Can you recommend me any way of overriding premake generation behavior or walking around this issue ?



starkos

unread,
Aug 24, 2017, 3:25:40 PM8/24/17
to Premake Development
This might be a "submit a pull request" issue…I don't know if anyone has investigated CopyLocal support for C++ projects yet?

—st.

Reply all
Reply to author
Forward
0 new messages