Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,20 @@
<PackageOutputPath>$(ArtifactsPath)/packages</PackageOutputPath>
</PropertyGroup>

<!-- ZIP / source-archive builds have no .git folder; disable SourceLink queries to avoid warnings. -->
<PropertyGroup Condition="!Exists('$(MSBuildThisFileDirectory).git')">
<EnableSourceControlManagerQueries>false</EnableSourceControlManagerQueries>
<EnableSourceLink>false</EnableSourceLink>
<EmbedUntrackedSources>false</EmbedUntrackedSources>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Normalize path separators so Windows ZIP checkouts match /samples/ detection. -->
<_NormalizedProjectDir>$([System.String]::Copy('$(MSBuildProjectDirectory)').Replace('\', '/'))</_NormalizedProjectDir>
</PropertyGroup>

<PropertyGroup Condition="'$(IsTestProject)' == 'true' or $(MSBuildProjectName.EndsWith('.Tests')) or $(MSBuildProjectName.Contains('.Benchmarks')) or $(MSBuildProjectDirectory.Contains('/samples/')) or $(MSBuildProjectDirectory.Contains('\\samples\\'))">
<PropertyGroup Condition="'$(IsTestProject)' == 'true' or $(MSBuildProjectName.EndsWith('.Tests')) or $(MSBuildProjectName.EndsWith('.Sample')) or $(MSBuildProjectName.Contains('.Benchmarks')) or $(_NormalizedProjectDir.Contains('/samples/')) or $(_NormalizedProjectDir.Contains('/benchmarks/')) or $(_NormalizedProjectDir.Contains('/tests/'))">
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CS1591;CA1707;CA1812;CA1515;CA1050;IDE0005</NoWarn>
</PropertyGroup>
Expand Down
1 change: 0 additions & 1 deletion samples/FunctionFoundry.Data.Sample/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Text;
using FunctionFoundry.Data;

string tempDir = Path.Combine(Path.GetTempPath(), "ff-data-sample-" + Guid.NewGuid().ToString("N"));
Expand Down
Loading