Skip to content
This repository has been archived by the owner on Apr 16, 2020. It is now read-only.

Commit

Permalink
help embed files for F# projects with SourceLink.Create.CommandLine (#…
Browse files Browse the repository at this point in the history
…298)

* help embed files for F# projects with SourceLink.Create.CommandLine

* 2.7.2 is next

* specify the Identity to avoid problems
  • Loading branch information
ctaggart authored Dec 28, 2017
1 parent b40acd9 commit 7ce2050
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<ItemGroup>
<EmbeddedFiles Include="@(_EmbeddedFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(Identity)'))"
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(FullPathEmbeddedFiles)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<ItemGroup>
<EmbeddedFiles Include="@(_EmbeddedFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(Identity)'))"
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(FullPathEmbeddedFiles)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
ServerType="$(SourceLinkServerType)">
<Output PropertyName="SourceLink" TaskParameter="SourceLink" />
</SourceLink.Create.CommandLine.CreateTask>
<ItemGroup>
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(FullPathEmbeddedFiles)">
<Output TaskParameter="Value" PropertyName="embed" />
</CreateProperty>
</Target>

</Project>
2 changes: 1 addition & 1 deletion SourceLink.Create.GitHub/SourceLink.Create.GitHub.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<ItemGroup>
<EmbeddedFiles Include="@(_EmbeddedFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(Identity)'))"
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(FullPathEmbeddedFiles)">
Expand Down
2 changes: 1 addition & 1 deletion SourceLink.Create.GitLab/SourceLink.Create.GitLab.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<ItemGroup>
<EmbeddedFiles Include="@(_EmbeddedFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(Identity)'))"
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(FullPathEmbeddedFiles)">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
</PropertyGroup>
<Target Name="EmbedAllSourceFiles">
<ItemGroup>
<EmbeddedFiles Include="$([System.IO.Path]::GetFullPath('%(Compile.Identity)'))" />
<AllSourceFiles Include="%(Compile.Identity)" />
<EmbeddedFiles Include="@(AllSourceFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(EmbeddedFiles)">
<Output TaskParameter="Value" PropertyName="embed" />
Expand Down
11 changes: 8 additions & 3 deletions SourceLink.Embed.PaketFiles/SourceLink.Embed.PaketFiles.targets
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
</PropertyGroup>
<Target Name="EmbedPaketFiles">
<ItemGroup>
<EmbeddedFiles Include="$([System.IO.Path]::GetFullPath('%(Compile.Identity)'))"
Condition="$([System.String]::Copy('%(Identity)').Contains('paket-files'))" />
<PaketFiles
Condition="$([System.String]::Copy('%(Compile.Identity)').Contains('paket-files'))"
Include="%(Compile.Identity)" />
<EmbeddedFiles Include="@(PaketFiles)" />
<FullPathEmbeddedFiles
Condition="$([System.IO.File]::Exists('%(EmbeddedFiles.Identity)'))"
Include="$([System.IO.Path]::GetFullPath('%(EmbeddedFiles.Identity)'))" />
</ItemGroup>
<CreateProperty Value="@(EmbeddedFiles)">
<CreateProperty Value="@(FullPathEmbeddedFiles)">
<Output TaskParameter="Value" PropertyName="embed" />
</CreateProperty>
</Target>
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$version = '2.7.0' # the version under development, update after a release
$version = '2.7.2' # the version under development, update after a release
$versionSuffix = '-a125' # manually incremented for local builds

function isVersionTag($tag){
Expand Down

0 comments on commit 7ce2050

Please sign in to comment.