-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make F# resources work more like C# (#3352)
* Make F# resources work more like C# Given a resource in a folder named `AFolder/AResourceFile.txt` in a project with a root namespace of `fsharpresources`, then the following command line arg should be passed to the compiler ``` --resource:AFolder/AResourceFile.txt,fsharpresources.AFolder.AResourceFile.txt ``` whereas currently it just passes the name of the file. This also fixes passing a `LogicalName` to the resource. Fixes #1050 && #922 I looked at how Roslyn was doing this [here](https://github.com/dotnet/roslyn/blob/6847f1e5a909395aae9456e8f366cbf4deb86b69/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs#L739) es. Lines starting * Add a UseStandardResourceNames flag (disabled by default) With ``` <UseStandardResourceNames>true</UseStandardResourceNames> ``` we get the following output ``` --resource:AFolder/AResourceFile.txt,fsharpresource.AFolder.AResourceFile.txt ``` With the value omitted or set to false, the behaviour is as it was previously. ``` --resource:AFolder/AResourceFile.txt ```
- Loading branch information
1 parent
7af8b4a
commit f6049d5
Showing
5 changed files
with
44 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters