I use a third-party nuget package that contains a content file that appears in my project which I'd like to copy to my output folder. Said and done.
Unfortunately what the project file then does is this:
<Content Update="C:\Users\djdoe\.nuget\packages\thirdpartynuget\1.0.2\contentFiles\any\net472\thefile.txt">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
I tried
<Content Update="%userprofile%\.nuget
but then it won't copy the file. Is there a way to configure the reference with a $ variable that Visual Studio will understand?
Edit: Thanks to Marnix I found two variables pointing to the nuget folder:
$(NuGetPackageFolders)
$(NuGetPackageRoot)
Both of them work for me
$(NuGetPackageFolders)and$(NuGetPackageRoot)both of which work for me. Thanks