Skip to content

Commit 146825e

Browse files
authored
Add instructions for preventing dll copying in builds
Added instructions for preventing dll files from being copied to the build output in Visual Studio.
1 parent cb28b04 commit 146825e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ Every library ever needed for Illusion game modding, almost.
2020
4. Right click on your project and "Manage NuGet packages..."
2121
5. Change "Package source" on right to "IllusionMods". You should now see all of the packages from this repository (and more).
2222

23+
## How to prevent dll files from these packages from being copied to the build output
24+
Open your project in VisualStudio or similar and find it in the Solution Explorer, then:
25+
26+
- For old format .csproj files
27+
- Expand References
28+
- Select all of them (except for the Analyzers element if it exists)
29+
- Go to the Properties window
30+
- In "Copy Local" type in "False"
31+
- For new format .csproj files (sdk)
32+
- Expand Dependencies\Packages
33+
- Select all of the packages (except for analyzers if any)
34+
- Go to the Properties window
35+
- In "Included Assets" type in "compile" and in "Private Assets" type in "All"
36+
37+
Finally, manually delete the dlls from your build output. Now whenever you build your project the package dlls should no longer get copied to the build directory.
38+
2339
## How to update nuget packages in this repository
2440
This is necessary only if you want to update or add new dlls to this repository. To do that you will have to prepare the dlls and update nuspec files.
2541
1. Clone the repo

0 commit comments

Comments
 (0)