Prozaks
Prozaks
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Tysm
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
The extra property is the solution to the original question so this is solved
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
The second one is fully at compile time but a bit more hacky
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
The first one looks like the intended way but you end up having to check on runtime
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
I'm fine with any of these 2 solutions tho
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Meaning i can only set it to one value, not several like LINUX;RELEASE etc
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
And tbh i didn't bother to figure out why
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
The reason why i named it "OS" instead of "ExtraProps" or something like that is because it gives an error if the value contains a ;
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Also
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Yeah that's what i did, i found it online
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Yeah, if that's the intended way
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Btw the reason why i have to do this is beacause the calls i have to do are really os dependant functions, if windows i need to call timeBeginPeriod and if linux i just have to use usleep, there's no "clean" workaround for that afaik
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
Thanks for the help
71 replies
CC#
Created by Prozaks on 1/11/2024 in #help
✅ dotnet build and preprocessor symbol definition
The reason why i needed a preprocessor symbol is because i have a function that needs to call unmanaged code and it depends on the os, i got what i wanted by adding $(OS) to the conditional compilation symbols list and then defining that in the cli, works as intended
71 replies