-
Notifications
You must be signed in to change notification settings - Fork 788
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
Add FSharp.Build support for reference assemblies #13223
Comments
Any chance of this making it into .NET 7? |
I believe it's already there, probably has issues though, since we didn't do a comprehensive testing. |
Seems like RC2 will contain the enabling bits dotnet/sdk#26306 |
This is SDK support, FSharp.Build support went in earlier: |
Right, I was looking for the sdk support because that's what I've been waiting for. @kerams and I are probably commenting on the wrong issue ;) |
In VS 17.3.2 I find that reference assemblies seem to work between F# projects, but not F# -> C#. Is it that the feature isn't in released VS yet or is this a bug that I should post about separately? |
There was a bug that got fixed via #13567, I'm not sure in which version of VS it will be included though. |
Is this now complete? |
Not fully, I believe we don't make decisions to rebuild based on MVID yet. |
Hmm, I'm confused. I can also see that while So to me it seems like nothing is missing. The Roslyn implementation you linked to decides whether to copy a file (it only copies it if the MVID changed). |
They're not copied, but still emitted, we can be avoiding emitting those alltogether. I.e. We can be passing existing MVID when generating reassemblies and if matches before ilxgen, we can just not do anything. |
Ok, that seems like an additional feature. The ref assembly is then conditionally copied over to |
Yeah, I wanted it to be an additional feature - to not even emit it if we don't have to. |
Good news for us, there is a dedicated 'copy to final folder' step, which is clever and checks the mvid's of assemblies before/after.
|
Add or modify FSharp.Build tasks that will determine if projects need to be re-built or not depending on if the reference assembly output has changed.
See Roslyn's implementation of this: dotnet/roslyn@315c2e1/src/Compilers/Core/MSBuildTask/CopyRefAssembly.cs
The text was updated successfully, but these errors were encountered: