You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest VS 15.4.0, Nuget package manager 4.4.0, I have started getting an error when trying to build a project referencing a Nuget package containing this .targets file:
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4406,5): error MSB3025: The source file "C:\Users\Bjorn\.nuget\packages\" is actually a directory. The "Copy" task does not support copying directories.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(4406,5): error MSB3030: Could not copy the file "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\SweekCms.Admin\1.0.10\content\sweek-admin.tar" because it was not found.
This worked in june. When looking at the obj\WebApplication1.csproj.nuget.g.props I see that the NuGetPackageFolders value is:
@bjorn-ali-goransson the issue is that NuGetPackageFolders contains multiple semi colon delimited folder paths and your example tries to use it as a single path.
Beyond that it does look like NuGet should normalize these paths and add a trailing slash to make these easier to use. Currently I believe theses are written out as they were provided by the project. The fallback folder here comes from a project property in the SDK.
Hello,
Using latest VS 15.4.0, Nuget package manager 4.4.0, I have started getting an error when trying to build a project referencing a Nuget package containing this .targets file:
Error is:
This worked in june. When looking at the obj\WebApplication1.csproj.nuget.g.props I see that the NuGetPackageFolders value is:
ie. a discrepancy in trailing backslashes. When changing the .targets file to utilize NuGetPackageFolderRoot, it started working again.
Looks a bit like this comment here: dotnet/sdk#1250 (comment)
I fixed my issue, but giving a heads up in case something is wrong here?
The text was updated successfully, but these errors were encountered: