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
Problems with Roslyn Generator in Unity and Visual Studio #503
Comments
Sadly it does not work for me. Each time I hit generate on Roslyn code generator it will write |
Do you do it through Unity or with command line? Also, have you tried switching to MonoDevelop temporarily and see if it works with that? (Remember to change the .csproj in Entitas.properties if you decide to try it 😄) |
I think needs @sschmid to do extra care to handle it when .csproj file has |
Repost from the chat: That's something that we could report to the roslyn team, because this is out of my hand. I could add a new feature to the code generator: Could some please provide a .csproj file for me, so I can write unit tests to fix this? I don't have VS |
Here is one: https://pastebin.com/bPDZhsNn |
here is another not work sample: https://gist.github.com/roygear/770a448aba7194ec550f7f76f8ee2620 |
great, thanks! I will take a look. Just to clarify: your suggested solution is to remove |
Is the issue described in #521 the one you guys have been experiencing? (fingers crossed :)) |
if Unity using .Net 3.5, this content will generate again, but the roslyn will work only one time!! if Unity switch to .Net 4.5, the content of TargetFrameworkProfile will be empty, and roslyn WORK! |
Rider do not generate this Profile |
Awesome, thanks! That's what I wanted to hear :) I can fix this |
happy holiday! |
Released Entitas 0.46.3 Use auto import or manually add the new Let me know if this fixes the issue, then I will (happily) close |
Did anyone try Entitas 0.46.3 already? I'm desperately waiting for positive feedback :) I hope this is the fix that we were looking for |
I tried 0.46.3. But it didn’t work .I still had to Manually delete
|
@Neikice Did you activate the |
@sschmid yes, i did.
|
If have to ask, did you copy this line right from your project file? It contains a space after v3.5.
|
@sschmid sorry ,i I forgot to put the DesperateDevs.CodeGeneration.Plugins.dll in the Entitas.Roslyn folder. |
ok great, so did I forget do ship |
@sschmid |
Hi @sschmid. So far so good. It still need a bit of manual work to get it working though. Another thing is I see |
Don't mind the warning. It won't speed up the process. I already added a few custom dll to reduce the warnings but that's just how roslyn gets shipped by microsoft. Ironically, it's Windows only again :) |
Hi I just did some testing with the Roslyn generator trying to figure out why it worked with the .NET Experimental 4.6 in Unity, and why it did not work with lower versions.
Reposting my messages from gitter here:
Would be interesting to see if this fix works for others.
The text was updated successfully, but these errors were encountered: