question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dotnet 7 partial support

See original GitHub issue

When using dotnet-affected version 3.0.0-preview-4 I get error loading configuration manager but output still return that all services changed

Project is using dotnet 7

Unhandled exception: System.IO.FileLoadException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Could not find or load a specific file. (0x80131621)
File name: 'System.Configuration.ConfigurationManager, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
 ---> System.IO.FileLoadException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Reactions:1
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
cmeerencommented, Mar 2, 2023

I’m still a bit fuzzy on exactly what dotnet-affected detects. For any of the following, does it either detect and consider projects changed, or allow users to manually specify which projects should be changed (using e.g. a glob pattern)?

  1. Changes to a common build pipeline step (factored out to a separate file)
  2. Updates to a local .NET tool in the repo root
  3. Changing a compiler warning to a compiler error (or other non-obvious stuff that may influence a build) in a Directory.Build.props at some level (remember, these files may be hierarchical if you import from a higher level)
1reaction
cmeerencommented, Mar 2, 2023

Generally, I don’t think its a huge issue since aside from Directory.build.props and similar files your source code / assets should be under the project directory.

Common build pipeline steps is an important exception to this. As is common .NET tools. For example, if I install a linter as a local dotnet tool, then updates to the linter version may be reason to trigger a rebuild.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Partial views in ASP.NET Core
A partial view is a .cshtml markup file without an @page directive maintained within the Views folder (MVC) or Pages folder (Razor Pages)....
Read more >
Partial Tag Helper in ASP.NET Core
The Partial Tag Helper is used for rendering a partial view in Razor Pages and MVC apps. Consider that it: Requires ASP.NET Core...
Read more >
What's new in .NET 7
NET 7 will be supported for 18 months as a standard-term support (STS) release (previously known as a current release). This article lists...
Read more >
HtmlHelperPartialExtensions.Partial Method
Returns a new IHtmlContent instance containing the created HTML. Remarks. This method synchronously calls and blocks on PartialAsync(String, Object, ...
Read more >
Partial Views and View Components in ASP.NET Core
Partial Views are basically just a view which can be reused across the web application. So, Partial Views can be act as a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found