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

inconsistent embed options with Fsc and Csc tasks #2767

Closed
ctaggart opened this issue Apr 1, 2017 · 1 comment
Closed

inconsistent embed options with Fsc and Csc tasks #2767

ctaggart opened this issue Apr 1, 2017 · 1 comment

Comments

@ctaggart
Copy link
Contributor

ctaggart commented Apr 1, 2017

The option names are inconsistnent and Fsc only worked when full paths were passed in.

$(MSBuildProgramFiles32)\Microsoft SDKs\F#\4.1\Framework\v4.0\Microsoft.FSharp.Targets
C:\Program Files (x86)\Microsoft SDKs\F#\4.1\Framework\v4.0\Microsoft.FSharp.Targets

Embed="$(Embed)"

C:\Program Files\dotnet\sdk\1.0.0\Microsoft.CSharp.Core.targets

EmbeddedFiles="@(EmbeddedFiles)"

I worked around both issues with:

<Project>
  <PropertyGroup>
    <BuildDependsOn>EmbedPaketFiles;$(BuildDependsOn)</BuildDependsOn>
  </PropertyGroup>
  <Target Name="EmbedPaketFiles">
    <ItemGroup>
      <EmbeddedFiles Include="$([System.IO.Path]::GetFullPath('%(Compile.Identity)'))"
        Condition="$([System.String]::Copy('%(Identity)').Contains('paket-files'))" />
    </ItemGroup>
    <CreateProperty Value="@(EmbeddedFiles)">  
      <Output TaskParameter="Value" PropertyName="embed" />  
    </CreateProperty>
  </Target>
</Project>

I would like it if the Fsc tasks matched what Csc supports.

@ctaggart
Copy link
Contributor Author

I think this ship has sailed. As part of SourceLink 2.1.1, I released SourceLink.Embed.AllSourceFiles that works for both C# & F# as well as SourceLink.Embed.PaketFiles that is a subset.
https://github.com/ctaggart/SourceLink/releases/tag/2.1.1

Given that the Visual Studio 2017 debugger doesn't actually work with embedded source files yet, it still may be safe to change. https://github.com/ctaggart/sourcelink#known-issues

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

No branches or pull requests

1 participant