VS引用其他解决方案下项目

在VS上找到你当前项目,右击选择编辑**.csproj。 添加如下代码

<ItemGroup>
    <Compile Include="..\..\..\Unity\Assets\ThirdParty\ParadoxNotion\**\*.*" />
</ItemGroup>

<ItemGroup>
    <Compile Remove="..\..\..\Unity\Assets\ThirdParty\ParadoxNotion\**\*.meta" />
</ItemGroup>

Remove是指要删除的文件

引用单个文件到自定义文件夹内


<ItemGroup>
     <Compile Include="..\..\..\Unity\Assets\Packages\Behavior Designer\Runtime\Base\EntryTask.cs" Link="Base\EntryTask.cs" />
</ItemGroup>

<ItemGroup>
    <Folder Include="Base\" />
</ItemGroup>
Licensed under CC BY-NC-SA 4.0
0