-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
NuGet.Cpp.props
32 lines (26 loc) · 1.73 KB
/
NuGet.Cpp.props
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
27
28
29
30
31
32
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Defines NuGet-related properties for C++ projects using PackageReference.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Label="NuGet">
<!-- Should match entry in $(ReactNativeWindowsDir)vnext\Directory.Build.props -->
<!-- See https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target -->
<!-- RestoreUseStaticGraphEvaluation broke in VS 17.6, see https://github.com/microsoft/react-native-windows/issues/11670 -->
<RestoreUseStaticGraphEvaluation Condition="'$(BuildingInsideVisualStudio)' == 'true' AND $([MSBuild]::VersionLessThan('$(MSBuildVersion)', '17.6')) AND '$(DisableRestoreUseStaticGraphEvaluation)' != 'true'">true</RestoreUseStaticGraphEvaluation>
<!-- Ensure PackageReference compatibility for any consuming projects/apps -->
<ResolveNuGetPackages>false</ResolveNuGetPackages>
<!-- https://github.com/NuGet/Home/issues/10511#issuecomment-778400668 -->
<AssetTargetFallback>$(AssetTargetFallback);uap10.0.17763</AssetTargetFallback>
<!--
Avoid Visual Studio error message:
"The project '$(MSBuildProjectName)' ran into a problem during the last operation: The value of the
'TargetFrameworkMoniker' and 'NuGetTargetMoniker' properties in the '$(Configuration)|$(Platform)' configuration are both
empty. This configuration will not contribute to NuGet restore, which may result in restore and build errors. You may
need to reload the solution after fixing the problem."
-->
<TargetFrameworkMoniker>native,Version=v0.0</TargetFrameworkMoniker>
</PropertyGroup>
</Project>