Mark referenced packages with Private attributes
Apparently, this is considered a good practice. Although Private="false" is supposed to not copy the dependency into the output directory, which didn't happen anyway?
This commit is contained in:
		
							parent
							
								
									47876b18bf
								
							
						
					
					
						commit
						14a57fcae7
					
				|  | @ -10,33 +10,33 @@ | |||
|     </PropertyGroup> | ||||
| 
 | ||||
|     <ItemGroup> | ||||
|         <PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" /> | ||||
|         <PackageReference Include="BepInEx.Core" Version="5.*" /> | ||||
|         <PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" /> | ||||
|         <PackageReference Include="UnityEngine.Modules" Version="2022.3.9" IncludeAssets="compile" /> | ||||
|         <PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.1" PrivateAssets="all" /> | ||||
|         <PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" Private="false" /> | ||||
|         <PackageReference Include="BepInEx.Core" Version="5.*" PrivateAssets="all" Private="false" /> | ||||
|         <PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" PrivateAssets="all" Private="false" /> | ||||
|         <PackageReference Include="UnityEngine.Modules" Version="2022.3.9" PrivateAssets="all" Private="false" /> | ||||
|         <PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.1" PrivateAssets="all" Private="false" /> | ||||
|         <!-- | ||||
|             Publicize internal methods, so we could generate config entries for tracks at runtime instead | ||||
|             of generating code at compile time. See https://github.com/lc-sigurd/CSync/issues/11 | ||||
|         --> | ||||
|         <PackageReference Include="Sigurd.BepInEx.CSync" Version="5.0.1" Publicize="true" /> | ||||
|         <PackageReference Include="AinaVT-LethalConfig" Version="1.4.6" /> | ||||
|         <PackageReference Include="Sigurd.BepInEx.CSync" Version="5.0.1" Publicize="true" PrivateAssets="all" Private="false" /> | ||||
|         <PackageReference Include="AinaVT-LethalConfig" Version="1.4.6" PrivateAssets="all" Private="false" /> | ||||
|     </ItemGroup> | ||||
| 
 | ||||
|     <ItemGroup> | ||||
|         <Reference Include="Assembly-CSharp" Publicize="true"> | ||||
|         <Reference Include="Assembly-CSharp" Publicize="true" Private="false"> | ||||
|             <HintPath>$(LethalCompanyDir)Lethal Company_Data\Managed\Assembly-CSharp.dll</HintPath> | ||||
|         </Reference> | ||||
|         <Reference Include="Unity.Collections"> | ||||
|         <Reference Include="Unity.Collections" Private="false"> | ||||
|             <HintPath>$(LethalCompanyDir)Lethal Company_Data\Managed\Unity.Collections.dll</HintPath> | ||||
|         </Reference> | ||||
|         <Reference Include="Unity.Netcode.Runtime" Publicize="true"> | ||||
|         <Reference Include="Unity.Netcode.Runtime" Publicize="true" Private="false"> | ||||
|             <HintPath>$(LethalCompanyDir)Lethal Company_Data\Managed\Unity.Netcode.Runtime.dll</HintPath> | ||||
|         </Reference> | ||||
|     </ItemGroup> | ||||
| 
 | ||||
|     <ItemGroup Condition="'$(TargetFramework.TrimEnd(`0123456789`))' == 'net'"> | ||||
|         <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" /> | ||||
|         <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="all" Private="false" /> | ||||
|     </ItemGroup> | ||||
| 
 | ||||
|     <Target Name="Bundle" AfterTargets="Build"> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue