Skip to content

Commit 46f161b

Browse files
AOT compatible: NuGet.PackageManagement (#7141)
1 parent d6252c2 commit 46f161b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/NuGet.Core/NuGet.PackageManagement/NuGet.PackageManagement.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Shipping>true</Shipping>
99
<IncludeInVSIX>true</IncludeInVSIX>
1010
<XPLATProject>true</XPLATProject>
11+
<IsAotCompatible>true</IsAotCompatible>
1112
</PropertyGroup>
1213

1314
<PropertyGroup Condition=" '$(IsVsixBuild)' == 'true' ">

src/NuGet.Core/NuGet.PackageManagement/Utility/PackagesConfigLockFileUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ internal static void UpdateLockFile(
6565
internal static string GetPackagesLockFilePath(MSBuildNuGetProject msbuildProject)
6666
{
6767
var directory = (string)msbuildProject.Metadata["FullPath"];
68-
var msbuildProperty = msbuildProject.ProjectSystem?.GetPropertyValue("NuGetLockFilePath");
68+
var msbuildProperty = (string)msbuildProject.ProjectSystem?.GetPropertyValue("NuGetLockFilePath");
6969
var projectName = (string)msbuildProject.Metadata["UniqueName"];
7070

7171
return GetPackagesLockFilePath(directory, msbuildProperty, projectName);

0 commit comments

Comments
 (0)