Search code examples
c#visual-studiomsbuildnugetcsproj

MSBuildProjectExtensionsPath MSBuild Property Could Not be Found When trying to Manage Nuget Packages


I've encountered a weird error today when trying to manage nuget packages on a unit test project in my solution:

No property :(

I took a look at the documentation for this property: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2019 and it mentions that this property is part of a props or a target file. My solution does not have one of these. I went ahead and modified the csproj to add the property: <MSBuildProjectExtensionsPath /> to the appropriate build propertygroup, and it didn't detect it either. I looked at another project that lets me work with nuget packages successfully and it doesn't have the property at all.

Anyone know what's going on?


Solution

  • I gave up trying to figure it out. I created a new project and put in my code files/references.