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
The video below shows how stepping into ResourceGraph source code works, but fails when stepping into Identifiable<int>.StringId.get. For reasons unknown to me, the video tool failed to capture the context menu on right-click, where I selected "step into specific" to step into the .StringId getter.
This is because Microsoft.SourceLink.GitHub (which enables to download sources from GitHub and step into) is missing in the list of package references in JsonApiDotNetCore.Annotations.csproj.
For reference, the source code from the video, in case it's hard to read:
usingSystem.Collections;usingJsonApiDotNetCore.Configuration;usingJsonApiDotNetCore.Controllers;usingJsonApiDotNetCore.Services;usingJsonApiDotNetCoreWebApi1.Models;usingMicrosoft.AspNetCore.Mvc;namespaceJsonApiDotNetCoreWebApi1.Controllers{publicclassPeopleController:JsonApiController<Person,int>{privatereadonlyIResourceGraph_resourceGraph;publicPeopleController(IJsonApiOptionsoptions,IResourceGraphresourceGraph,ILoggerFactoryloggerFactory,IResourceService<Person,int>resourceService):base(options,resourceGraph,loggerFactory,resourceService){_resourceGraph=resourceGraph;}publicoverrideasyncTask<IActionResult>GetAsync(CancellationTokencancellationToken){IActionResultresult=awaitbase.GetAsync(cancellationToken);_resourceGraph.FindResourceType(typeof(Person));// <-- step into worksvarpeople=(IEnumerable<Person>)((OkObjectResult)result).Value!;foreach(Personpersoninpeople){string?id=person.StringId;// <-- step into fails}returnresult;}}}
The text was updated successfully, but these errors were encountered:
The video below shows how stepping into
ResourceGraph
source code works, but fails when stepping intoIdentifiable<int>.StringId.get
. For reasons unknown to me, the video tool failed to capture the context menu on right-click, where I selected "step into specific" to step into the.StringId
getter.JsonApiDotNetCoreWebApi1.Debugging.-.Microsoft.Visual.Studio.Preview.2022-10-03.23-31-16.mp4
This is because Microsoft.SourceLink.GitHub (which enables to download sources from GitHub and step into) is missing in the list of package references in
JsonApiDotNetCore.Annotations.csproj
.For reference, the source code from the video, in case it's hard to read:
The text was updated successfully, but these errors were encountered: