Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Net Sdk to write project properties #4430

Merged
merged 4 commits into from
Mar 14, 2018

Conversation

KevinRansom
Copy link
Member

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
Member 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
Member 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