Skip to content

Conversation

@KevinRansom
Copy link
Contributor

Fixes #4591

The WriteCodeFragment for F# projects replaces the netsdk version. Now for F# projects that should have been fine, except that the dotnetsdk uses C# for creating sattelitte assemblies.

This fix,

  1. Updates the WriteCodeFragment for F# projects to write C# and VB attributes, when the language is set to F#.

  2. Update tests for the buildtask

  3. Moves Build task unit tests from coreunit tests to compilerunittests.

  4. Ensures that build.bat runs coreclr fsharp unit tests with:
    build test-coreclr-fsharp

@TIHan
Copy link
Contributor

TIHan commented Mar 21, 2018

How does this relate to the resx file?

@KevinRansom
Copy link
Contributor Author

@TIHan well ... under the cover the dotnet sdk generates satellite assemblies for the resx, and it uses the C# compiler to compile them. Unfortunately for them, when they try to generate the source code for the attributes they use our build task to do that, and it fails when the language is not set to "F#".

This change allows our WriteCodeFragment to generate thos attribute files in C# and VB.

Kevin.

@KevinRansom KevinRansom merged commit 176d669 into master Mar 22, 2018
@brettfo brettfo deleted the localizeattributes branch March 23, 2018 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resx files are not working for fsharp project

4 participants