I have an ASP.NET MVC5 application that worked yesterday and now I am getting this error when I try to build:
This project references NuGet package(s)
I created a folder named '.nuget' in solution root folder Then added file 'NuGet.Config' in this folder with following content
Then created file '.nuGet.targets' as below $(MSBuildProjectDirectory)..\
false
false
true
false
$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))
$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))
$([System.IO.Path]::Combine($(SolutionDir), "packages"))
$(SolutionDir).nuget
packages.config
$(SolutionDir)packages
$(NuGetToolsPath)\nuget.exe
@(PackageSource)
"$(NuGetExePath)"
mono --runtime=v4.0.30319 $(NuGetExePath)
$(TargetDir.Trim('\\'))
-RequireConsent
$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -o "$(PackagesDir)"
$(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols
RestorePackages;
$(BuildDependsOn);
$(BuildDependsOn);
BuildPackage;