mirror of
https://github.com/aphrody-labs/NuGet.Client.git
synced 2026-10-14 21:39:05 +00:00
23 lines
1.2 KiB
XML
23 lines
1.2 KiB
XML
<Project>
|
|
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />
|
|
<PropertyGroup>
|
|
<PackageOutputPath>$(OutputPath)$(OutputName)</PackageOutputPath>
|
|
<CompileDependsOn Condition="'$(MSBuildProjectExtension)' == '.vsmanproj'">$(CompileDependsOn);GenerateSetupManifest</CompileDependsOn>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(MSBuildProjectExtension)' == '.vsmanproj'">
|
|
<TargetFileName>$(TargetName)$(TargetExt)</TargetFileName>
|
|
<TargetPath>$(TargetDir)$(TargetFileName)</TargetPath>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
VS requires the generated vsman files to contain the path to an SBOM file, but this isn't validated until VS insertion.
|
|
So, check here that the file exists and fail our build, so we get early notice of build errors.
|
|
-->
|
|
<Target Name="_ensureSbomExists" BeforeTargets="AddSBOM" Condition=" '$(IsVsixBuild)' != 'true' AND '$(MSBuildProjectExtension)' == '.vsmanproj' ">
|
|
<Error Condition="!Exists($(SBOMFileLocation)) AND '$(SBOMFileLocation)' != ''"
|
|
Text="SBOM file '$(SBOMFileLocation)' does not exist" />
|
|
<Error Condition="'$(SBOMFileLocation)' == ''"
|
|
Text="Property 'SBOMFileLocation' is not defined" />
|
|
</Target>
|
|
</Project>
|