❔ Linking folder from one project to another

Hi, i wanted to link folder from one project to another i accomplished it but i can't create new files in linked folder is there any way around it?
6 Replies
WarningShoot
WarningShootOP2y ago
<ItemGroup>
<None Include="E:\Praca\D_BaseTests\TestProject2\Assets\Scripts\*.cs">
<Link>TestFolder\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="E:\Praca\D_BaseTests\TestProject2\Assets\Scripts\*.cs">
<Link>TestFolder\%(RecursiveDir)%(FileName)%(Extension)</Link>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
i did something like this and it works perfectly but i cant create and copy new files to this linked folder
WarningShoot
WarningShootOP2y ago
Angius
Angius2y ago
Why are you copying those files, though, instead of just... referencing the project and using them that way?
ZacharyPatten
ZacharyPatten2y ago
As @ZZZZZZZZZZZZZZZZZZZZZZZZZ mentioned, you should general be using project references rather than linking or copy+pasta code. above is a link elaborating.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?