C
C#17mo ago
WarningShoot

❔ 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
WarningShootOP17mo 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
WarningShootOP17mo ago
Angius
Angius17mo ago
Why are you copying those files, though, instead of just... referencing the project and using them that way?
ZacharyPatten
ZacharyPatten17mo ago
As @ZZZZZZZZZZZZZZZZZZZZZZZZZ mentioned, you should general be using project references rather than linking or copy+pasta code. above is a link elaborating.
Accord
Accord17mo 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.
Want results from more Discord servers?
Add your server