riskfirst / riskfirst.hateoas

Powerful HATEOAS functionality for .NET web api
MIT License
78 stars 25 forks source link

Change to use RunTimeLibraries as CompileLibraries is empty for net6 … #46

Closed lukeDB-Magnet closed 1 year ago

lukeDB-Magnet commented 2 years ago

…after publishing

After updating to .net6 we realized that all of our attached links were no longer being added to responses. Oddly enough when running locally (in debug) the links worked fine. After some investigation we found that the routeMap was empty for the deployed system. This was because CompileLibraries was not populated.

Switching to RunTimeLibraries works for both debugging and the published app. All tests still pass as expected.

For further context we publish with dotnet publish XXX -c Release -r linux-x64 -v q.