Skip to content

Conversation

@KevinRansom
Copy link
Contributor

Fixes: #3113

This requires a Net Sdk fix: dotnet/sdk#2021

Adds a new target file to handle the overrides. This was necessary, because the FSharp.NetSdk target files occurs before the NetSdk targets are defined.

Once the infra is done, the fix is trivial, just override CoreGenerateAssemblyInfo and run it for F# files only. Include the output in CompileBefore.

The remainder is just deployment nonsense.

Kevin

/cc @nguerrera, @enricosada, @TIHan @dsyme

</PropertyGroup>

<Target Name="CoreGenerateAssemblyInfo"
Condition="'$(Language)'=='F#'"
Copy link
Member

Choose a reason for hiding this comment

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

Update the condition to '$(Language)' == 'F#' AND '$(GenerateAssemblyInfo)' != 'false'.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@KevinRansom KevinRansom merged commit 6d50665 into dotnet:master Mar 14, 2018
@rmunn
Copy link

rmunn commented Mar 21, 2018

Note that dotnet/sdk#2021 was closed in favor of dotnet/sdk#2023, which appears (based on the description) to be the same fix. I mention this in case anyone follows the link from #3113 (which requires this bugfix in order to work) and feels concerned that the linked PR was closed.

@KevinRansom
Copy link
Contributor Author

Thanks mate :-)

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.

Generate F# assemblyinfo in new fsproj

3 participants