-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Migrate to "new" .csproj format. #20305
Comments
@Nufflee if I recall well and based on this issue mono/mono#9475 version 5.12 used by Godot should not have problems using the new .csproj format also because Godot documentation recommends using the |
@mattiascibien Thats awesome, still waiting for neikeq's opinion though. |
You can try to remove the |
That's not a case with .NET Framework/Mono. |
You are free to use the method you choose. The idea is not to impose a specific one. By default, Godot will add include files one by one. |
@neikeq I'm not sure if I understand what you're saying. Do we want to migrate to this new format or not? |
I was referring to globs for include items. |
@neikeq Hmm, I don't think we're on the same page here. Can we continue discussing this in IRC because this is already getting quite lengthy. |
@Nufflee actually I had the possibility to test and using |
@mattiascibien Test what? New |
@Nufflee I tried to use EDIT: did not appear corretly before, edited the post. Sorry. |
@Nufflee I'm not sure what do you mean by supporting the new format. You mention include globs, but as far as I know, that's something has existed for a very long time. Could you explain with more details what you are requesting? |
@neikeq I think I means to make Godot sharp use globs instead of adding every CS file to the project on order to fix the problem that happens when deleting the script from Godot editor. |
@neikeq So, Include and Exclude globs weren't a thing for a very long time. They were introduced among with the new/different This format fixes basically all problems we had with deleting, moving and excluding |
That's what I understood at first, not sure why the confusion. As I said, the idea is not to impose any style for including files. If you want to use globs, you can use them, but Godot will add files by default. |
@neikeq You're still missing the point. To use Include globs the whole The point is that if we completely migrate to this new format, we wont loose anything, it will just solve our issues but it wouldn't make sense to do both. |
What you're saying about include/exclude globs is wrong. "Include/Exclude globs" (more specifically, wildcards) in item definitions in MSBuild files have existed for ages, and this link from 2008 proves it. You're confusing them with ".NET Core made a default You can already just write your own Not that I don't support moving to the new format. |
@PJB3005 That might actually be true, my bad i guess. Though I still don't understand why basically no IDE's use this. Not too sure what should we do here, maybe have a setting somewhere to "turn this on" and make Godot stop adding files to the |
@Nufflee what I was thinking too. I'll try to implement it |
Looks like there is an option now (3.1): #23505 I don't know much about c# but how come we don't use |
Does anybody have any information on what version of Mono is needed to support this? Since this discussion involves using a different format for the csproj file and old projects might need converting, I suggest this be put on the 4.0 milestone, along with #12917. |
I just re-read this issue and I think I understand now what this was actually about. I got confused with the |
@aaronfranke From my own testing I haven't found a Mono version that doesn't support it, so... |
New
.csproj
format supportsInclude
andExclude
globs (like<Compile Include="**\*.cs" Exclude="some other glob"/>
). More info here. And it's not .NET Core only according to this.This would fix the issues discussed in this PR (#12917 and #12415) as we don't have to add
<Compile/>
tags ourselves and we can let people exclude files that they don't want compiled.I'm not sure how Mono and MSBuild work with the new format but I'm happy to look into it and open a PR if this is a acceptable solution.
cc @neikeq @Zylann @NathanWarden @Scellow
The text was updated successfully, but these errors were encountered: