Facepunch / sbox-issues

176 stars 12 forks source link

CSProj uses Absolute path for Base Addon / Addon references instead of Relative paths #3557

Open Kaydax opened 1 year ago

Kaydax commented 1 year ago

Describe the bug

When creating an addon, s&box will generate a csproj file automatically, but inside of this csproj, the references to the dlls are relative path but references to the base addon / library references use absolute paths. This isn't much of an issue on windows but is a really annoying problem when developing under linux using proton, as when using the absolute path, it will use the path wine uses (Z:/)

To Reproduce

  1. Create an gamemode / code addon
  2. Open the project's code folder
  3. Open the .csproj file
  4. See that the path to the base addon is an absolute path

Expected behavior

It should all be relative paths instead of absolute

Media/Files

No response

Additional context

This is a very small issue but really annoying to deal with when every time the dev tools get booted up, it will reset the csproj back to using the absolute path, making developing when using proton a chore

DoctorGurke commented 1 year ago

3333

Kaydax commented 1 year ago

3333

Not relevant as fixing this will help nothing with that issue, and using environment variables when running under proton will not work as then you would have to manually create the env variables to point to the correct paths as the game itself would not be able to do so

DoctorGurke commented 1 year ago

I'm not saying it's a duplicate, the issue seems very related to me though, hence why I referenced it