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
Hi, I think it would be a good idea to add a section about fixing missing deps files in the setup guide.
If you're running your tests from another project than the web project you'll need to add this to the test project's .csproj file.
<!-- Work around https://github.com/NuGet/Home/issues/4412. MVC uses DependencyContext.Load() which looks next to a .dll for a .deps.json. Information isn't available elsewhere. Need the .deps.json file for all web site applications.-->
<TargetName="CopyDepsFiles"AfterTargets="Build"Condition="'$(TargetFramework)'!=''">
<ItemGroup>
<DepsFilePathsInclude="$([System.IO.Path]::ChangeExtension('%(_ResolvedProjectReferencePaths.FullPath)', '.deps.json'))" />
</ItemGroup>
<CopySourceFiles="%(DepsFilePaths.FullPath)"DestinationFolder="$(OutputPath)"Condition="Exists('%(DepsFilePaths.FullPath)')" />
</Target>
And if you're using xUnit you'll need to add this as well
Hi, I think it would be a good idea to add a section about fixing missing deps files in the setup guide.
If you're running your tests from another project than the web project you'll need to add this to the test project's .csproj file.
And if you're using xUnit you'll need to add this as well
And a
xunit.runner.json
fileIt's a bug that is hopefully getting fixed. NuGet/Home#4412
The text was updated successfully, but these errors were encountered: