-
Notifications
You must be signed in to change notification settings - Fork 786
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
Globbing not supported for content in fsproj #5986
Comments
Thanks @CameronAavik, this is related to file ordering. Looks like you've hit an edge case where you want to partially glob non-F# items under a specific folder. Not sure what the state of the world ought to be for F#, but @TIHan would know more. |
The current state of the world is that we do not support globbing. However, I believe we should not be throwing an error. If it is possible, it wouldn't be a bad idea to design globbing for files that are not important for file ordering and figure out how its interaction plays into file ordering |
Yeah that makes sense for F# files. In my case I wish to use it as I have a number of resources in a directory that I want to have automatically copied to the output directory. I was hoping to make it so that if I add a new resource I don't have to add a new rule in to copy it to output every time. I can of course manually do that each time, but having it supported would be nice. |
Are there any updates on this? We're running into this issue as well with resource files that we want tracked with the project. This forces us to use another IDE (vscode) to manage those resources. |
The respective fix was reverted, see the comment here. This is essentially won't/can't fix now. |
Repro steps
is replaced with:
Alternative repro steps
Expected behavior
The new file gets added to the project, but does not cause any modifications to the .fsproj file as it is already covered by the Content Include
Actual behavior
A recoverable exception is thrown causing the data folder to disappear from the project including the removal of the Content Include from the fsproj file. The stacktrace of the exception is as follows:
Known workarounds
I am able to resolve this by unloading the .fsproj file, readding the removed line, and loading again. Doing this shows the data folder with the original file and the file I attempted to create
Related information
Note: I attempted to recreate this issue on a C# solution but wasn't able to since C# projects do not require a Content Include to be added to the .csproj file for the directory to be included in the project.
The text was updated successfully, but these errors were encountered: