forked fromfsharp/fsharp
- Notifications
You must be signed in to change notification settings - Fork0
Commitefb0c3e
committed
Make F# resources work more like C#
Given a resource in a folder named `AFolder/AResourceFile.txt` in a project witha root namespace of `fsharpresources`, then the following command line argshould 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 passinga `LogicalName` to the resource.Fixesdotnet/fsharp#1050 &&dotnet/fsharp#922I looked at how Roslyn was doing this [here](https://github.com/dotnet/roslyn/blob/6847f1e5a909395aae9456e8f366cbf4deb86b69/src/Compilers/Core/MSBuildTask/ManagedCompiler.cs#L739)es. Lines starting1 parent7975efc commitefb0c3e
File tree
2 files changed
+10
-22
lines changed- src/fsharp/FSharp.Build
2 files changed
+10
-22
lines changedLines changed: 1 addition & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 26 | | |
45 | 27 | | |
46 | 28 | | |
47 | 29 | | |
48 | 30 | | |
49 | 31 | | |
50 | 32 | | |
51 | | - | |
52 | 33 | | |
53 | | - | |
| 34 | + | |
54 | 35 | | |
55 | 36 | | |
56 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
68 | 75 | | |
69 | 76 | | |
| |||
242 | 249 | | |
243 | 250 | | |
244 | 251 | | |
245 | | - | |
| 252 | + | |
246 | 253 | | |
247 | 254 | | |
248 | 255 | | |
| |||
0 commit comments
Comments
(0)