Add an assembly icon; strange as it may seem, but this resolved the "cannot find AssymblyInfo.fs" error that occurred from time to time #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's certainly possible that one is unrelated to another. But when building in Visual Studio 2022, from time to time, a dozen of the following errors occurred:
Even though the project compiled and ran fine. This post hinted at the cause, though I'm fully aware it may be unrelated: https://stackoverflow.com/questions/6494691/source-file-properties-assemblyinfo-cs-could-not-be-found
So, the absence of
AssemblyInfo.fs
is by design. Though I kind liked the old approach. Anyway, I wasn't the only one surprised by this: dotnet/fsharp#5309The issue remains though, that the above error appears from time to time, which seems to me like some sort of synchronization bug between the autogenerated file from
fsproj
and the MSBuild compiler. Let's see if this hack solves it. It is nice to have some icon anyway.