Files
spark/tools/cpp.build.props
T
John Colvin 88302c9470 build: Upgrade TargetFramework to net7.0
We've been using several net7.0 preview features for a while now. Now that a
stable net7.0 release is available, it is time upgrade officially. This also
aids the effort to build csharp on Linux, where these preview features didn't
work out of the box. Lastly, trying to make these preview features work would
be a waste of time, as namespaces/interfaces in the official release have
changed in a way that isn't backwards compatible w/ the preview features.
2023-03-20 13:23:49 -04:00

49 lines
1.5 KiB
XML

<Project>
<PropertyGroup>
<BuildRoot>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)))</BuildRoot>
<Net70OutputPath>$(BuildRoot)\$(Configuration)\bin\net7.0\</Net70OutputPath>
<Net70WinOutputPath>$(BuildRoot)\$(Configuration)\bin\net7.0-windows\</Net70WinOutputPath>
<ErrorReport>None</ErrorReport>
</PropertyGroup>
<Target
Name="CopyToNet70"
AfterTargets="Link">
<Copy
SourceFiles="$(OutDir)libspark.dll"
Condition="Exists('$(OutDir)libspark.dll')"
DestinationFolder="$(Net70OutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
<Copy
SourceFiles="$(OutDir)libspark.pdb"
Condition="Exists('$(OutDir)libspark.pdb')"
DestinationFolder="$(Net70OutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
</Target>
<Target
Name="CopyToNet70Win"
AfterTargets="Link">
<Copy
SourceFiles="$(OutDir)libspark.dll"
Condition="Exists('$(OutDir)libspark.dll')"
DestinationFolder="$(Net70WinOutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
<Copy
SourceFiles="$(OutDir)libspark.pdb"
Condition="Exists('$(OutDir)libspark.pdb')"
DestinationFolder="$(Net70WinOutputPath)"
Retries="512"
RetryDelayMilliseconds="250"
SkipUnchangedFiles="true" />
</Target>
</Project>