-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
26 lines (24 loc) · 1.4 KB
/
Directory.Build.targets
File metadata and controls
26 lines (24 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Project>
<!-- Make source control information available for all projects, to avoid this error:
- error : SourceRoot items must include at least one top-level
- (not nested) item when DeterministicSourcePaths is true
-->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<!-- See https://github.com/dotnet/sourcelink/issues/572 -->
<PropertyGroup>
<TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath>
</PropertyGroup>
<ItemGroup>
<EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)"/>
</ItemGroup>
<ItemGroup Condition="'$(LocalFunctionsFramework)' != '' AND '$(TargetFramework)' == 'net8.0'">
<!-- Even if some projects don't actually need these, it doesn't hurt to have them. -->
<ProjectReference Include="..\..\src\Google.Cloud.Functions.Hosting\Google.Cloud.Functions.Hosting.csproj" />
<ProjectReference Include="..\..\src\Google.Cloud.Functions.Testing\Google.Cloud.Functions.Testing.csproj" />
<PackageReference Remove="Google.Cloud.Functions.Framework" />
<PackageReference Remove="Google.Cloud.Functions.Testing" />
<PackageReference Remove="Google.Cloud.Functions.Hosting" />
</ItemGroup>
</Project>