Skip to content

add build task to generate *.resx and *.fs from *.txt resources - #3577

Merged
brettfo merged 1 commit into
dotnet:masterfrom
brettfo:fssrgen
Sep 14, 2017
Merged

add build task to generate *.resx and *.fs from *.txt resources#3577
brettfo merged 1 commit into
dotnet:masterfrom
brettfo:fssrgen

Conversation

@brettfo

@brettfobrettfo commented Sep 13, 2017

Copy link
Copy Markdown
Member

The build task FSharpEmbedResourceText added to FSharp.Build.dll is basically the contents of fssrgen.fsx, just re-worked with the appropriate entry point.

Projects using the old <FsSrGen /> task have been updated to <EmbeddedText /> as appropriate except for the following:

  • Proto builds.
  • Build from source.
  • Fcs

These can't be (easily) moved forward until our LKG contains this new build task, so for now the old method has to stick around for a bit longer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the name be something like ```FSharpEmbedResourceTest`` or something to make sure it is distinct?

@dsyme

Copy link
Copy Markdown
Contributor

Neat

@KevinRansomKevinRansom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is quite lovely.

@brettfo

Copy link
Copy Markdown
MemberAuthor

@dotnet-bot test this please

@brettfo
brettfo merged commit 4769a92 into dotnet:masterSep 14, 2017
@brettfo
brettfo deleted the fssrgen branch September 14, 2017 23:47

@PilchiePilchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 👍

Sign up for freeto 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.

5 participants

@brettfo@dsyme@Pilchie@KevinRansom@msftclas