better dll refrence paths
See original GitHub issueCurrently we need to copy reference paths to Dependencies/
folder in order to built this mod.
This means that we have duplicated version of each library and sometimes both get loaded by de-cpompilers slowing them down.
To add insult to injury the libraries are then copied into the bin folder creating triple version of each library.
One is good enough. It would be better to instruct .csproj to look into the application installation folder first (usingProgramFiles
macro) -if that failed then we can look into Dependencies/
. The copy local should also be set to false. Something like this:
<Reference Include="Assembly-CSharp">
<HintPath>$(ProgramFiles)\Steam\steamapps\common\Cities_Skylines\Cities_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>~\Library\Application Support\Steam\SteamApps\common\Cities_Skylines\Cities_Data\Managed\Assembly-CSharp.dll</HintPath>
<HintPath>..\dependencies\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
EDIT: this way it also makes the job of first time user developers easier.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Visual Studio: Relative Assembly References Paths
Select "browse" in the add reference dialog, navigate to the folder with your project file, then add the relative path to your DLL....
Read more >How can you add relative dll reference paths in VS 2010
You have to do some manual labor. Add the references as normal, then open up your .vbproj file and find where the references...
Read more >Manage references in a project - Visual Studio (Windows)
Learn how to manage references to external components and connected services in a project.
Read more >How to reference DLLs AT RUNTIME outside of your project
In this video, I show how to reference DLLs in your C# project so that (a) they don't get copied to your output...
Read more >What's a way to make Visual Studio always have a relative ...
The target setup is found by right-clicking your project, select 'Properties', navigate to 'Reference Paths'. Any path you enter here will ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aubergine10 something like this would be nice (i tested it and it works)
all other interested mod owners can simply copy paste the code 😃
On my screenshot you can see it was installed to
F:/
(mechanical drive) and later moved toX:/
(nvme SSD drive)