-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to setup Entitas in pure C# project? #806
Comments
My Entitas.properties
|
I will add, that Jenny have bug with pure C# projects: It is only works if your generated output folder is in Assets folder root, even if you change this paths in *.properties file |
change TargetDirectory sring in your .properties file as follows, and it will works: also you can make following bat file to generate without servers and unity: |
Nah, Still not work.
Yeah, But what's the point of server then? |
issues 706 No help with this. Similar issues: issues 803
issues 759 issue 798 Pretty severe somehow I think. |
@sschmid I've removed the repo. Apologize for that, I didn't mean to do it. Here's the new sample repo. |
The server is for caching purpose. So running the server will result in faster generation process with the second run. You can also use Jenny alone, but then without caching and every run will take longer. |
@benzsuankularb I added a new wiki page with a step by step guide, how to set up a C# only project with Entitas https://github.com/sschmid/Entitas-CSharp/wiki/Entitas-pure-C%23 I hope this helps |
What's the .NET version of the project? |
netstandard2.0 |
Not quite sure what you mean. You can specify any folder. |
@benzsuankularb here's a working project |
@sschmid I think it's about I've updated 100% as you describe in the wiki. |
Installed dotnet 2. First impression, csproj works differently. Source files are not listed but recognized. To fix compilation, I removed Have to investigate further. My guess, since the project file is empty, no components are found |
Try setting 'EnableDefaultCompileItems' property to 'false' |
I readded
to the projects |
Seems to be an issue with the netcore csproj, works with .NET csproj |
This works as a workaround for net core solutions: Add a new .NET 4.x project for all your components within your solution with a standard jenny setup and reference this project in you net core project. All components and generated code will be in the .NET 4.x project, all your production code in the net core project |
If components use custom datatypes as fields, those obviously have to be in that project too. |
Thanks a lot. I forget about having reference from netcore to net4.x. |
Same issue, my project is |
Can also be done without linking with creating a dummy 4.7.1 csproj file with ItemGroup: |
Remove
Set
|
Here's a sample Entitas project as a dotnet console app using .NET 6.0 and .NET Standard 2.1, including a working Jenny setup: Also see announcement: Jenny is now open-source |
Hi,
I have some questions about setting up Entitas in pure C# project.
jenny new Entitas.properties
thenjenny auto-import -s
and choose all roslyn.DesperateDevs.CodeGeneration.Plugins.ProjectPath
to beMyProj.csproj
jenny server
jenny client gen
Now everything are generated but nothing about
Position
component generated for me.I'm not sure what I'm missed?
Maybe we should add this scenario to the Wiki.
Entitas 1.8.2 from the AssetStore
Thanks :)
The text was updated successfully, but these errors were encountered: