Resx files are not working for fsharp project
See original GitHub issueSteps to reproduce
- Create empty F# console project (.NET Core)
- Add
type Test = Test of string
- Add Resources folder
- Add Resource
Test.en.resx
to Resources folder - Build project
Expected behavior
VS build works
dotnet build
works
Actual behavior
VS build works
dotnet build
doesn’t work.
resources.cs file with fsharp content is created and CS compiler errors are shown
Environment data
.NET Command Line Tools (2.1.4)
Product Information: Version: 2.1.4 Commit SHA-1 hash: 5e8add2190
Runtime Environment: OS Name: Windows OS Version: 10.0.16299 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.4\
Microsoft .NET Core Shared Framework Host
Version : 2.0.5 Build : 17373eb129b3b05aa18ece963f8795d65ef8ea54
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Resx files are not working for fsharp project · Issue #4591
The main problem is that MyProject.resources.cs file is generated for both cases and C# compiler is used for both cases, while .fs file...
Read more >.net - Error while using type provider 'FSharp.Configuration. ...
After browsing the GitHub repository, I think the problem is that ResXProvider doesn't yet support .NET 5 (let alone .NET 6).
Read more >Working with .resx Files Programmatically - .NET
Create or retrieve data from XML resource (.resx) files programmatically using types and members in the System.Resources namespace of the .
Read more >Create resource files - .NET
resx files in a project to binary resource (.resources) files and stores them in a subdirectory of the project's obj directory. Visual Studio ......
Read more >Editing F# file crashes VS every time - Developer Community
1. Create new F# project (any type really, but try Library first) 2. Right click the file 'Library1.fs' and click rename 3.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is a duplicate of https://github.com/dotnet/sdk/issues/1748
It is now fixed. The fix will be in 2.1.102 which will ship very soon and be delivered with a VS 15.6.x update.
Get Outlook for iOShttps://aka.ms/o0ukef
From: Livar notifications@github.com Sent: Wednesday, March 14, 2018 9:10:36 PM To: dotnet/cli Cc: Nick Guerrera; Mention Subject: Re: [dotnet/cli] Resx files are not working for fsharp project (#8697)
@KevinRansomhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fkevinransom&data=04|01|Nick.Guerrera%40microsoft.com|e08f8e9ffa1a4d1d2f9d08d58a2ab597|72f988bf86f141af91ab2d7cd011db47|1|0|636566838397275399|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=ZL%2BNrBGfnQC4BGaeDd35zN8JQI9DMKNwwGXWSplOX3s%3D&reserved=0 to comment.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdotnet%2Fcli%2Fissues%2F8697%23issuecomment-373254904&data=04|01|Nick.Guerrera%40microsoft.com|e08f8e9ffa1a4d1d2f9d08d58a2ab597|72f988bf86f141af91ab2d7cd011db47|1|0|636566838397275399|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=QuB6MUrq34L7UDwAFn9%2BH5f8q7Wi81rboPQM1CQEFu0%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAEmzpnvBiWCkcGiuFqvy-5_mQ2ejBO1ks5teem8gaJpZM4SWy6W&data=04|01|Nick.Guerrera%40microsoft.com|e08f8e9ffa1a4d1d2f9d08d58a2ab597|72f988bf86f141af91ab2d7cd011db47|1|0|636566838397275399|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D|-1&sdata=Vvuey09STXIyes6KFR8aaX%2Bs%2BEbG%2FT4HyZfkNWtWiZ4%3D&reserved=0.
This issue was moved to Microsoft/visualfsharp#4591