C
C#13mo 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
WarningShoot13mo 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
WarningShoot13mo ago
Angius
Angius13mo ago
Why are you copying those files, though, instead of just... referencing the project and using them that way?
ZacharyPatten
ZacharyPatten13mo ago
As @ZZZZZZZZZZZZZZZZZZZZZZZZZ mentioned, you should general be using project references rather than linking or copy+pasta code. above is a link elaborating.
Accord
Accord13mo 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
More Posts