Configure .csproj
Hey guys, I have a problem, so let's start what I need
I need two .csprojs in same directory, (screenshot 1), first .csproj should include only
**/Client/**/*.cs
files, second one **/Server/**/*.cs
, and that kinda works, it seems to include .cs files but for some reason client .csproj includes server .cs files, here are my configuration files:
Client:
Server:

21 Replies
also, how do I know it loads wrong csproj?


thanks in advance!
Why do you need 2 project files in the same directory? This is not ever how it works
Nobody ever does this, for reasons that have become clear to you
One project per directory, always
I was working before with two separated directories Client and Server, but project layout was very unclear
How is this less unclear?
I need "per-resource" split
When all files are mashed together?
I know for c# project it may look unclear, but for fivem resource it is clear
added
what's next?
Why are you including NSJ as a DLL? Why NSJ at all?
because fivem client doesnt support new c# which newtonsoft works with
now I think something is wrong

What does that even mean?
it works with my local files but doesnt load c# packages
its old c# version
not updated for years
What does the language version have to do with anything?
I dont know man, it just throws a lot of errors for client
and I found solution on google to use old newtonsoftjson dll
and it works
why would I care about that that much?
tried it, doesn't work
throws a lot of errors
Cfx.re Community
FiveM C#, Use Newtonsoft.Json.dll in Client script
I somehow can’t get the Newtonsoft.Json.ddl assembly to work in a client script, I have the portable version of newtonsoft.json in my project but in fivem I get the error Newtonsoft.Json: File not found.
no I dont think so
it compiles with it, but throws errors when ran
MySqlConnector doesnt compile at all
it was working before, im just restructurizing project
yes
wait a minute, I need to change one thing
and let you know if it compiles
ok it loaded most of the packages correctly
now only fails to load CitizenFX

for client I was using sdk
<Project Sdk="CitizenFX.Sdk.Client/0.2.3">
and for server <PackageReference Include="CitizenFX.Core.Server" Version="1.0.*" />
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View