C#C
C#2y ago
Falcom

C# Environment variable

Hello,

I am a C# beginner and I want to modify the link of the dll to an env variable to work with several people on the project

I don't know if this is good practice but I put a variable like this in my csproj file

<Reference Include="TaleWorlds.MountAndBlade">
  <HintPath>$(MY_VARIABLE)\bin\myDll.dll</HintPath>
</Reference>


But I can't find how to add them then, I tried with the windows environment variables, I searched in Visual Studio 2022 but I couldn't find how to do it.

Thanks for your help
Was this page helpful?